projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Backport changes from the grammar branch
[SXSI/XMLTree.git]
/
bpcore.c
diff --git
a/bpcore.c
b/bpcore.c
index
18e9cc9
..
acb37bf
100644
(file)
--- a/
bpcore.c
+++ b/
bpcore.c
@@
-1,6
+1,12
@@
#include <stdio.h>
#include <stdlib.h>
#include "bp.h"
+#ifndef min
+ #define min(x,y) ((x)<(y)?(x):(y))
+#endif
+#ifndef max
+ #define max(x,y) ((x)>(y)?(x):(y))
+#endif
#define NOTFOUND -2
#define CONTINUE -3