You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1260,11 +1260,11 @@ static int detect_types(const char **pch, int ncol, bool *bumped)
1260
1260
dec='.';
1261
1261
}
1262
1262
1263
-
fun[tmpType[field]](&fctx);
1263
+
parser_funs[tmpType[field]](&fctx);
1264
1264
if (end_of_field(ch)) break;
1265
1265
skip_white(&ch);
1266
1266
if (end_of_field(ch)) break;
1267
-
ch=end_NA_string(fieldStart); // fieldStart here is correct (already after skip_white above); fun[]() may have part processed field so not ch
1267
+
ch=end_NA_string(fieldStart); // fieldStart here is correct (already after skip_white above); parser_funs[]() may have part processed field so not ch
1268
1268
skip_white(&ch);
1269
1269
if (end_of_field(ch)) break;
1270
1270
ch=fieldStart;
@@ -1275,7 +1275,7 @@ static int detect_types(const char **pch, int ncol, bool *bumped)
1275
1275
}
1276
1276
if (*ch==quote&"e) { // && quote to exclude quote='\0' (user passed quote="")
1277
1277
ch++;
1278
-
fun[tmpType[field]](&fctx);
1278
+
parser_funs[tmpType[field]](&fctx);
1279
1279
if (*ch==quote) {
1280
1280
ch++;
1281
1281
skip_white(&ch);
@@ -2459,7 +2459,7 @@ int freadMain(freadMainArgs _args)
2459
2459
// DTPRINT(_("Field %d: '%.10s' as type %d (tch=%p)\n"), j+1, tch, type[j], tch);
2460
2460
fieldStart=tch;
2461
2461
int8_tthisType=type[j]; // fetch shared type once. Cannot read half-written byte is one reason type's type is single byte to avoid atomic read here.
2462
-
fun[IGNORE_BUMP(thisType)](&fctx);
2462
+
parser_funs[IGNORE_BUMP(thisType)](&fctx);
2463
2463
if (*tch!=sep) break;
2464
2464
int8_tthisSize=size[j];
2465
2465
if (thisSize) ((char**) targets)[thisSize] +=thisSize; // 'if' for when rereading to avoid undefined NULL+0
@@ -2523,7 +2523,7 @@ int freadMain(freadMainArgs _args)
2523
2523
if (!end_of_field(tch)) tch=afterSpace; // else it is the field_end, we're on closing sep|eol and we'll let processor write appropriate NA as if field was empty
2524
2524
if (*tch==quote&"e) { quoted= true; tch++; }
2525
2525
} // else Field() handles NA inside it unlike other processors e.g. ,, is interpreted as "" or NA depending on option read inside Field()
2526
-
fun[IGNORE_BUMP(thisType)](&fctx);
2526
+
parser_funs[IGNORE_BUMP(thisType)](&fctx);
2527
2527
2528
2528
booltypeBump= false;
2529
2529
if (quoted) { // quoted was only set to true with '&& quote' above (=> quote!='\0' now)
0 commit comments