]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Author: Henrik Nordstrom <henrik@henriknordstrom.net>
authorAmos Jeffries <squid3@treenet.co.nz>
Wed, 12 May 2010 08:39:09 +0000 (20:39 +1200)
committerAmos Jeffries <squid3@treenet.co.nz>
Wed, 12 May 2010 08:39:09 +0000 (20:39 +1200)
Rename generated fragments to .cci to avoid misunderstandings (was .h).

Applies to cf_parser.cci and cf_gen_defines.cci

src/Makefile.am
src/cache_cf.cc
src/cf_gen.cc

index ba48df604a3fa7555b886720810c4e92bff4e60c..178521fb6db88ae9e3821bb920da4966e97cfa37 100644 (file)
@@ -193,16 +193,16 @@ libexec_PROGRAMS = \
        $(UNLINKD)
 
 cf_gen_SOURCES = cf_gen.cc
-nodist_cf_gen_HEADER = cf_gen_defines.h
+nodist_cf_gen_HEADER = cf_gen_defines.cci
 cf_gen_LDADD= \
        ../compat/libcompat.la \
        -L../lib -lmiscutil \
        $(EPOLL_LIBS) \
        $(MINGW_LIBS) \
        $(XTRA_LIBS)
-cf_gen.$(OBJEXT): cf_gen_defines.h
+cf_gen.$(OBJEXT): cf_gen_defines.cci
 
-## cf_gen.cc needs src/cf_gen_defines.h
+## cf_gen.cc needs src/cf_gen_defines.cci
 INCLUDES += -I$(top_builddir)/src
 
 
@@ -510,7 +510,7 @@ noinst_HEADERS = \
 nodist_squid_SOURCES = \
        $(DISKIO_GEN_SOURCE) \
        repl_modules.cc \
-       cf_parser.h \
+       cf_parser.cci \
        globals.cc \
        string_arrays.c
 
@@ -630,8 +630,8 @@ nodist_ufsdump_SOURCES = \
        globals.cc
 
 BUILT_SOURCES = \
-       cf_gen_defines.h \
-       cf_parser.h \
+       cf_gen_defines.cci \
+       cf_parser.cci \
        globals.cc \
        string_arrays.c \
        repl_modules.cc
@@ -745,16 +745,16 @@ test_cache_digest: test_cache_digest.o CacheDigest.o debug.o globals.o store_key
        $(CC) -o $@ $(LDFLAGS) $@.o CacheDigest.o debug.o globals.o store_key_md5.o $(STD_APP_LIBS)
 
 ## If autodependency works well this is not needed anymore
-cache_cf.o: cf_parser.h
+cache_cf.o: cf_parser.cci
 
-# squid.conf.default is built by cf_gen when making cf_parser.h
-squid.conf.default squid.conf.documented: cf_parser.h
+# squid.conf.default is built by cf_gen when making cf_parser.cci
+squid.conf.default squid.conf.documented: cf_parser.cci
        true
 
-cf_parser.h: cf.data cf_gen$(EXEEXT)
+cf_parser.cci: cf.data cf_gen$(EXEEXT)
        ./cf_gen cf.data $(srcdir)/cf.data.depend
 
-cf_gen_defines.h: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
+cf_gen_defines.cci: $(srcdir)/cf_gen_defines $(srcdir)/cf.data.pre
        $(AWK) -f $(srcdir)/cf_gen_defines <$(srcdir)/cf.data.pre >$@ || ($(RM) -f $@ && exit 1)
 
 
@@ -811,7 +811,7 @@ uninstall-local: squid.conf.default
        @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_MIME_TABLE) $(srcdir)/mime.conf.default
        @$(SHELL) $(top_srcdir)/scripts/remove-cfg.sh "$(RM)" $(DESTDIR)$(DEFAULT_CONFIG_FILE) squid.conf.default
 
-CLEANFILES += cf_gen_defines.h cf.data cf_parser.h squid.conf.default squid.conf.documented \
+CLEANFILES += cf_gen_defines.cci cf.data cf_parser.cci squid.conf.default squid.conf.documented \
        globals.cc string_arrays.c repl_modules.cc DiskIO/DiskIOModules_gen.cc \
        test_tools.cc *.a
 
index 5b317865242ca390bd3896c560a7434c4fb33dc2..bec9052154eb696a0590ccf5b19a704284ab9025 100644 (file)
@@ -2785,7 +2785,7 @@ dump_removalpolicy(StoreEntry * entry, const char *name, RemovalPolicySettings *
     storeAppendPrintf(entry, "\n");
 }
 
-#include "cf_parser.h"
+#include "cf_parser.cci"
 
 peer_t
 parseNeighborType(const char *s)
index a0ea2f9e423d37e25942464d12c63b827a5fd066..dceac5afe8ffbed6a3506ce8c6cfa6652d2c3c9b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * DEBUG: none          Generate squid.conf.default and cf_parser.h
+ * DEBUG: none          Generate squid.conf.default and cf_parser.cci
  * AUTHOR: Max Okumoto
  *
  * SQUID Web Proxy Cache          http://www.squid-cache.org/
@@ -36,7 +36,7 @@
  *             (ie it creates the squid.conf.default file from the cf.data file)
  *
  *             The output files are as follows:
- *             cf_parser.h - this file contains, default_all() which
+ *             cf_parser.cci - this file contains, default_all() which
  *                       initializes variables with the default
  *                       values, parse_line() that parses line from
  *                       squid.conf.default, dump_config that dumps the
@@ -48,7 +48,6 @@
 //#include "squid.h"
 #include "config.h"
 //#include "SquidTime.h"
-#include "cf_gen_defines.h"
 #include "util.h"
 
 #if HAVE_STRING_H
 #include <ctype.h>
 #endif
 
+#include "cf_gen_defines.cci"
+
 #define MAX_LINE       1024    /* longest configuration line */
-#define _PATH_PARSER           "cf_parser.h"
+#define _PATH_PARSER           "cf_parser.cci"
 #define _PATH_SQUID_CONF       "squid.conf.documented"
 #define _PATH_SQUID_CONF_SHORT "squid.conf.default"
 #define _PATH_CF_DEPEND                "cf.data.depend"