]> git.ipfire.org Git - thirdparty/squid.git/commit - src/cf_gen_defines
Converts the bulk of cf_gen to C++ OOP code.
authorAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Aug 2011 03:35:19 +0000 (21:35 -0600)
committerAmos Jeffries <squid3@treenet.co.nz>
Fri, 19 Aug 2011 03:35:19 +0000 (21:35 -0600)
commitc1f8bbd07646b8698d35fbcdd7851c8f943f425a
tree5bb2cb0d976e19c4b63ec394b3e59e38f513cfb8
parentb4624c6cc3787c6bc505881facf10f9a1fad5b97
Converts the bulk of cf_gen to C++ OOP code.

* char* tree members to std::string. Which eliminates xstrdup() and
  xis*() calls.

* structs to classes and replaces calloc/free with new/delete.

* link cf_gen_depends.cci directly to autoconf.h defines.

The result of these is that we can erase the dependencies on util.h,
time.cc, config.h, libcompat.la, libmisc.la and other libraries.
Directly fixing seevral build and cross-compile issues that keep appearing
on various OS.

TODO:
 There is a bit further cleanup we can do. Replacing several classes with
 std::list<std::string>.
src/Makefile.am
src/cf_gen.cc
src/cf_gen_defines