1
0
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:
Russ Cox 2009-11-11 13:08:35 -08:00
parent 8515a9f4e2
commit 8c3d2f015b
2 changed files with 8 additions and 0 deletions

View File

@ -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;

View File

@ -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,