Skip to content

Commit bf9681e

Browse files
committed
renamed parser functions
1 parent 053d905 commit bf9681e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/fread.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -635,12 +635,12 @@ static void str_to_i32_core(const char **pch, int32_t *target, bool parse_date)
635635
}
636636
}
637637

638-
static void StrtoI32(FieldParseContext *ctx)
638+
static void parse_i32(FieldParseContext *ctx)
639639
{
640640
str_to_i32_core(ctx->ch, (int32_t*) ctx->targets[sizeof(int32_t)], false);
641641
}
642642

643-
static void StrtoI64(FieldParseContext *ctx)
643+
static void parse_i64(FieldParseContext *ctx)
644644
{
645645
const char *ch = *ctx->ch;
646646
int64_t *target = ctx->targets[sizeof(int64_t)];
@@ -1123,7 +1123,7 @@ static void parse_empty(FieldParseContext *ctx)
11231123
}
11241124

11251125
/* Parse numbers 0 | 1 as boolean and ,, as NA (fwrite's default) */
1126-
static void parse_bool_numeric(FieldParseContext *ctx)
1126+
static void parse_bool_10(FieldParseContext *ctx)
11271127
{
11281128
const char *ch = *ctx->ch;
11291129
int8_t *target = ctx->targets[sizeof(int8_t)];
@@ -1189,7 +1189,7 @@ static void parse_bool_lowercase(FieldParseContext *ctx)
11891189
}
11901190

11911191
/* Parse Y | y | N | n as boolean */
1192-
static void parse_bool_yesno(FieldParseContext *ctx)
1192+
static void parse_bool_yn(FieldParseContext *ctx)
11931193
{
11941194
const char *ch = *ctx->ch;
11951195
int8_t *target = ctx->targets[sizeof(int8_t)];
@@ -1215,13 +1215,13 @@ typedef void (*reader_fun_t)(FieldParseContext *ctx);
12151215
static reader_fun_t fun[NUMTYPE] = {
12161216
&Field, // CT_DROP
12171217
&parse_empty, // CT_EMPTY
1218-
&parse_bool_numeric,
1218+
&parse_bool_10,
12191219
&parse_bool_uppercase,
12201220
&parse_bool_titlecase,
12211221
&parse_bool_lowercase,
1222-
&parse_bool_yesno,
1223-
&StrtoI32,
1224-
&StrtoI64,
1222+
&parse_bool_yn,
1223+
&parse_i32,
1224+
&parse_i64,
12251225
&parse_double_regular,
12261226
&parse_double_extended,
12271227
&parse_double_hexadecimal,

0 commit comments

Comments
 (0)