Fri Jun 28 07:27:10 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorroland <roland>
Mon, 1 Jul 1996 22:16:23 +0000 (22:16 +0000)
committerroland <roland>
Mon, 1 Jul 1996 22:16:23 +0000 (22:16 +0000)
commit15ce0201057845d6a9cc886ae4f2434214336d4f
tree2a31a88f994195e3ffe3400e47bd19cac425dc95
parent4968ade611376fd1bc93bf4fac33317d2881cc33
Fri Jun 28 07:27:10 1996  Roland McGrath  <roland@delasyd.gnu.ai.mit.edu>

* nss/nss_files/files-hosts.c (ENTDATA): Define it.
* nss/nss_files/files-parse.c (struct parser_data): Define entdata
member only #ifdef ENTDATA.
(ENTDATA_DECL): New macro.
(LINE_PARSER): Use it for entdata decl.
(parse_list): Find the space for LIST from DATA->linebuffer instead of
from the input LINE, which might not be writable buffer space.
(LINE_PARSER): Use `parser_stclass' in place of `static inline'.
[ENTDATA] (parser_stclass): #define to `static inline'.
[!ENDATA] (parser_stclass): #define to empty.
[!ENDATA] (parse_line): #define to _nss_files_parse_ENTNAME; the
function is exported to -lnss_files users.
nss/nss_files/files-hosts.c