Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Add exclusion to headercheck
authorPeter Eisentraut <peter@eisentraut.org>
Fri, 24 Jan 2020 11:23:06 +0000 (12:23 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Fri, 24 Jan 2020 11:23:06 +0000 (12:23 +0100)
src/include/common/unicode_combining_table.h is currently not meant to
be included standalone.  Things could be refactored to allow it, but
that would be beyond the present purpose.  So adding an exclusion here
seems best.

Discussion: https://www.postgresql.org/message-id/10754.1579535012@sss.pgh.pa.us

src/tools/pginclude/cpluspluscheck
src/tools/pginclude/headerscheck

index dc45bd087b1ce90e9f2c138f5a15d6a024023779..531fab904cf5fc753423a4e8830759aea0d9ff0f 100755 (executable)
@@ -110,6 +110,9 @@ do
    test "$f" = src/pl/plpython/spiexceptions.h && continue
    test "$f" = src/pl/tcl/pltclerrcodes.h && continue
 
+   # Also not meant to be included standalone.
+   test "$f" = src/include/common/unicode_combining_table.h && continue
+
    # We can't make these Bison output files compilable standalone
    # without using "%code require", which old Bison versions lack.
    # parser/gram.h will be included by parser/gramparse.h anyway.
index 440bde88a7bb646beab573497afafe0bd94f6cff..d652d6b6f9a58ea6f2b8fffb1f9c828dd448d3bd 100755 (executable)
@@ -106,6 +106,9 @@ do
    test "$f" = src/pl/plpython/spiexceptions.h && continue
    test "$f" = src/pl/tcl/pltclerrcodes.h && continue
 
+   # Also not meant to be included standalone.
+   test "$f" = src/include/common/unicode_combining_table.h && continue
+
    # We can't make these Bison output files compilable standalone
    # without using "%code require", which old Bison versions lack.
    # parser/gram.h will be included by parser/gramparse.h anyway.