public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7a4db6
)
function: allow struct * but not struct arguments
author
Alan Cox
<alan@linux.intel.com>
Thu, 16 Nov 2017 23:55:49 +0000
(23:55 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 16 Nov 2017 23:55:49 +0000
(23:55 +0000)
Applications/SmallC/function.c
patch
|
blob
|
history
diff --git
a/Applications/SmallC/function.c
b/Applications/SmallC/function.c
index
a4f4bd8
..
1ff456e
100644
(file)
--- a/
Applications/SmallC/function.c
+++ b/
Applications/SmallC/function.c
@@
-196,6
+196,10
@@
void doLocalAnsiArgument(int type) {
if (match("*")) {
identity = POINTER;
} else {
+ if (type == STRUCT) {
+ error("cannot pass struct");
+ return;
+ }
identity = VARIABLE;
if (type == VOID)
return;