aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1992-12-15 22:55:01 +0000
committerSteve Chamberlain <sac@cygnus>1992-12-15 22:55:01 +0000
commitbe06bdcdd71df41178df6b70d739142070d357e6 (patch)
tree5291a0e70794495b03c20e9208b481f62189b6af /gas/app.c
parent2cb0bdc75b5d7e9baf127157c0a268bd89ace0d8 (diff)
downloadgdb-be06bdcdd71df41178df6b70d739142070d357e6.zip
gdb-be06bdcdd71df41178df6b70d739142070d357e6.tar.gz
gdb-be06bdcdd71df41178df6b70d739142070d357e6.tar.bz2
* app.c (do_scrub_begin): allow single quote strings if so
configured.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/gas/app.c b/gas/app.c
index 393ab2b..6644c27 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
- # <number> <filename> <garbage> into a .line <number>\n.app-file <filename> pair.
- This needs better error-handling.
+ # <number> <filename> <garbage> into a .line <number>\n.app-file <filename>
+ pair. This needs better error-handling.
*/
#include <stdio.h>
@@ -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)
{