]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
removed many SQUIDCEXTERN declarations
authorFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 3 Oct 2012 17:32:57 +0000 (19:32 +0200)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Wed, 3 Oct 2012 17:32:57 +0000 (19:32 +0200)
20 files changed:
1  2 
src/CpuAffinity.h
src/DiskIO/DiskThreads/aiops.cc
src/HttpMsg.h
src/HttpStatusLine.h
src/MemBuf.h
src/Packer.h
src/PeerSelectState.h
src/StoreIOState.h
src/StoreMeta.h
src/StoreMetaUnpacker.h
src/clientStream.h
src/debug.cc
src/errorpage.h
src/fde.h
src/helper.h
src/icmp/Icmp4.h
src/icmp/Icmp6.h
src/icmp/IcmpPinger.h
src/icmp/IcmpSquid.h
src/tests/test_http_range.cc

index 987c0b22d99f6854a69b0e8114c6a347c490d381,987c0b22d99f6854a69b0e8114c6a347c490d381..e14b72f84dece9b6052ec19af20fbe6fe1e2fb74
@@@ -5,12 -5,12 +5,12 @@@
  #define SQUID_CPU_AFFINITY_H
  
  /// set CPU affinity for this process on startup
--SQUIDCEXTERN void CpuAffinityInit();
++void CpuAffinityInit();
  
  /// reconfigure CPU affinity for this process
--SQUIDCEXTERN void CpuAffinityReconfigure();
++void CpuAffinityReconfigure();
  
  /// check CPU affinity configuration and print warnings if needed
--SQUIDCEXTERN void CpuAffinityCheck();
++void CpuAffinityCheck();
  
  #endif // SQUID_CPU_AFFINITY_H
index 2059dfeb3ea8eeab8cc34d49787c6f134aadb5fa,2059dfeb3ea8eeab8cc34d49787c6f134aadb5fa..b3ae20d93df1f21a6d6387acb33a4efcffe0656e
@@@ -107,7 -107,7 +107,7 @@@ struct squidaio_thread_t 
  
  static void squidaio_queue_request(squidaio_request_t *);
  static void squidaio_cleanup_request(squidaio_request_t *);
--SQUIDCEXTERN void *squidaio_thread_loop(void *);
++void *squidaio_thread_loop(void *);
  static void squidaio_do_open(squidaio_request_t *);
  static void squidaio_do_read(squidaio_request_t *);
  static void squidaio_do_write(squidaio_request_t *);
diff --cc src/HttpMsg.h
index 25f2c6a46737f8f19f398b5817e05aae0adec1d6,25f2c6a46737f8f19f398b5817e05aae0adec1d6..aaed1240e2d9fc15f17c10df105f1447f474c6d4
@@@ -130,7 -130,7 +130,7 @@@ protected
  
  };
  
--SQUIDCEXTERN int httpMsgIsolateHeaders(const char **parse_start, int len, const char **blk_start, const char **blk_end);
++int httpMsgIsolateHeaders(const char **parse_start, int len, const char **blk_start, const char **blk_end);
  
  #define HTTPMSGUNLOCK(a) if(a){(a)->_unlock();(a)=NULL;}
  #define HTTPMSGLOCK(a) (a)->_lock()
index 99e1a65531ff5dc63389006c563cca545f5e6f5d,99e1a65531ff5dc63389006c563cca545f5e6f5d..1e3176ac592495e2e2358af627a47b5225e0cb92
@@@ -62,19 -62,19 +62,19 @@@ public
  };
  
  /* init/clean */
--SQUIDCEXTERN void httpStatusLineInit(HttpStatusLine * sline);
--SQUIDCEXTERN void httpStatusLineClean(HttpStatusLine * sline);
++void httpStatusLineInit(HttpStatusLine * sline);
++void httpStatusLineClean(HttpStatusLine * sline);
  /* set/get values */
