diff options
author | Will Estes <wlestes@users.sourceforge.net> | 2001-10-22 13:42:24 +0000 |
---|---|---|
committer | Will Estes <wlestes@users.sourceforge.net> | 2001-10-22 13:42:24 +0000 |
commit | 3cb447bf293324f50a3f3556d88ccbbddce5f40a (patch) | |
tree | a17f2a900104684e6de0a6c818468f4a93398ea2 /misc.c | |
parent | c362f33c50875591822c18c3a9d633127c0cad68 (diff) |
phew, millaway's latest batch
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 21 |
1 files changed, 14 insertions, 7 deletions
@@ -795,10 +795,13 @@ void skelout() if ( buf[0] == '%' ) { /* control line */ /* print the control line as a comment. */ - if (buf[strlen(buf)-1]=='\\') - out_str("/* %s */\\\n", buf); - else - out_str("/* %s */\n", buf); + if (buf[1] != '#') + { + if (buf[strlen(buf)-1]=='\\') + out_str("/* %s */\\\n", buf); + else + out_str("/* %s */\n", buf); + } switch ( buf[1] ) { @@ -817,14 +820,18 @@ void skelout() do_copy = 1; break; - case 'c': + case 'c': /* begin linkage-only (non-header) code. */ OUT_BEGIN_CODE(); break; - case 'e': + case 'e': /* end linkage-only code. */ OUT_END_CODE(); break; - + + case '#': + /* a comment in the skel. ignore. */ + break; + default: flexfatal( _( "bad line in skeleton file" ) ); |