summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2001-10-22 13:42:24 +0000
committerWill Estes <wlestes@users.sourceforge.net>2001-10-22 13:42:24 +0000
commit3cb447bf293324f50a3f3556d88ccbbddce5f40a (patch)
treea17f2a900104684e6de0a6c818468f4a93398ea2 /misc.c
parentc362f33c50875591822c18c3a9d633127c0cad68 (diff)
phew, millaway's latest batch
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c21
1 files changed, 14 insertions, 7 deletions
diff --git a/misc.c b/misc.c
index dc5b6ef..3c37e33 100644
--- a/misc.c
+++ b/misc.c
@@ -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" ) );