--SQUIDCEXTERN void httpStatusLineSet(HttpStatusLine * sline, HttpVersion version,
++void httpStatusLineSet(HttpStatusLine * sline, HttpVersion version,
                                      http_status status, const char *reason);
--SQUIDCEXTERN const char *httpStatusLineReason(const HttpStatusLine * sline);
++const char *httpStatusLineReason(const HttpStatusLine * sline);
  /* parse/pack */
  /* parse a 0-terminating buffer and fill internal structires; returns true on success */
--SQUIDCEXTERN int httpStatusLineParse(HttpStatusLine * sline, const String &protoPrefix,
++int httpStatusLineParse(HttpStatusLine * sline, const String &protoPrefix,
                                       const char *start, const char *end);
  /* pack fields using Packer */
--SQUIDCEXTERN void httpStatusLinePackInto(const HttpStatusLine * sline, Packer * p);
++void httpStatusLinePackInto(const HttpStatusLine * sline, Packer * p);
  
--SQUIDCEXTERN const char *httpStatusString(http_status status);
++const char *httpStatusString(http_status status);
  
  #endif /* SQUID_HTTPSTATUSLINE_H */
diff --cc src/MemBuf.h
index 3c5f225d4642754cd59f74a47d12bbdc8c7c920d,3c5f225d4642754cd59f74a47d12bbdc8c7c920d..a35bf432f2a2eeaf2ae3b0400f3def501a351c09
@@@ -173,8 -173,8 +173,8 @@@ private
  #endif
  
  /** returns free() function to be used, _freezes_ the object! */
--SQUIDCEXTERN void memBufReport(MemBuf * mb);
++void memBufReport(MemBuf * mb);
  /** pack content into a mem buf. */
--SQUIDCEXTERN void packerToMemInit(Packer * p, MemBuf * mb);
++void packerToMemInit(Packer * p, MemBuf * mb);
  
  #endif /* SQUID_MEM_H */
diff --cc src/Packer.h
index 54878db05a3c624d1c844a8780badf41ece7f7e0,54878db05a3c624d1c844a8780badf41ece7f7e0..5d224ff2d232334289bcbffb3078d6d2b25df260
@@@ -53,9 -53,9 +53,8 @@@ public
      void *real_handler;               /* first parameter to real append and vprintf */
  };
  
--SQUIDCEXTERN void packerClean(Packer * p);
--SQUIDCEXTERN void packerAppend(Packer * p, const char *buf, int size);
--SQUIDCEXTERN void
--packerPrintf(Packer * p, const char *fmt,...) PRINTF_FORMAT_ARG2;
++void packerClean(Packer * p);
++void packerAppend(Packer * p, const char *buf, int size);
++void packerPrintf(Packer * p, const char *fmt,...) PRINTF_FORMAT_ARG2;
  
  #endif /* SQUID_PACKER_H */
index e589e6cf1ac408e1602f0ec51f14ce8c106152ca,e589e6cf1ac408e1602f0ec51f14ce8c106152ca..6823bb75334d83ef83cc3b77c1636d94888f5e48
@@@ -47,8 -47,8 +47,8 @@@ class ErrorState
  
  typedef void PSC(Comm::ConnectionList *, ErrorState *, void *);
  
--SQUIDCEXTERN void peerSelect(Comm::ConnectionList *, HttpRequest *, StoreEntry *, PSC *, void *data);
--SQUIDCEXTERN void peerSelectInit(void);
++void peerSelect(Comm::ConnectionList *, HttpRequest *, StoreEntry *, PSC *, void *data);
++void peerSelectInit(void);
  
  /**
   * A CachePeer which has been selected as a possible destination.
index 03e84b60646df8c244e442b039fc783d5a190075,03e84b60646df8c244e442b039fc783d5a190075..17317b8aca384a4d4e1e015956a781ff9251c211
@@@ -111,8 -111,8 +111,8 @@@ public
  
  StoreIOState::Pointer storeCreate(StoreEntry *, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
  StoreIOState::Pointer storeOpen(StoreEntry *, StoreIOState::STFNCB *, StoreIOState::STIOCB *, void *);
--SQUIDCEXTERN void storeClose(StoreIOState::Pointer, int how);
--SQUIDCEXTERN void storeRead(StoreIOState::Pointer, char *, size_t, off_t, StoreIOState::STRCB *, void *);
--SQUIDCEXTERN void storeIOWrite(StoreIOState::Pointer, char const *, size_t, off_t, FREE *);
++void storeClose(StoreIOState::Pointer, int how);
++void storeRead(StoreIOState::Pointer, char *, size_t, off_t, StoreIOState::STRCB *, void *);
++void storeIOWrite(StoreIOState::Pointer, char const *, size_t, off_t, FREE *);
  
  #endif /* SQUID_STOREIOSTATE_H */
diff --cc src/StoreMeta.h
index e71c415583c75344ae548341f01bcb07f7f6724e,e71c415583c75344ae548341f01bcb07f7f6724e..80df78d367978ec48da5a9abcb624b35b96e30a9
@@@ -151,10 -151,10 +151,10 @@@ public
  };
  
  /// \ingroup SwapStoreAPI
--SQUIDCEXTERN char *storeSwapMetaPack(tlv * tlv_list, int *length);
++char *storeSwapMetaPack(tlv * tlv_list, int *length);
  /// \ingroup SwapStoreAPI
--SQUIDCEXTERN tlv *storeSwapMetaBuild(StoreEntry * e);
++tlv *storeSwapMetaBuild(StoreEntry * e);
  /// \ingroup SwapStoreAPI
--SQUIDCEXTERN void storeSwapTLVFree(tlv * n);
++void storeSwapTLVFree(tlv * n);
  
  #endif /* SQUID_TYPELENGTHVALUE_H */
index 91e68ced9c485185ceeb0f224019e039738fa8e8,91e68ced9c485185ceeb0f224019e039738fa8e8..059bf0e433322bd25278b89b22be732d99a46b02
@@@ -64,10 -64,10 +64,10 @@@ private
  /*
   * store_swapmeta.c
   */
--SQUIDCEXTERN char *storeSwapMetaPack(StoreMeta * tlv_list, int *length);
--SQUIDCEXTERN StoreMeta *storeSwapMetaBuild(StoreEntry * e);
--SQUIDCEXTERN StoreMeta *storeSwapMetaUnpack(const char *buf, int *hdrlen);
--SQUIDCEXTERN void storeSwapTLVFree(StoreMeta * n);
++char *storeSwapMetaPack(StoreMeta * tlv_list, int *length);
++StoreMeta *storeSwapMetaBuild(StoreEntry * e);
++StoreMeta *storeSwapMetaUnpack(const char *buf, int *hdrlen);
++void storeSwapTLVFree(StoreMeta * n);
  StoreMeta ** storeSwapTLVAdd(int type, const void *ptr, size_t len, StoreMeta ** tail);
  
  #endif /* SQUID_TYPELENGTHVALUEUNPACKER_H */
index 76345c08066d1a0dd46f458a9ae3f85d91ccf184,76345c08066d1a0dd46f458a9ae3f85d91ccf184..c5abb04e15954f42c9e1d45ed82263b4f027092f
@@@ -136,13 -136,13 +136,13 @@@ public
  };
  
  /// \ingroup ClientStreamAPI
--SQUIDCEXTERN void clientStreamInit(dlink_list *, CSR *, CSD *, CSS *, ClientStreamData, CSCB *, CSD *, ClientStreamData, StoreIOBuffer tailBuffer);
++void clientStreamInit(dlink_list *, CSR *, CSD *, CSS *, ClientStreamData, CSCB *, CSD *, ClientStreamData, StoreIOBuffer tailBuffer);
  
  /// \ingroup ClientStreamAPI
