* Problems with gasp
@ 1995-02-18 8:17 Richard Earnshaw
0 siblings, 0 replies; only message in thread
From: Richard Earnshaw @ 1995-02-18 8:17 UTC (permalink / raw)
To: gas2; +Cc: richard.earnshaw
I'm having some dificulty with variable expansion in gasp. I'd like to concatenate
a variable with an additional string and put it back in the same variable. The
code I have is, essentially:
Temp .ASSIGNC "string"
...
Temp .ASSIGNC "\&Temp'extra"
but the result of this is the string \&Temp'extra, not "stringextra" as desired.
This does not happen if I concatenate a macro parameter with extra, eg
.MACRO Foo Temp
bar .ASSIGNC "\Temp'foo"
.ENDM
Foo xxx
gives "xxxfoo" as desired.
Is this not inconsitent?
Additionally, here's a patch for istrue() in gasp.c, for strings NE never returns
true.
*** gasp.c~ Thu Jan 19 21:04:07 1995
--- gasp.c Sat Feb 18 16:04:40 1995
***************
*** 2330,2336 ****
res = 0;
}
else
! res = cond == EQ && same;
}
else
/* This is a numeric expression */
--- 2330,2336 ----
res = 0;
}
else
! res = cond != EQ ^ same;
}
else
/* This is a numeric expression */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1995-02-18 8:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1995-02-18 8:17 Problems with gasp Richard Earnshaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).