Lines Matching refs:cols
287 int err, ekey = 0, rows, cols ; in get_ekey_from_filename() local
293 err = sqlite3_get_table (db->sql, db->cmdbuf, &result, &rows, &cols, &errmsg) ; in get_ekey_from_filename()
299 if (cols != 1 || rows != 1) in get_ekey_from_filename()
300 { printf ("Bad juju!! rows = %d cols = %d\n", rows, cols) ; in get_ekey_from_filename()
314 int err, rows, cols ; in get_filename_pathname_by_ekey() local
318 err = sqlite3_get_table (db->sql, db->cmdbuf, &result, &rows, &cols, &errmsg) ; in get_filename_pathname_by_ekey()
325 if (cols != 2 || rows != 1) in get_filename_pathname_by_ekey()
326 { printf ("\nError (%s %d) : rows = %d cols = %d\n", __func__, __LINE__, rows, cols) ; in get_filename_pathname_by_ekey()
343 int err, k, rows, cols, checksum ; in check_file_by_ekey() local
365 err = sqlite3_get_table (db->sql, db->cmdbuf, &result, &rows, &cols, &errmsg) ; in check_file_by_ekey()
371 for (k = 0 ; k < cols ; k++) in check_file_by_ekey()
373 { if (strcmp (result [k + cols], db->filename) == 0) in check_file_by_ekey()
375 printf ("\n\nError : fname doesn't match : %s != %s\n", result [k + cols], db->filename) ; in check_file_by_ekey()
379 { if (strtol (result [k + cols], NULL, 10) == info.samplerate) in check_file_by_ekey()
381 printf ("\n\nError : srate doesn't match : %s == %d\n", result [k + cols], info.samplerate) ; in check_file_by_ekey()
385 { if (strtoll (result [k + cols], NULL, 10) == info.frames) in check_file_by_ekey()
387 … printf ("\n\nError : frames doesn't match : %s == %ld\n", result [k + cols], (long) info.frames) ; in check_file_by_ekey()
391 { if (strtol (result [k + cols], NULL, 10) == info.channels) in check_file_by_ekey()
393 printf ("\n\nError : channels doesn't match : %s == %d\n", result [k + cols], info.channels) ; in check_file_by_ekey()
397 { if (strtol (result [k + cols], NULL, 16) == info.format) in check_file_by_ekey()
399 printf ("\n\nError : format doesn't match : %s == 0x%08x\n", result [k + cols], info.format) ; in check_file_by_ekey()
403 { int db_val = (int) strtoll (result [k + cols], NULL, 16) ; in check_file_by_ekey()
413 …printf ("\nHere is the old logubuffer :\n\n%s\n\nand the new :\n\n%s\n\n", result [2 * cols - 1], … in check_file_by_ekey()