Revision: 53200 http://trac.macports.org/changeset/53200 Author: toby@macports.org Date: 2009-06-30 22:40:21 -0700 (Tue, 30 Jun 2009) Log Message: ----------- more prototype fixes Modified Paths: -------------- trunk/base/src/pextlib1.0/Pextlib.c trunk/base/src/pextlib1.0/strsed.c Added Paths: ----------- trunk/base/src/pextlib1.0/strsed.h Modified: trunk/base/src/pextlib1.0/Pextlib.c =================================================================== --- trunk/base/src/pextlib1.0/Pextlib.c 2009-07-01 05:36:14 UTC (rev 53199) +++ trunk/base/src/pextlib1.0/Pextlib.c 2009-07-01 05:40:21 UTC (rev 53200) @@ -114,6 +114,7 @@ #include "tty.h" #include "get_systemconfiguration_proxies.h" #include "sysctl.h" +#include "strsed.h" #if HAVE_CRT_EXTERNS_H #include <crt_externs.h> @@ -707,7 +708,6 @@ { char *pattern, *string, *res; int range[2]; - extern char *strsed(char *str, char *pat, int *range); Tcl_Obj *tcl_result; if (objc != 3) { Modified: trunk/base/src/pextlib1.0/strsed.c =================================================================== --- trunk/base/src/pextlib1.0/strsed.c 2009-07-01 05:36:14 UTC (rev 53199) +++ trunk/base/src/pextlib1.0/strsed.c 2009-07-01 05:40:21 UTC (rev 53200) @@ -129,6 +129,8 @@ #define HS_REGEX 1 +#include "strsed.h" + #include <ctype.h> #include <string.h> #include <stdlib.h> @@ -222,6 +224,7 @@ static char nextch(char *, int); static void mem_save(int); static int mem_find(int); +char *backslash_eliminate(char *, int, int); /* ------------------------------------------------------------------------- ** * strsed @@ -245,8 +248,6 @@ static regmatch_t *exp_regs = NULL; static regex_t exp; #endif - - char *backslash_eliminate(); char *from; char *new_str; Added: trunk/base/src/pextlib1.0/strsed.h =================================================================== --- trunk/base/src/pextlib1.0/strsed.h (rev 0) +++ trunk/base/src/pextlib1.0/strsed.h 2009-07-01 05:40:21 UTC (rev 53200) @@ -0,0 +1 @@ +char *strsed(char *, char *, int *);
participants (1)
-
toby@macports.org