1
0
mirror of https://github.com/golang/go synced 2024-11-24 22:47:58 -07:00

5l, 6l, 8l: add varargck for %Z

R=golang-dev
CC=golang-dev, rsc
https://golang.org/cl/4837044
This commit is contained in:
Lucio De Re 2011-08-16 14:22:12 -04:00 committed by Russ Cox
parent c8c6e1961d
commit f12e543255
3 changed files with 3 additions and 4 deletions

View File

@ -324,6 +324,7 @@ EXTERN Prog* prog_modu;
#pragma varargck type "N" Adr*
#pragma varargck type "P" Prog*
#pragma varargck type "S" char*
#pragma varargck type "Z" char*
#pragma varargck type "i" char*
int Aconv(Fmt*);

View File

@ -410,6 +410,7 @@ uint32 machheadr(void);
#pragma varargck type "D" Adr*
#pragma varargck type "P" Prog*
#pragma varargck type "R" int
#pragma varargck type "Z" char*
#pragma varargck type "A" int
#pragma varargck argpos diag 1

View File

@ -46,10 +46,6 @@ enum
#define P ((Prog*)0)
#define S ((Sym*)0)
#define TNAME (cursym?cursym->name:noname)
#define cput(c)\
{ *cbp++ = c;\
if(--cbc <= 0)\
cflush(); }
typedef struct Adr Adr;
typedef struct Prog Prog;
@ -254,6 +250,7 @@ enum
#pragma varargck type "R" int
#pragma varargck type "S" char*
#pragma varargck type "Y" Sym*
#pragma varargck type "Z" char*
#pragma varargck type "i" char*
EXTERN int32 HEADR;