size_t hashsize; /* Size of hash */
- DEBUG_printf(("2_httpSetDigestAuthString(http=%p, nonce=\"%s\", method=\"%s\", resource=\"%s\")", http, nonce, method, resource));
+ DEBUG_printf(("2_httpSetDigestAuthString(http=%p, nonce=\"%s\", method=\"%s\", resource=\"%s\")", (void *)http, nonce, method, resource));
if (nonce && *nonce && strcmp(nonce, http->nonce))
{
* Skip whitespace and comments...
*/
+ DEBUG_printf(("1_ippFileReadToken: linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp)));
+
while ((ch = cupsFileGetChar(f->fp)) != EOF)
{
if (_cups_isspace(ch))
*/
if (ch == '\n')
+ {
f->linenum ++;
+ DEBUG_printf(("1_ippFileReadToken: LF in leading whitespace, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp)));
+ }
}
else if (ch == '#')
{
* Comment...
*/
+ DEBUG_puts("1_ippFileReadToken: Skipping comment in leading whitespace...");
+
while ((ch = cupsFileGetChar(f->fp)) != EOF)
{
if (ch == '\n')
}
if (ch == '\n')
+ {
f->linenum ++;
+ DEBUG_printf(("1_ippFileReadToken: LF at end of comment, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp)));
+ }
else
break;
}
while (ch != EOF)
{
if (ch == '\n')
+ {
f->linenum ++;
+ DEBUG_printf(("1_ippFileReadToken: LF in token, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp)));
+ }
if (ch == quote)
{
*/
*tokptr = '\0';
- DEBUG_printf(("1_ippFileReadToken: Returning \"%s\".", token));
+ DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" at closing quote.", token));
return (1);
}
else if (!quote && _cups_isspace(ch))
*/
*tokptr = '\0';
- DEBUG_printf(("1_ippFileReadToken: Returning \"%s\".", token));
+ DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" before whitespace.", token));
return (1);
}
else if (!quote && (ch == '\'' || ch == '\"'))
*/
quote = ch;
+
+ DEBUG_printf(("1_ippFileReadToken: Start of quoted string, quote=%c, pos=%ld", quote, (long)cupsFileTell(f->fp)));
}
else if (!quote && ch == '#')
{
cupsFileSeek(f->fp, cupsFileTell(f->fp) - 1);
*tokptr = '\0';
- DEBUG_printf(("1_ippFileReadToken: Returning \"%s\".", token));
+ DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" before comment.", token));
return (1);
}
else if (!quote && (ch == '{' || ch == '}' || ch == ','))
* Quoted character...
*/
+ DEBUG_printf(("1_ippFileReadToken: Quoted character at pos=%ld", (long)cupsFileTell(f->fp)));
+
if ((ch = cupsFileGetChar(f->fp)) == EOF)
{
*token = '\0';
return (0);
}
else if (ch == '\n')
+ {
f->linenum ++;
+ DEBUG_printf(("1_ippFileReadToken: quoted LF, linenum=%d, pos=%ld", f->linenum, (long)cupsFileTell(f->fp)));
+ }
}
if (tokptr < tokend)
}
*tokptr = '\0';
- DEBUG_printf(("1_ippFileReadToken: Returning \"%s\".", token));
+ DEBUG_printf(("1_ippFileReadToken: Returning \"%s\" at EOF.", token));
return (tokptr > token);
}
main(int argc, /* I - Number of command-line args */
char *argv[]) /* I - Command-line arguments */
{
- int errors; /* Number of errors */
- const char *ext; /* Filename extension */
+ int errors = 0; /* Number of errors */
if (argc == 1)
{
- errors = do_raster_tests(CUPS_RASTER_WRITE);
+ errors += do_raster_tests(CUPS_RASTER_WRITE);
errors += do_raster_tests(CUPS_RASTER_WRITE_COMPRESSED);
errors += do_raster_tests(CUPS_RASTER_WRITE_PWG);
errors += do_raster_tests(CUPS_RASTER_WRITE_APPLE);
{
int i; /* Looping var */
- for (errors = 0, i = 1; i < argc; i ++)
+ for (i = 1; i < argc; i ++)
errors += do_ras_file(argv[i]);
}