version 1.25, 2003/08/08 07:53:19 |
version 1.26, 2003/08/10 21:28:48 |
|
|
} |
} |
/* if the last line contains no EOL, append one */ |
/* if the last line contains no EOL, append one */ |
if (i_size > 0 && i_womp[i_size - 1] != '\n') { |
if (i_size > 0 && i_womp[i_size - 1] != '\n') { |
|
last_line_missing_eol = true; |
/* fix last line */ |
/* fix last line */ |
sz = s - i_ptr[iline]; |
sz = s - i_ptr[iline]; |
p = malloc(sz + 1); |
p = malloc(sz + 1); |
|
|
i_ptr[iline] = p; |
i_ptr[iline] = p; |
/* count the extra line and make it point to some valid mem */ |
/* count the extra line and make it point to some valid mem */ |
i_ptr[++iline] = ""; |
i_ptr[++iline] = ""; |
} |
} else |
|
last_line_missing_eol = false; |
|
|
input_lines = iline - 1; |
input_lines = iline - 1; |
|
|