bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fix compile time warning for input-file.c


From: Nick Clifton
Subject: Fix compile time warning for input-file.c
Date: 11 Oct 2001 08:13:33 +0100

Hi Guys,

  I am applying the patch below to remove the compile time warning
  about an implicit declaration of the function 'isspace' and
  incidentally switch over to using ISSPACE instead.

Cheers
        Nick

2001-10-11  Nick Clifton  <address@hidden>

        * input-file.c: Include safe-ctype.h.
        (input_file_open): Use ISSPACE instead of isspace.

Index: gas/input-file.c
===================================================================
RCS file: /cvs/src/src/gas/input-file.c,v
retrieving revision 1.8
diff -p -r1.8 input-file.c
*** input-file.c        2001/09/26 20:32:17     1.8
--- input-file.c        2001/10/11 07:12:53
***************
*** 26,34 ****
  
  #include <stdio.h>
  #include <string.h>
- 
  #include "as.h"
  #include "input-file.h"
  
  static int input_file_get PARAMS ((char *, int));
  
--- 26,34 ----
  
  #include <stdio.h>
  #include <string.h>
  #include "as.h"
  #include "input-file.h"
+ #include "safe-ctype.h"
  
  static int input_file_get PARAMS ((char *, int));
  
*************** input_file_open (filename, pre)
*** 159,165 ****
        if (c == 'N')
          {
            fgets (buf, 80, f_in);
!           if (!strncmp (buf, "O_APP", 5) && isspace (buf[5]))
              preprocess = 0;
            if (!strchr (buf, '\n'))
              ungetc ('#', f_in);       /* It was longer.  */
--- 159,165 ----
        if (c == 'N')
          {
            fgets (buf, 80, f_in);
!           if (!strncmp (buf, "O_APP", 5) && ISSPACE (buf[5]))
              preprocess = 0;
            if (!strchr (buf, '\n'))
              ungetc ('#', f_in);       /* It was longer.  */
*************** input_file_open (filename, pre)
*** 169,175 ****
        else if (c == 'A')
          {
            fgets (buf, 80, f_in);
!           if (!strncmp (buf, "PP", 2) && isspace (buf[2]))
              preprocess = 1;
            if (!strchr (buf, '\n'))
              ungetc ('#', f_in);
--- 169,175 ----
        else if (c == 'A')
          {
            fgets (buf, 80, f_in);
!           if (!strncmp (buf, "PP", 2) && ISSPACE (buf[2]))
              preprocess = 1;
            if (!strchr (buf, '\n'))
              ungetc ('#', f_in);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]