1
0
mirror of https://github.com/golang/go synced 2024-11-25 07:17:56 -07:00

godefs: handle volatile

R=iant
CC=golang-dev
https://golang.org/cl/4291063
This commit is contained in:
Russ Cox 2011-03-23 11:33:53 -04:00
parent 8dee872963
commit fba0606220

View File

@ -219,7 +219,7 @@ parsedef(char **pp, char *name)
t = emalloc(sizeof *t);
switch(*p) {
default:
fprint(2, "unknown type char %c\n", *p);
fprint(2, "unknown type char %c in %s\n", *p, p);
*pp = "";
return t;
@ -284,6 +284,7 @@ parsedef(char **pp, char *name)
return nil;
break;
case 'B': // volatile
case 'k': // const
++*pp;
return parsedef(pp, nil);