From 4e40b8d73c5339684d39fb56544f326591d2d267 Mon Sep 17 00:00:00 2001 From: bnnm Date: Sat, 10 Jun 2023 16:35:08 +0200 Subject: [PATCH] doc --- src/util/cri_utf.c | 4 ++-- src/util/cri_utf.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/cri_utf.c b/src/util/cri_utf.c index 36fb74da..f2c5672d 100644 --- a/src/util/cri_utf.c +++ b/src/util/cri_utf.c @@ -245,14 +245,14 @@ void utf_close(utf_context* utf) { } -int utf_get_column(utf_context* utf, const char* column) { +int utf_get_column(utf_context* utf, const char* column_name) { int i; /* find target column */ for (i = 0; i < utf->columns; i++) { struct utf_column_t* col = &utf->schema[i]; - if (col->name == NULL || strcmp(col->name, column) != 0) + if (col->name == NULL || strcmp(col->name, column_name) != 0) continue; return i; } diff --git a/src/util/cri_utf.h b/src/util/cri_utf.h index 3f73afc3..798e5235 100644 --- a/src/util/cri_utf.h +++ b/src/util/cri_utf.h @@ -24,7 +24,7 @@ typedef struct utf_context utf_context; utf_context* utf_open(STREAMFILE* sf, uint32_t table_offset, int* p_rows, const char** p_row_name); void utf_close(utf_context* utf); -int utf_get_column(utf_context* utf, const char* column); +int utf_get_column(utf_context* utf, const char* column_name); /* query calls (passing column index is faster, when you have to read lots of rows) */ int utf_query_col_s8(utf_context* utf, int row, int column, int8_t* value);