Commit Graph

312 Commits

Author SHA1 Message Date
rockdaboot 6569b1c948 Merge pull request #1 from dkg/master
minor source and edge case cleanup
2014-03-21 20:21:18 +01:00
Daniel Kahn Gillmor c07ea9d0a0 return NULL from psl_load_file() if the file could not be read. 2014-03-21 14:43:27 -04:00
Daniel Kahn Gillmor 4e674ccbae document indentation conventions for emacs users 2014-03-21 14:39:17 -04:00
Daniel Kahn Gillmor 2d99b964ff avoid a printf in the library
In general, we don't want libraries to send data to the standard file
descriptors.  There are more that need fixing.

Note: this introduces a new API (psl_suffix_count() and
psl_suffix_exception_count) to enable the same sort of output from the
test.  But this new API seems to imply the internal structure of the
public suffix list.

Do we want to expose this API?  There could be some other PSL
mechanism (e.g. DBOUND) that doesn't have these counts, and a drop-in
replacement would not know what to return here.
2014-03-21 14:38:30 -04:00
Daniel Kahn Gillmor cdeea860f7 git should ignore ephemeral files. 2014-03-21 14:19:25 -04:00
Daniel Kahn Gillmor e3c28f8a86 fgets into buf directly, rather than the stack 2014-03-21 14:18:36 -04:00
Tim Ruehsen cf46f5d84b replaced getline() by fgets() for compatibility reasons 2014-03-21 15:41:27 +01:00
Tim Ruehsen f22a3fcb71 do not redefine _GNU_SOURCE 2014-03-21 11:05:09 +01:00
Tim Ruehsen 2327025f3a fix 'make distcheck' 2014-03-21 11:04:01 +01:00
Tim Ruehsen dc05276515 autoconf first version 2014-03-20 22:43:04 +01:00
Tim Ruehsen 6563469fc1 inital commit 2014-03-20 17:17:24 +01:00
rockdaboot a06ac33343 Initial commit 2014-03-20 08:38:32 -07:00