--SQUIDCEXTERN void clientStreamInsertHead(dlink_list *, CSR *, CSCB *, CSD *, CSS *, ClientStreamData);
++void clientStreamInsertHead(dlink_list *, CSR *, CSCB *, CSD *, CSS *, ClientStreamData);
  
  /// \ingroup ClientStreamAPI
--SQUIDCEXTERN clientStreamNode *clientStreamNew(CSR *, CSCB *, CSD *, CSS *, ClientStreamData);
++clientStreamNode *clientStreamNew(CSR *, CSCB *, CSD *, CSS *, ClientStreamData);
  
  /**
   \ingroup ClientStreamAPI
                        Each node may alter the reply if appropriate.
   \param replyBuffer   - buffer, length - where and how much.
   */
--SQUIDCEXTERN void clientStreamCallback(clientStreamNode *thisObject, ClientHttpRequest *http, HttpReply *rep, StoreIOBuffer replyBuffer);
++void clientStreamCallback(clientStreamNode *thisObject, ClientHttpRequest *http, HttpReply *rep, StoreIOBuffer replyBuffer);
  
  /**
   \ingroup ClientStreamAPI
   \param http          Superset of request data, being winnowed down over time. MUST NOT be NULL.
   \param readBuffer    - offset, length, buffer - what, how much and where.
   */
--SQUIDCEXTERN void clientStreamRead(clientStreamNode *thisObject, ClientHttpRequest *http, StoreIOBuffer readBuffer);
++void clientStreamRead(clientStreamNode *thisObject, ClientHttpRequest *http, StoreIOBuffer readBuffer);
  
  /**
   \ingroup ClientStreamAPI
   \param thisObject    'this' reference for the client stream
   \param http          MUST NOT be NULL.
   */
--SQUIDCEXTERN void clientStreamDetach(clientStreamNode *thisObject, ClientHttpRequest *http);
++void clientStreamDetach(clientStreamNode *thisObject, ClientHttpRequest *http);
  
  /**
   \ingroup ClientStreamAPI
   \param thisObject    'this' reference for the client stream
   \param http          MUST NOT be NULL.
   */
--SQUIDCEXTERN void clientStreamAbort(clientStreamNode *thisObject, ClientHttpRequest *http);
++void clientStreamAbort(clientStreamNode *thisObject, ClientHttpRequest *http);
  
  /**
   \ingroup ClientStreamAPI
   \param thisObject    'this' reference for the client stream
   \param http          MUST NOT be NULL.
   */
--SQUIDCEXTERN clientStream_status_t clientStreamStatus(clientStreamNode *thisObject, ClientHttpRequest *http);
++clientStream_status_t clientStreamStatus(clientStreamNode *thisObject, ClientHttpRequest *http);
  
  #endif /* SQUID_CLIENTSTREAM_H */
diff --cc src/debug.cc
index 5601a84fd5c668aae507e5492ed09364a79d4d06,5601a84fd5c668aae507e5492ed09364a79d4d06..590587b7765f08ab465531fd1f36747e609c4127
@@@ -63,7 -63,7 +63,7 @@@ static void _db_print_stderr(const cha
  static void _db_print_file(const char *format, va_list args);
  
  #if _SQUID_MSWIN_
--SQUIDCEXTERN LPCRITICAL_SECTION dbg_mutex;
++extern LPCRITICAL_SECTION dbg_mutex;
  typedef BOOL (WINAPI * PFInitializeCriticalSectionAndSpinCount) (LPCRITICAL_SECTION, DWORD);
  #endif
  
diff --cc src/errorpage.h
index 0103f4a123118298f1909c074df744f3f1118830,0103f4a123118298f1909c074df744f3f1118830..d00698ee2f3ce0e06c9e879450c4ab75d7c57a0b
@@@ -203,10 -203,10 +203,10 @@@ private
   \par Global effects:
   *            error_text[] - is modified
   */
--SQUIDCEXTERN void errorInitialize(void);
++void errorInitialize(void);
  
  /// \ingroup ErrorPageAPI
--SQUIDCEXTERN void errorClean(void);
++void errorClean(void);
  
  /**
   * \ingroup ErrorPageAPI
   \param clientConn  socket where page object is to be written
   \param err         This object is destroyed after use in this function.
   */
--SQUIDCEXTERN void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err);
++void errorSend(const Comm::ConnectionPointer &conn, ErrorState *err);
  
  /**
   \ingroup ErrorPageAPI
   \param entry   ??
   \param err     This object is destroyed after use in this function.
   */
--SQUIDCEXTERN void errorAppendEntry(StoreEntry *entry, ErrorState *err);
++void errorAppendEntry(StoreEntry *entry, ErrorState *err);
  
  /// \ingroup ErrorPageAPI
--SQUIDCEXTERN err_type errorReservePageId(const char *page_name);
++err_type errorReservePageId(const char *page_name);
  
--SQUIDCEXTERN const char *errorPageName(int pageId); ///< error ID to string
++const char *errorPageName(int pageId); ///< error ID to string
  
  /**
   \ingroup ErrorPageAPI
diff --cc src/fde.h
index 57ee4241b760d26f3d6e9787062882b5242f10ab,57ee4241b760d26f3d6e9787062882b5242f10ab..e166675c1b91cc10bec6cb67224725a6e5fe417d
+++ b/src/fde.h
@@@ -192,7 -192,7 +192,7 @@@ private
      }
  };
  
--SQUIDCEXTERN int fdNFree(void);
++int fdNFree(void);
  
  #define FD_READ_METHOD(fd, buf, len) (*fd_table[fd].read_method)(fd, buf, len)
  #define FD_WRITE_METHOD(fd, buf, len) (*fd_table[fd].write_method)(fd, buf, len)
diff --cc src/helper.h
index 21bd17730d177eeb2b2d3258ff4d460e60822331,21bd17730d177eeb2b2d3258ff4d460e60822331..d929049c26051bfcb54d0d8f1b30fdc7ba0b43ce
@@@ -199,15 -199,15 +199,15 @@@ public
  MEMPROXY_CLASS_INLINE(helper_stateful_request);
  
  /* helper.c */
--SQUIDCEXTERN void helperOpenServers(helper * hlp);
--SQUIDCEXTERN void helperStatefulOpenServers(statefulhelper * hlp);
--SQUIDCEXTERN void helperSubmit(helper * hlp, const char *buf, HLPCB * callback, void *data);
--SQUIDCEXTERN void helperStatefulSubmit(statefulhelper * hlp, const char *buf, HLPSCB * callback, void *data, helper_stateful_server * lastserver);
--SQUIDCEXTERN void helperStats(StoreEntry * sentry, helper * hlp, const char *label = NULL);
--SQUIDCEXTERN void helperStatefulStats(StoreEntry * sentry, statefulhelper * hlp, const char *label = NULL);
--SQUIDCEXTERN void helperShutdown(helper * hlp);
--SQUIDCEXTERN void helperStatefulShutdown(statefulhelper * hlp);
--SQUIDCEXTERN void helperStatefulReleaseServer(helper_stateful_server * srv);
--SQUIDCEXTERN void *helperStatefulServerGetData(helper_stateful_server * srv);
++void helperOpenServers(helper * hlp);
++void helperStatefulOpenServers(statefulhelper * hlp);
++void helperSubmit(helper * hlp, const char *buf, HLPCB * callback, void *data);
++void helperStatefulSubmit(statefulhelper * hlp, const char *buf, HLPSCB * callback, void *data, helper_stateful_server * lastserver);
++void helperStats(StoreEntry * sentry, helper * hlp, const char *label = NULL);
++void helperStatefulStats(StoreEntry * sentry, statefulhelper * hlp, const char *label = NULL);
++void helperShutdown(helper * hlp);
++void helperStatefulShutdown(statefulhelper * hlp);
++void helperStatefulReleaseServer(helper_stateful_server * srv);
++void *helperStatefulServerGetData(helper_stateful_server * srv);
  
  #endif /* SQUID_HELPER_H */
