projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ee1cba
)
Move declaration to start of block
author
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 Aug 2004 08:58:59 +0000
(08:58 +0000)
committer
Adam Dickmeiss
<adam@indexdata.dk>
Fri, 13 Aug 2004 08:58:59 +0000
(08:58 +0000)
src/odr.c
patch
|
blob
|
history
diff --git
a/src/odr.c
b/src/odr.c
index
54ff613
..
88d7c4e
100644
(file)
--- a/
src/odr.c
+++ b/
src/odr.c
@@
-2,7
+2,7
@@
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
* Copyright (c) 1995-2004, Index Data
* See the file LICENSE for details.
*
- * $Id: odr.c,v 1.3 2004-08-13 07:30:06 adam Exp $
+ * $Id: odr.c,v 1.4 2004-08-13 08:58:59 adam Exp $
*
*/
#if HAVE_CONFIG_H
*
*/
#if HAVE_CONFIG_H
@@
-110,12
+110,12
@@
void odr_FILE_write(ODR o, void *handle, int type,
#endif
for (i = 0; i<len; i++)
{
#endif
for (i = 0; i<len; i++)
{
+ unsigned c = ((const unsigned char *) buf)[i];
if (i == 2000 && len > 3100)
{
fputs(" ..... ", (FILE*) handle);
i = len - 1000;
}
if (i == 2000 && len > 3100)
{
fputs(" ..... ", (FILE*) handle);
i = len - 1000;
}
- unsigned c = ((const unsigned char *) buf)[i];
if (strchr("\r\n\f\t", c) || c >= ' ' && c <= 126)
putc(c, (FILE*) handle);
else
if (strchr("\r\n\f\t", c) || c >= ' ' && c <= 126)
putc(c, (FILE*) handle);
else