aboutsummaryrefslogtreecommitdiff
path: root/gas/app.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-01-04 23:35:56 +0000
committerStan Shebs <shebs@codesourcery.com>1994-01-04 23:35:56 +0000
commit5a0517735a47db1eea68bad63ae6930fef766faa (patch)
tree97e145c019aa19a6f50cdbb8f02efc069db3116b /gas/app.c
parent5efb389945c45886ceddd830387b1a26b5ecdf24 (diff)
downloadgdb-5a0517735a47db1eea68bad63ae6930fef766faa.zip
gdb-5a0517735a47db1eea68bad63ae6930fef766faa.tar.gz
gdb-5a0517735a47db1eea68bad63ae6930fef766faa.tar.bz2
Tue Jan 4 15:12:43 1994 Stan Shebs (shebs@andros.cygnus.com)
* Makefile.in (INCLUDES): Add $(srcdir)/.. to places to search. * config/obj-ecoff.c: Include files as "bfd/" instead of "../bfd/". * app.c, flonum.h, hex-value.c (const): Change #if to be more portable.
Diffstat (limited to 'gas/app.c')
-rw-r--r--gas/app.c35
1 files changed, 9 insertions, 26 deletions
diff --git a/gas/app.c b/gas/app.c
index 1317c80..9ed97eb 100644
--- a/gas/app.c
+++ b/gas/app.c
@@ -1,5 +1,5 @@
/* This is the Assembler Pre-Processor
- Copyright (C) 1987, 1990, 1991, 1992 Free Software Foundation, Inc.
+ Copyright (C) 1987, 1990, 1991, 1992, 1994 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -27,8 +27,10 @@
#include <stdio.h>
#include "as.h" /* For BAD_CASE() only */
-#if (__STDC__ != 1) && !defined(const)
-#define const /* Nothing */
+#if (__STDC__ != 1)
+#ifndef const
+#define const /* empty */
+#endif
#endif
static char lex[256];
@@ -447,6 +449,10 @@ recycle:
not_cpp_line = 1;
goto recycle;
}
+#ifdef MRI
+ (*unget) (ch); /* Put back */
+ return ' '; /* Always return one space at start of line */
+#endif
/* If we're in state 2, we've seen a non-white
character followed by whitespace. If the next
@@ -458,29 +464,6 @@ recycle:
return ch;
}
-#if defined (LABELS_WITHOUT_COLONS) || defined (MRI)
- /* Like above, but handles case where labels are not
- required to have colons (and therefore must be identified
- by their *position* in the input stream.) For a testcase
- see hppa/more.parse/labelbug.s.
-
- This also has the effect of sometimes leaving a whitespace
- before a newline. Instead of trying to rework this horribly
- broken and hairy code I'm just going to zap the extra space here. */
- if (state == 2 && lex[ch] == LEX_IS_SYMBOL_COMPONENT)
- {
- (*unget) (ch);
- return ' ';
- }
-
- /* Don't emit a space before a newline. */
- if (state == 2 && lex[ch] == LEX_IS_NEWLINE)
- {
- state = 0;
- return ch;
- }
-#endif
-
switch (state)
{
case 0: