comparison src/vbuf.c @ 120:6395ced2b8b2

disable building pst2dii on cygwin consistent ordering of our include files all system includes protected by ifdef HAVE_ from autoconf
author Carl Byington <carl@five-ten-sg.com>
date Sun, 01 Feb 2009 11:24:22 -0800
parents ed2a260bbb98
children ab2a11e72250
comparison
equal deleted inserted replaced
119:f50f4321aa2d 120:6395ced2b8b2
96 } 96 }
97 } 97 }
98 98
99 if (-1 == len) { 99 if (-1 == len) {
100 vshexdump(errbuf, str, 0, length, 1); 100 vshexdump(errbuf, str, 0, length, 1);
101 WARN(("String is not zero terminated (probably broken data from registry) %s.", errbuf->b)); 101 DEBUG_WARN(("String is not zero terminated (probably broken data from registry) %s.\n", errbuf->b));
102 } 102 }
103 103
104 return (-1 == len) ? 0 : 1; 104 return (-1 == len) ? 0 : 1;
105 } 105 }
106 106
128 dest->dlen = outbuf - dest->b; 128 dest->dlen = outbuf - dest->b;
129 vbgrow(dest, inbytesleft); 129 vbgrow(dest, inbytesleft);
130 } while ((size_t)-1 == icresult && E2BIG == errno); 130 } while ((size_t)-1 == icresult && E2BIG == errno);
131 131
132 if (icresult == (size_t)-1) { 132 if (icresult == (size_t)-1) {
133 WARN(("iconv failure: %s", strerror(errno))); 133 DEBUG_WARN(("iconv failure: %s\n", strerror(errno)));
134 unicode_init(); 134 unicode_init();
135 return (size_t)-1; 135 return (size_t)-1;
136 } 136 }
137 return (icresult) ? (size_t)-1 : 0; 137 return (icresult) ? (size_t)-1 : 0;
138 } 138 }
168 dest->dlen = outbuf - dest->b; 168 dest->dlen = outbuf - dest->b;
169 vbgrow(dest, 20); 169 vbgrow(dest, 20);
170 } while ((size_t)-1 == icresult && E2BIG == errno); 170 } while ((size_t)-1 == icresult && E2BIG == errno);
171 171
172 if (icresult == (size_t)-1) { 172 if (icresult == (size_t)-1) {
173 WARN(("iconv failure: %s", strerror(errno))); 173 WARN(("iconv failure: %s\n", strerror(errno)));
174 unicode_init(); 174 unicode_init();
175 return (size_t)-1; 175 return (size_t)-1;
176 } 176 }
177 return (icresult) ? (size_t)-1 : 0; 177 return (icresult) ? (size_t)-1 : 0;
178 } 178 }