ld -plugin options when plugins are disabled
[deliverable/binutils-gdb.git] / binutils / mclex.c
index ac45e225f3abf3107418c74a1d6f8dc80b5751e4..1b5d5c374f34251f76c99aae5b2365924e715958 100644 (file)
@@ -1,5 +1,5 @@
 /* mclex.c -- lexer for Windows mc files parser.
-   Copyright (C) 2007-2017 Free Software Foundation, Inc.
+   Copyright (C) 2007-2020 Free Software Foundation, Inc.
 
    Written by Kai Tietz, Onevision.
 
@@ -337,17 +337,19 @@ yylex (void)
   if (mclex_want_line)
     {
       start_token = input_stream_pos;
+      if (input_stream_pos[0] == 0)
+       return -1;
       if (input_stream_pos[0] == '.'
          && (input_stream_pos[1] == '\n'
              || (input_stream_pos[1] == '\r' && input_stream_pos[2] == '\n')))
-      {
-       mclex_want_line = FALSE;
-       while (input_stream_pos[0] != 0 && input_stream_pos[0] != '\n')
-         ++input_stream_pos;
-       if (input_stream_pos[0] == '\n')
-         ++input_stream_pos;
-       return MCENDLINE;
-      }
+       {
+         mclex_want_line = FALSE;
+         while (input_stream_pos[0] != 0 && input_stream_pos[0] != '\n')
+           ++input_stream_pos;
+         if (input_stream_pos[0] == '\n')
+           ++input_stream_pos;
+         return MCENDLINE;
+       }
       while (input_stream_pos[0] != 0 && input_stream_pos[0] != '\n')
        ++input_stream_pos;
       if (input_stream_pos[0] == '\n')
This page took 0.023708 seconds and 4 git commands to generate.