index f7b32959c01ee554dca9f652b76d14127a5a494c,f7b32959c01ee554dca9f652b76d14127a5a494c..231fc668d7a3af99d859941e3cd1c76311d61658
@@@ -168,7 -168,7 +168,7 @@@ public
  #if USE_ICMP
  
  /// pinger helper contains one of these as a global object.
--SQUIDCEXTERN Icmp4 icmp4;
++extern Icmp4 icmp4;
  
  #endif /* USE_ICMP && SQUID_HELPER */
  
index bb8f20a2b263e17a3b61181a83d93a02999fc80e,bb8f20a2b263e17a3b61181a83d93a02999fc80e..fa17a21bf9b629ffa8348073f795b1bb85143f02
@@@ -80,7 -80,7 +80,7 @@@ public
  #if USE_ICMP
  
  /// pinger helper contains one of these as a global object.
--SQUIDCEXTERN Icmp6 icmp6;
++extern Icmp6 icmp6;
  
  #endif /* USE_ICMP && SQUID_HELPER */
  #endif /* _INCLUDE_ICMPV6_H */
index 1de320ff8799631b73bb649af48fd15c94e6a80f,1de320ff8799631b73bb649af48fd15c94e6a80f..f53726f2b961b8246c3457ee4ba473c7063d08e3
@@@ -72,7 -72,7 +72,7 @@@ private
  #if USE_ICMP
  
  /// pinger helper contains one of these as a global object.
--SQUIDCEXTERN IcmpPinger control;
++extern IcmpPinger control;
  
  #endif
  
index 78aaf455fd90663a890609ff8d4df052c2f79625,78aaf455fd90663a890609ff8d4df052c2f79625..ef2b30f5182e2ccd5988aa66e693323a09372566
@@@ -60,6 -60,6 +60,6 @@@ public
  };
  
  // global engine within squid.
--SQUIDCEXTERN IcmpSquid icmpEngine;
++extern IcmpSquid icmpEngine;
  
  #endif /* _INCLUDE_ICMPSQUID_H */
index 1bc8a1e6695ead4c0037930be8bc737f81363b08,1bc8a1e6695ead4c0037930be8bc737f81363b08..a4e0b4406cf805683646211ea4608cd7a52ccb5a
  #include "acl/Checklist.h"
  #endif
  
--SQUIDCEXTERN void httpHeaderPutStr(HttpHeader * hdr, http_hdr_type type, const char *str)
++void httpHeaderPutStr(HttpHeader * hdr, http_hdr_type type, const char *str)
  {
      fatal ("dummy function\n");
  }
  
--SQUIDCEXTERN HttpHeaderEntry *httpHeaderGetEntry(const HttpHeader * hdr, HttpHeaderPos * pos)
++HttpHeaderEntry *httpHeaderGetEntry(const HttpHeader * hdr, HttpHeaderPos * pos)
  {
      fatal ("dummy function\n");
      return NULL;
  }
  
--extern String httpHeaderGetList(const HttpHeader * hdr, http_hdr_type id)
++String httpHeaderGetList(const HttpHeader * hdr, http_hdr_type id)
  {
      fatal ("dummy function\n");
      return String();
  }
  
--SQUIDCEXTERN int httpHeaderHas(const HttpHeader * hdr, http_hdr_type type)
++int httpHeaderHas(const HttpHeader * hdr, http_hdr_type type)
  {
      fatal ("dummy function\n");
      return 0;
  }
  
--SQUIDCEXTERN void httpHeaderPutContRange(HttpHeader * hdr, const HttpHdrContRange * cr)
++void httpHeaderPutContRange(HttpHeader * hdr, const HttpHdrContRange * cr)
  {
      fatal ("dummy function\n");
  }