This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

cccp.c fix for vms vax c style include handling


Handling of vax c style include statements ('#include stdio' instead of
'#include <stdio.h>')
is broken in the current snapshot (and the 1.1 release tree). Here's a fix.

Tue Jul 21 12:42:01 1998  Klaus Kaempf <kkaempf@rmi.de>

 * cccp.c (do_include): Fix vax c style include handling.

*** cccp.c-orig Tue Jul 21 12:56:41 1998
--- cccp.c      Tue Jul 21 11:20:30 1998
***************
*** 4547,4553 ****
       */
      /* Note: The argument of ISALPHA() can be evaluated twice, so do
         the pre-decrement outside of the macro. */
!     if (retried && (--fbeg, ISALPHA(*(U_CHAR *) (fbeg)))) {
        while (fin != limit && (!ISSPACE(*fin)))
        *fend++ = *fin++;
        warning ("VAX-C-style include specification found, use '#include
<filename.h>' !");
--- 4547,4553 ----
       */
      /* Note: The argument of ISALPHA() can be evaluated twice, so do
         the pre-decrement outside of the macro. */
!     if (retried && (--fin, ISALPHA(*(U_CHAR *) (fin)))) {
        while (fin != limit && (!ISSPACE(*fin)))
        *fend++ = *fin++;
        warning ("VAX-C-style include specification found, use '#include
<filename.h>' !");


---
Klaus Kaempf   kkaempf@rmi.de
Jakobstr. 181
D-52064 Aachen   Yes, my email account changed.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]