projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
odr_errno-->odr_error
[yaz-moved-to-github.git]
/
odr
/
odr_util.c
diff --git
a/odr/odr_util.c
b/odr/odr_util.c
index
af26bae
..
16dc984
100644
(file)
--- a/
odr/odr_util.c
+++ b/
odr/odr_util.c
@@
-2,7
+2,15
@@
#include <stdlib.h>
void *nalloc(ODR o, int size) { return malloc(size); }
#include <stdlib.h>
void *nalloc(ODR o, int size) { return malloc(size); }
-char *odr_indent(ODR o) {return "";}
+
+char *odr_indent(ODR o)
+{
+ static char buf[512];
+
+ memset(buf, ' ', 512);
+ buf[o->indent * 4] = 0;
+ return buf;
+}
int odp_more_chunks(ODR o, unsigned char *base, int len)
{
int odp_more_chunks(ODR o, unsigned char *base, int len)
{