~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to regex/main.c

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
regoff_t endoff = 0;
18
18
 
19
19
 
20
 
extern int split();
21
 
extern void regprint();
 
20
extern int split(char *string, char *fields[], int nfields, char *sep);
 
21
extern void regprint(my_regex_t *r, FILE *d);
22
22
 
23
23
/*
24
24
 - main - do the simple case, hand off to regress() for regression
145
145
                inbuf[strlen(inbuf)-1] = '\0';  /* get rid of stupid \n */
146
146
                if (debug)
147
147
                        fprintf(stdout, "%d:\n", line);
148
 
                nf = split(inbuf, f, MAXF, "\t\t");
 
148
                nf = split(inbuf, f, MAXF, (char*) "\t\t");
149
149
                if (nf < 3) {
150
150
                        fprintf(stderr, "bad input, line %d\n", line);
151
151
                        exit(1);
288
288
 
289
289
        for (i = 1; i < NSHOULD; i++)
290
290
                should[i] = NULL;
291
 
        nshould = split(f4, should+1, NSHOULD-1, ",");
 
291
        nshould = split(f4, should+1, NSHOULD-1, (char*) ",");
292
292
        if (nshould == 0) {
293
293
                nshould = 1;
294
294
                should[1] = (char*) "";