Lines Matching defs:result

286 {	char * errmsg, **result ;
293 err = sqlite3_get_table (db->sql, db->cmdbuf, &result, &rows, &cols, &errmsg) ;
304 ekey = strtol (result [1], NULL, 10) ;
306 sqlite3_free_table (result) ;
313 { char *errmsg, **result ;
318 err = sqlite3_get_table (db->sql, db->cmdbuf, &result, &rows, &cols, &errmsg) ;
330 snprintf (db->filename, sizeof (db->filename), "%s", result [2]) ;
331 snprintf (db->pathname, sizeof (db->pathname), "%s", result [3]) ;
333 sqlite3_free_table (result) ;
342 char * errmsg, **result ;
365 err = sqlite3_get_table (db->sql, db->cmdbuf, &result, &rows, &cols, &errmsg) ;
372 { if (strcmp (result [k], "fname") == 0)
373 { if (strcmp (result [k + cols], db->filename) == 0)
375 printf ("\n\nError : fname doesn't match : %s != %s\n", result [k + cols], db->filename) ;
378 if (strcmp (result [k], "srate") == 0)
379 { if (strtol (result [k + cols], NULL, 10) == info.samplerate)
381 printf ("\n\nError : srate doesn't match : %s == %d\n", result [k + cols], info.samplerate) ;
384 if (strcmp (result [k], "frames") == 0)
385 { if (strtoll (result [k + cols], NULL, 10) == info.frames)
387 printf ("\n\nError : frames doesn't match : %s == %ld\n", result [k + cols], (long) info.frames) ;
390 if (strcmp (result [k], "channels") == 0)
391 { if (strtol (result [k + cols], NULL, 10) == info.channels)
393 printf ("\n\nError : channels doesn't match : %s == %d\n", result [k + cols], info.channels) ;
396 if (strcmp (result [k], "format") == 0)
397 { if (strtol (result [k + cols], NULL, 16) == info.format)
399 printf ("\n\nError : format doesn't match : %s == 0x%08x\n", result [k + cols], info.format) ;
402 if (strcmp (result [k], "checksum") == 0)
403 { int db_val = (int) strtoll (result [k + cols], NULL, 16) ;
410 if (strcmp (result [k], "logbuf") == 0)
413 printf ("\nHere is the old logubuffer :\n\n%s\n\nand the new :\n\n%s\n\n", result [2 * cols - 1], db->logbuf) ;
417 sqlite3_free_table (result) ;