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