mirror of
https://github.com/golang/go
synced 2024-11-13 19:00:25 -07:00
avoid clash with stdio's getc, ungetc.
Fixes #50. R=r https://golang.org/cl/154064
This commit is contained in:
parent
8515a9f4e2
commit
8c3d2f015b
@ -39,6 +39,9 @@
|
|||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#define getc ccgetc
|
||||||
|
#define ungetc ccungetc
|
||||||
|
|
||||||
typedef struct Node Node;
|
typedef struct Node Node;
|
||||||
typedef struct Sym Sym;
|
typedef struct Sym Sym;
|
||||||
typedef struct Type Type;
|
typedef struct Type Type;
|
||||||
|
@ -13,6 +13,11 @@
|
|||||||
#ifndef EXTERN
|
#ifndef EXTERN
|
||||||
#define EXTERN extern
|
#define EXTERN extern
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#define getc gcgetc
|
||||||
|
#define ungetc gcungetc
|
||||||
|
|
||||||
enum
|
enum
|
||||||
{
|
{
|
||||||
NHUNK = 50000,
|
NHUNK = 50000,
|
||||||
|
Loading…
Reference in New Issue
Block a user