Home
last modified time | relevance | path

Searched refs:inputFS (Results 1 – 2 of 2) sorted by relevance

/freebsd-13.1/contrib/one-true-awk/
H A Dlib.c48 static char *inputFS = NULL; /* FS at time of input, for field splitting */ variable
127 strcpy(inputFS, *FS); /* for subsequent field splitting */ in savefs()
132 inputFS = (char *) realloc(inputFS, len_inputFS); in savefs()
133 if (inputFS == NULL) in savefs()
135 memcpy(inputFS, *FS, len_inputFS); in savefs()
339 if (inputFS == NULL) /* make sure we have a copy of FS */ in fldbld()
341 if (strlen(inputFS) > 1) { /* it's a regular expression */ in fldbld()
342 i = refldbld(r, inputFS); in fldbld()
343 } else if ((sep = *inputFS) == ' ') { /* default whitespace */ in fldbld()
362 } else if ((sep = *inputFS) == 0) { /* new: FS="" => 1 char/field */ in fldbld()
[all …]
H A DFIXES102 In fldbld(), make sure that inputFS is set before trying to
445 minor fix in lib.c: increase inputFS to 100, change malloc
809 after a getline var; because inputFS wasn't initialized,