mirror of
https://github.com/golang/go
synced 2024-11-12 09:20:22 -07: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:
parent
845276ae68
commit
593ccd1d44
@ -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;
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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;
|
||||
|
@ -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 {
|
||||
|
@ -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,
|
||||
|
@ -18,6 +18,7 @@
|
||||
*/
|
||||
|
||||
%{
|
||||
#include <stdio.h> /* if we don't, bison will, and go.h re-#defines getc */
|
||||
#include "go.h"
|
||||
%}
|
||||
%union {
|
||||
|
Loading…
Reference in New Issue
Block a user