fileio.c


Log

Author Commit Date CI Message
Baptiste Daroussin cae8bf26 2015-02-02T17:35:32 Trim spaces after a quoted newline if a newline has been quoted then trim all spaces (' ' and '\t') found on the next line
Jean-Sébastien Pédron bff5f15d 2014-07-31T16:15:31 Support .pc file without a trailing newline Some editors write text files without a newline character at the end of the last line. Before this change, the main loop in pkg_new_from_file() expected a newline character at the end of the line and overwrote it with a NUL character. In the case of the last line in a non-newline-terminated file, this ate the last character of that line. Now, the pkg_fgetline() function takes care of returning a line without the newline character (or the "\r\n" sequence in case of a DOS file format).
Baptiste Daroussin 2d5dfe7d 2012-08-14T11:06:04 do not keep the quote information when set once
Baptiste Daroussin c6f6cb78 2012-08-14T11:00:53 Keep the backslash if not followed by \n or \r\n when parsing
William Pitcock ee2e6054 2012-07-30T01:53:32 fileio: add support for quoting to pkg_fgetline().
William Pitcock 0a5cb4c4 2012-07-25T21:09:31 everything: update copyright to note multiple authors
William Pitcock 1975a298 2012-07-20T14:29:58 everything: more friendly warranty disclaimer
William Pitcock 130907d5 2012-05-04T03:21:51 fileio: add routine for portably yanking lines out of a FILE stream