summaryrefslogtreecommitdiff
path: root/misc.c
diff options
context:
space:
mode:
authorWill Estes <wlestes@users.sourceforge.net>2001-11-14 21:13:06 +0000
committerWill Estes <wlestes@users.sourceforge.net>2001-11-14 21:13:06 +0000
commit5218a435351f94ea39422e1ebe809d4bad1b365d (patch)
tree269395cb4beb4690c4c6357d2232e794bac2ef04 /misc.c
parentb9d1d8c8ae8cd7744df2607e60eeec1de4d83280 (diff)
more from the same batch
Diffstat (limited to 'misc.c')
-rw-r--r--misc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/misc.c b/misc.c
index 3c37e33..967a413 100644
--- a/misc.c
+++ b/misc.c
@@ -40,6 +40,7 @@ char *defname;
int value;
{
char buf[MAXLINE];
+ char *cpy;
if ( (int) strlen( defname ) > MAXLINE / 2 )
{
@@ -50,6 +51,10 @@ int value;
sprintf( buf, "#define %s %d\n", defname, value );
add_action( buf );
+
+ /* track #defines so we can undef them when we're done. */
+ cpy = copy_string(defname);
+ buf_append(&defs_buf, &cpy, 1);
}