mirror of
https://github.com/golang/go
synced 2024-11-21 21:14:47 -07:00
godefs: handle volatile
R=iant CC=golang-dev https://golang.org/cl/4291063
This commit is contained in:
parent
8dee872963
commit
fba0606220
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user