From: Bruno Haible Date: Mon, 24 Sep 2001 12:19:08 +0000 (+0000) Subject: Add function prototypes. X-Git-Tag: v0.11~476 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da1116c0a710f3261359672ca4002424fe91518c;p=thirdparty%2Fgettext.git Add function prototypes. --- diff --git a/lib/ChangeLog b/lib/ChangeLog index 63880481d..8daf32cb7 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,9 @@ +2001-09-08 Bruno Haible + + * pipe-bidi.c (nonintr_close): Add function prototypes. + * pipe-in.c (nonintr_close, nonintr_open): Likewise. + * pipe-out.c (nonintr_close, nonintr_open): Likewise. + 2001-09-08 Bruno Haible * findprog.c: Include specification header before all other headers. diff --git a/lib/pipe-bidi.c b/lib/pipe-bidi.c index b52aacb2c..e159f62f2 100644 --- a/lib/pipe-bidi.c +++ b/lib/pipe-bidi.c @@ -52,6 +52,13 @@ #define _(str) gettext (str) +/* Prototypes for local functions. Needed to ensure compiler checking of + function argument counts despite of K&R C function definition syntax. */ +#ifdef EINTR +static inline int nonintr_close PARAMS ((int fd)); +#endif + + #ifdef EINTR /* EINTR handling for close(). diff --git a/lib/pipe-in.c b/lib/pipe-in.c index 85e911f7b..8149f4934 100644 --- a/lib/pipe-in.c +++ b/lib/pipe-in.c @@ -53,6 +53,15 @@ #define _(str) gettext (str) +/* Prototypes for local functions. Needed to ensure compiler checking of + function argument counts despite of K&R C function definition syntax. */ +#ifdef EINTR +static inline int nonintr_close PARAMS ((int fd)); +static inline int nonintr_open PARAMS ((const char *pathname, int oflag, + mode_t mode)); +#endif + + #ifdef EINTR /* EINTR handling for close(), open(). diff --git a/lib/pipe-out.c b/lib/pipe-out.c index ffb6ef292..60aab62b3 100644 --- a/lib/pipe-out.c +++ b/lib/pipe-out.c @@ -53,6 +53,15 @@ #define _(str) gettext (str) +/* Prototypes for local functions. Needed to ensure compiler checking of + function argument counts despite of K&R C function definition syntax. */ +#ifdef EINTR +static inline int nonintr_close PARAMS ((int fd)); +static inline int nonintr_open PARAMS ((const char *pathname, int oflag, + mode_t mode)); +#endif + + #ifdef EINTR /* EINTR handling for close(), open(). diff --git a/src/ChangeLog b/src/ChangeLog index 8b1501aa5..fc641c738 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-09-08 Bruno Haible + + * msgexec.c (nonintr_select): Add function prototype. + + * xgettext.c (scan_java_file): Add function prototype. + 2001-09-23 Bruno Haible * xgettext.c (remember_a_message): Warn about empty msgid if it diff --git a/src/msgexec.c b/src/msgexec.c index 0445866ea..83898449b 100644 --- a/src/msgexec.c +++ b/src/msgexec.c @@ -109,6 +109,11 @@ static inline int nonintr_close PARAMS ((int fd)); static inline ssize_t nonintr_read PARAMS ((int fd, void *buf, size_t count)); static inline ssize_t nonintr_write PARAMS ((int fd, const void *buf, size_t count)); +#if HAVE_SELECT +static inline int nonintr_select PARAMS ((int n, fd_set *readfds, + fd_set *writefds, fd_set *exceptfds, + struct timeval *timeout)); +#endif #endif static void process_string PARAMS ((const char *str, size_t len, char **resultp, size_t *lengthp)); diff --git a/src/xgettext.c b/src/xgettext.c index 1b7713c90..75a801cf7 100644 --- a/src/xgettext.c +++ b/src/xgettext.c @@ -165,6 +165,8 @@ static void scan_c_file PARAMS ((const char *file_name, msgdomain_list_ty *mdlp)); static void scan_po_file PARAMS ((const char *file_name, msgdomain_list_ty *mdlp)); +static void scan_java_file PARAMS ((const char *file_name, + msgdomain_list_ty *mdlp)); static long difftm PARAMS ((const struct tm *a, const struct tm *b)); static message_ty *construct_header PARAMS ((void));