projects
/
uebersetzerbau-ss10.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
codea: chmod a-x symtable.*
[uebersetzerbau-ss10.git]
/
codea
/
symtable.c
diff --git
a/codea/symtable.c
b/codea/symtable.c
old mode 100755
(executable)
new mode 100644
(file)
index
f8e4f21
..
4776240
--- a/
codea/symtable.c
+++ b/
codea/symtable.c
@@
-56,9
+56,7
@@
struct symbol *tab_add_symbol(struct symbol *tab, char *ident, short type, short
new_elm->param_index = param_index;
new_elm->soffset = soffset;
new_elm->param_index = param_index;
new_elm->soffset = soffset;
- if(tab == SYMNULL) {
- return new_elm;
- }
+ if(tab == SYMNULL) return new_elm;
while(elm->next != SYMNULL) {
elm = elm->next;
while(elm->next != SYMNULL) {
elm = elm->next;
@@
-72,9
+70,7
@@
struct symbol *tab_lookup(struct symbol *tab, char *ident, short type)
{
struct symbol *elm = tab;
{
struct symbol *elm = tab;
- if(tab == SYMNULL) {
- return SYMNULL;
- }
+ if(tab == SYMNULL) return SYMNULL;
do {
if((elm->type & type) && (strcmp(elm->ident, ident) == 0)) {
do {
if((elm->type & type) && (strcmp(elm->ident, ident) == 0)) {