public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb9aa03
)
Fix some late-night typo bugs.
author
David Given
<dg@cowlark.com>
Fri, 23 Sep 2016 23:09:32 +0000
(
01:09
+0200)
committer
David Given
<dg@cowlark.com>
Fri, 23 Sep 2016 23:09:32 +0000
(
01:09
+0200)
mach/proto/mcg/symbol.c
patch
|
blob
|
history
diff --git
a/mach/proto/mcg/symbol.c
b/mach/proto/mcg/symbol.c
index
f8c2f52
..
6012b91
100644
(file)
--- a/
mach/proto/mcg/symbol.c
+++ b/
mach/proto/mcg/symbol.c
@@
-1,10
+1,7
@@
#include "mcg.h"
-typedef int idf_walker_t(struct idf* idf, void* user);
-
static void init_idf();
static struct idf* str2idf(char* tg, int cp);
-static struct idf* walk_idf(idf_walker_t* cb, void* user);
#define IDF_TYPE struct symbol
#define IDF_NAME symbol
@@
-53,7
+50,7
@@
struct symbol* symbol_walk(symbol_walker_t* cb, void* user)
{
struct symbol* symbol = &idf->symbol;
if (cb(symbol, user))
- return
&
symbol;
+ return symbol;
idf = idf->id_next;
}
}