Commit fba06062 authored by Russ Cox's avatar Russ Cox

godefs: handle volatile

R=iant
CC=golang-dev
https://golang.org/cl/4291063
parent 8dee8729
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment