projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
8940864
)
Make inlined functions static
author
H.G.Muller
<hgm@hgm-xboard.(none)>
Sun, 14 Sep 2014 19:41:04 +0000 (21:41 +0200)
committer
H.G.Muller
<hgm@hgm-xboard.(none)>
Sun, 28 Sep 2014 20:14:26 +0000 (22:14 +0200)
Clang apparently chokes on non-static inline functions,
and they were not used from other files anyway.
parser.c
patch
|
blob
|
history
diff --git
a/parser.c
b/parser.c
index
481e7b2
..
c5b79fa
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-87,7
+87,7
@@
SkipWhite (char **p)
return *p != start;
}
-inline int
+static inline int
Match (char *pattern, char **ptr)
{
char *p = pattern, *s = *ptr;
@@
-99,7
+99,7
@@
Match (char *pattern, char **ptr)
return 0; // no match, no ptr update
}
-inline int
+static inline int
Word (char *pattern, char **p)
{
if(Match(pattern, p)) return 1;