diff options
author | Timothy Wall <twall@alum.mit.edu> | 2000-02-10 21:00:10 +0000 |
---|---|---|
committer | Timothy Wall <twall@alum.mit.edu> | 2000-02-10 21:00:10 +0000 |
commit | f28e8eb3fd8ab61a0c02b2d9a938a1400cf3bf25 (patch) | |
tree | 2c11bc5d2aafac781aee61f1cb4ea5f35509a53a /gas/app.c | |
parent | 84dcfba7a2922c53645c9ea80aeded80e6085e1c (diff) | |
download | gdb-f28e8eb3fd8ab61a0c02b2d9a938a1400cf3bf25.zip gdb-f28e8eb3fd8ab61a0c02b2d9a938a1400cf3bf25.tar.gz gdb-f28e8eb3fd8ab61a0c02b2d9a938a1400cf3bf25.tar.bz2 |
New preprocessor options.
Diffstat (limited to 'gas/app.c')
-rw-r--r-- | gas/app.c | 28 |
1 files changed, 25 insertions, 3 deletions
@@ -68,6 +68,9 @@ static const char symbol_chars[] = #define LEX_IS_DOUBLEDASH_1ST 12 #endif #ifdef TC_M32R +#define DOUBLEBAR_PARALLEL +#endif +#ifdef DOUBLEBAR_PARALLEL #define LEX_IS_DOUBLEBAR_1ST 13 #endif #define IS_SYMBOL_COMPONENT(c) (lex[c] == LEX_IS_SYMBOL_COMPONENT) @@ -174,7 +177,7 @@ do_scrub_begin (m68k_mri) #ifdef TC_V850 lex['-'] = LEX_IS_DOUBLEDASH_1ST; #endif -#ifdef TC_M32R +#ifdef DOUBLEBAR_PARALLEL lex['|'] = LEX_IS_DOUBLEBAR_1ST; #endif #ifdef TC_D30V @@ -351,7 +354,7 @@ do_scrub_chars (get, tostart, tolen) #ifdef TC_V850 12: After seeing a dash, looking for a second dash as a start of comment. #endif -#ifdef TC_M32R +#ifdef DOUBLEBAR_PARALLEL 13: After seeing a vertical bar, looking for a second vertical bar as a parallel expression seperator. #endif */ @@ -761,6 +764,21 @@ do_scrub_chars (get, tostart, tolen) break; } +#ifdef KEEP_WHITE_AROUND_COLON + if (lex[ch] == LEX_IS_COLON) + { + /* only keep this white if there's no white *after* the colon */ + ch2 = GET (); + UNGET (ch2); + if (!IS_WHITESPACE (ch2)) + { + state = 9; + UNGET (ch); + PUT (' '); + break; + } + } +#endif if (IS_COMMENT (ch) || ch == '/' || IS_LINE_SEPARATOR (ch)) @@ -970,10 +988,14 @@ do_scrub_chars (get, tostart, tolen) #endif case LEX_IS_COLON: +#ifdef KEEP_WHITE_AROUND_COLON + state = 9; +#else if (state == 9 || state == 10) state = 3; else if (state != 3) state = 1; +#endif PUT (ch); break; @@ -1013,7 +1035,7 @@ do_scrub_chars (get, tostart, tolen) PUT ('\n'); break; #endif -#ifdef TC_M32R +#ifdef DOUBLEBAR_PARALLEL case LEX_IS_DOUBLEBAR_1ST: ch2 = GET(); if (ch2 != '|') |