public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d967b98
)
lex: add void type
author
Alan Cox
<alan@linux.intel.com>
Fri, 24 Jun 2016 16:59:05 +0000
(17:59 +0100)
committer
Alan Cox
<alan@linux.intel.com>
Fri, 24 Jun 2016 16:59:05 +0000
(17:59 +0100)
Applications/SmallC/lex.c
patch
|
blob
|
history
diff --git
a/Applications/SmallC/lex.c
b/Applications/SmallC/lex.c
index
a79aa82
..
0f14b06
100644
(file)
--- a/
Applications/SmallC/lex.c
+++ b/
Applications/SmallC/lex.c
@@
-197,8
+197,13
@@
void blanks(void) {
/**
* returns declaration type
* @return CCHAR, CINT, UCHAR, UINT
+ *
+ * FIXME: wants rewriting to collect property bits and base type right
*/
int get_type(void) {
+ if (amatch ("void", 4)) {
+ return VOID;
+ }
if (amatch ("register", 8)) {
if (amatch("char", 4))
return CCHAR;