Skip to content
Snippets Groups Projects
  1. Dec 27, 2010
    • Tom Lane's avatar
      Rearrange cpluspluscheck to check just one .h file at a time. · 8c61f81b
      Tom Lane authored
      This is slower than the original coding but avoids the problem of
      including files in an unpredictable order.  Aside from being more
      trustworthy, we can get rid of some exclusions that were formerly
      made for what turn out to be ordering or re-inclusion problems.
      
      I also modified it to include libpq's exported files in the check.
      ecpg should be included as well, but I'm unclear on which ecpg .h
      files are meant to be included by clients.
      8c61f81b
    • Tom Lane's avatar
      Tweak cpluspluscheck to avoid directly #include'ing gram.h. · a977db6f
      Tom Lane authored
      gram.h has ordering dependencies, which are satisfied when it's included
      from gramparse.h, but might not be if it's pulled in directly.
      a977db6f
  2. Jul 16, 2009
    • Peter Eisentraut's avatar
      Make backend header files C++ safe · de160e2c
      Peter Eisentraut authored
      This alters various incidental uses of C++ key words to use other similar
      identifiers, so that a C++ compiler won't choke outright.  You still
      (probably) need extern "C" { }; around the inclusion of backend headers.
      
      based on a patch by Kurt Harriman <harriman@acm.org>
      
      Also add a script cpluspluscheck to check for C++ compatibility in the
      future.  As of right now, this passes without error for me.
      de160e2c
Loading