chiark
/
gitweb
/
~mdw
/
mLib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
utils/macros.h: Add <ctype.h> and `foocmp' helper macros.
[mLib]
/
struct
/
sym.c
diff --git
a/struct/sym.c
b/struct/sym.c
index 4543811676af87d303f88dbe0f3fd0e0a1fedf6c..2eb309c175ec20de8f87343ee0361bf13c236283 100644
(file)
--- a/
struct/sym.c
+++ b/
struct/sym.c
@@
-40,6
+40,7
@@
#include "bits.h"
#include "exc.h"
#include "hash.h"
#include "bits.h"
#include "exc.h"
#include "hash.h"
+#include "macros.h"
#include "sub.h"
#include "sym.h"
#include "unihash.h"
#include "sub.h"
#include "sym.h"
#include "unihash.h"
@@
-136,7
+137,8
@@
void *sym_find(sym_table *t, const char *n, long l, size_t sz, unsigned *f)
for (p = bin; *p; p = &(*p)->next) {
q = (sym_base *)*p;
for (p = bin; *p; p = &(*p)->next) {
q = (sym_base *)*p;
- if (hash == q->b.hash && len == q->len && !memcmp(n, SYM_NAME(q), len)) {
+ if (hash == q->b.hash && len == q->len &&
+ MEMCMP(n, ==, SYM_NAME(q), len)) {
/* --- Found a match --- *
*
/* --- Found a match --- *
*