Skip to content

Commit d010391

Browse files
committed
Add support for #elif to pgrminclude.
1 parent fd5b397 commit d010391

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/pginclude/pgrminclude

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,15 +43,16 @@ do
4343
# preserve configure-specific includes
4444
# these includes are surrounded by #ifdef's
4545
grep -B1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
46-
egrep -q '^#if|^#else' && continue
46+
egrep -q '^#if|^#else|^#elif' && continue
4747
grep -A1 '^#include[ ][ ]*[<"]'"$INCLUDE"'[>"]' "$FILE" |
48-
egrep -q '^#else|^#endif' && continue
48+
egrep -q '^#else|^#elif|^#endif' && continue
4949

5050
# Remove all #if and #ifdef blocks because the blocks
5151
# might contain code that is not compiled on this platform.
5252
cat "$FILE" |
5353
grep -v "^#if" |
5454
grep -v "^#else" |
55+
grep -v "^#elif" |
5556
grep -v "^#endif" >/tmp/$$a
5657

5758
# set up initial file contents

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy