#define SYNTAX(c) re_syntax_table[c]
-\f
/* Get the interface, including the syntax bits. */
-#include "GnuRegex.h"
+#include "compat/GnuRegex.h"
/* Compile a fastmap for the compiled pattern in BUFFER; used to
* accelerate searches. Return 0 if successful and -2 if was an
noinst_LTLIBRARIES = libcompat.la
libcompat_la_SOURCES = \
+ assert.h \
compat.h \
- osdetect.h \
compat_shared.h \
fdsetsize.h \
gnuregex.h \
+ osdetect.h \
stdvarargs.h \
valgrind.h \
\
os/sunos.h \
os/windows.h \
\
+ assert.cc \
compat.cc \
GnuRegex.c
-
/*
* $Id$
*
#include "config.h"
+#if HAVE_STDIO_H
#include <stdio.h>
+#endif
+#if HAVE_STDLIB_H
#include <stdlib.h>
+#endif
-#include "assert.h"
+#if 0
+#include "compat/assert.h"
+#endif
void xassert(const char *expr, const char *file, int line)
{
#include "util.h"
/* users of this template also need assert() */
-#include "assert.h"
+#include "compat/assert.h"
/* iterator support */
*/
#include "config.h"
-#include "assert.h"
#include "util.h"
#include "memMeter.h"
+++ /dev/null
-/*
- * $Id$
- *
- * AUTHOR: Duane Wessels
- *
- * SQUID Web Proxy Cache http://www.squid-cache.org/
- * ----------------------------------------------------------
- *
- * Squid is the result of efforts by numerous individuals from
- * the Internet community; see the CONTRIBUTORS file for full
- * details. Many organizations have provided support for Squid's
- * development; see the SPONSORS file for full details. Squid is
- * Copyrighted (C) 2001 by the Regents of the University of
- * California; see the COPYRIGHT file for full details. Squid
- * incorporates software developed and/or copyrighted by other
- * sources; see the CREDITS file for full details.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
- *
- */
-#ifndef SQUID_ASSERT_H
-#define SQUID_ASSERT_H
-
-#include "config.h"
-
-#if defined(NODEBUG)
-#define assert(EX) ((void)0)
-#elif STDC_HEADERS
-#define assert(EX) ((EX)?((void)0):xassert( # EX , __FILE__, __LINE__))
-#else
-#define assert(EX) ((EX)?((void)0):xassert("EX", __FILE__, __LINE__))
-#endif
-SQUIDCEXTERN void xassert(const char *, const char *, int);
-
-#endif
stub_memaccount.c \
util.c \
uudecode.c \
- assert.c \
xusleep.c \
$(XPROF_STATS_SOURCE) \
$(WIN32SRC)
tests/testMain.cc \
$(XPROF_STATS_SOURCE) \
$(WIN32SRC) \
- util.c assert.c
+ util.c
tests_testAll_LDADD= @SQUID_CPPUNIT_LA@ @SQUID_CPPUNIT_LIBS@
#if HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
-#include "assert.h"
#include "util.h"
* Copyright (c) 2003, Robert Collins <robertc@squid-cache.org>
*/
-/* for assert() */
-#include "assert.h"
+#include "config.h"
+
/* for xstrdup() */
#include "util.h"
/* for safe_free() */
*
*/
-#include "assert.h"
+#include "config.h"
#include <cstring>
String::String() : size_(0), len_(0), buf_ (NULL)
*/
#include "config.h"
-#if 0
-#include "squid.h"
-#include "HttpRequest.h"
-#endif
-
#include "ACL.h"
#include "ACLChecklist.h"
#include "ConfigParser.h"
#include "dlink.h"
/* for special-case PURGE test */
#include "HttpRequestMethod.h"
-/* for Vector<> Instances */
-#include "assert.h"
const char *AclMatchedName = NULL;
//#include "squid.h"
#include "config.h"
-#include "assert.h"
//#include "SquidTime.h"
#include "cf_gen_defines.h"
#include "util.h"
#include "squid.h"
#include <libecap/adapter/service.h>
#include "TextException.h"
-#include "assert.h"
#include "eCAP/ServiceRep.h"
#include "eCAP/XactionRep.h"
#include <libecap/common/delay.h>
#include <libecap/adapter/xaction.h>
#include "TextException.h"
-#include "assert.h"
#include "HttpRequest.h"
#include "HttpReply.h"
#include "eCAP/XactionRep.h"
/** \endcond */
#endif
-#include "assert.h"
-
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
-I$(top_srcdir)/src
LDADD = \
- -L$(top_builddir)/compat/libcompat.la \
+ $(top_builddir)/compat/libcompat.la \
-L$(top_builddir)/lib -lmiscutil \
$(top_builddir)/src/globals.o \
$(top_builddir)/src/time.o
cachemgr__CGIEXT__SOURCES = cachemgr.cc
cachemgr__CGIEXT__CXXFLAGS = -DDEFAULT_CACHEMGR_CONFIG=\"$(DEFAULT_CACHEMGR_CONFIG)\" $(AM_CXXFLAGS)
-LDADD = ../src/ip/libip.la -L../lib -lmiscutil $(XTRA_LIBS)
+LDADD = \
+ ../compat/libcompat.la \
+ ../src/ip/libip.la \
+ -L../lib -lmiscutil \
+ $(XTRA_LIBS)
EXTRA_DIST = \
cachemgr.conf
}
#endif
-#include "assert.h"
#include "util.h"
#include "ip/IpAddress.h"
#include "getfullhostname.h"