1
0
mirror of https://github.com/golang/go synced 2024-09-25 09:10:14 -06:00

yet another attempt to avoid conflicts with

<stdio.h>, which we weren't even #including

R=r
https://golang.org/cl/154108
This commit is contained in:
Russ Cox 2009-11-12 23:38:48 -08:00
parent 845276ae68
commit 593ccd1d44
10 changed files with 29 additions and 10 deletions

View File

@ -37,10 +37,13 @@
#define EXTERN extern
#endif
#define getc aagetc
#define ungetc aaungetc
#undef getc
#undef ungetc
#undef BUFSIZ
#define getc ccgetc
#define ungetc ccungetc
typedef struct Sym Sym;
typedef struct Gen Gen;
typedef struct Io Io;

View File

@ -29,6 +29,7 @@
// THE SOFTWARE.
%{
#include <stdio.h> /* if we don't, bison will, and a.h re-#defines getc */
#include "a.h"
%}
%union

View File

@ -38,10 +38,13 @@
#define EXTERN extern
#endif
#define getc aagetc
#define ungetc aaungetc
#undef getc
#undef ungetc
#undef BUFSIZ
#define getc ccgetc
#define ungetc ccungetc
typedef struct Sym Sym;
typedef struct Ref Ref;
typedef struct Gen Gen;

View File

@ -29,6 +29,7 @@
// THE SOFTWARE.
%{
#include <stdio.h> /* if we don't, bison will, and a.h re-#defines getc */
#include "a.h"
%}
%union {

View File

@ -38,10 +38,13 @@
#define EXTERN extern
#endif
#define getc aagetc
#define ungetc aaungetc
#undef getc
#undef ungetc
#undef BUFSIZ
#define getc ccgetc
#define ungetc ccungetc
typedef struct Sym Sym;
typedef struct Ref Ref;
typedef struct Gen Gen;

View File

@ -29,6 +29,7 @@
// THE SOFTWARE.
%{
#include <stdio.h> /* if we don't, bison will, and a.h re-#defines getc */
#include "a.h"
%}
%union {

View File

@ -39,9 +39,12 @@
#define EXTERN extern
#endif
#undef getc
#undef ungetc
#undef BUFSIZ
#define getc ccgetc
#define ungetc ccungetc
#undef BUFSIZ
typedef struct Node Node;
typedef struct Sym Sym;

View File

@ -29,6 +29,7 @@
// THE SOFTWARE.
%{
#include <stdio.h> /* if we don't, bison will, and cc.h re-#defines getc */
#include "cc.h"
%}
%union {

View File

@ -14,11 +14,13 @@
#define EXTERN extern
#endif
#define getc gcgetc
#define ungetc gcungetc
#undef getc
#undef ungetc
#undef BUFSIZ
#define getc ccgetc
#define ungetc ccungetc
enum
{
NHUNK = 50000,

View File

@ -18,6 +18,7 @@
*/
%{
#include <stdio.h> /* if we don't, bison will, and go.h re-#defines getc */
#include "go.h"
%}
%union {