From be06bdcdd71df41178df6b70d739142070d357e6 Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Tue, 15 Dec 1992 22:55:01 +0000 Subject: [PATCH] * app.c (do_scrub_begin): allow single quote strings if so configured. --- gas/ChangeLog | 11 +++++++++++ gas/app.c | 12 ++++++++---- 2 files changed, 19 insertions(+), 4 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index d51e56831c..e54807cf1a 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,14 @@ +Tue Dec 15 12:40:11 1992 Steve Chamberlain (sac@thepub.cygnus.com) + + * app.c (do_scrub_begin): allow single quote strings if so + configured. + + * config/*z8k*: checkpoint + +Sun Dec 13 00:04:38 1992 Ian Lance Taylor (ian@cygnus.com) + + * read.c (read_a_source_file): avoid calling xmalloc (0). + Sat Dec 12 15:26:34 1992 Ian Lance Taylor (ian@cygnus.com) * listing.c: Call xmalloc, not malloc; don't declare malloc. diff --git a/gas/app.c b/gas/app.c index 393ab2bd27..6644c272b5 100644 --- a/gas/app.c +++ b/gas/app.c @@ -23,8 +23,8 @@ /* App, the assembler pre-processor. This pre-processor strips out excess spaces, turns single-quoted characters into a decimal constant, and turns - # into a .line \n.app-file pair. - This needs better error-handling. + # into a .line \n.app-file + pair. This needs better error-handling. */ #include @@ -74,10 +74,14 @@ do_scrub_begin () lex['\''] = LEX_IS_ONECHAR_QUOTE; lex[':'] = LEX_IS_COLON; -#ifdef MRI - lex['\''] = LEX_IS_STRINGQUOTE; + + +#ifdef SINGLE_QUOTE_STRINGS + lex['\''] = LEX_IS_STRINGQUOTE; #endif + /* Note that these override the previous defaults, e.g. if ';' + is a comment char, then it isn't a line separator. */ for (p = symbol_chars; *p; ++p) { -- 2.34.1