~ubuntu-branches/ubuntu/lucid/9base/lucid

« back to all changes in this revision

Viewing changes to lib9/regex/rregexec.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Baumann
  • Date: 2009-08-20 17:34:06 UTC
  • mfrom: (6.2.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090820173406-xpwqa9ruyevvc0ut
Tags: 1:3-3
* Updating maintainer field.
* Updating vcs fields.
* Updating package to standards version 3.8.3.
* Updatin variables writing in rules to consistent style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
        Relist* tle;            /* ends of this and next list */
26
26
        Relist* nle;
27
27
        int match;
 
28
        Rune *p;
28
29
 
29
30
        match = 0;
30
31
        checkstart = j->startchar;
44
45
                if(checkstart) {
45
46
                        switch(j->starttype) {
46
47
                        case RUNE:
47
 
                                while(*s != j->startchar) {
48
 
                                        if(*s == 0 || s == j->reol)
49
 
                                                return match;
50
 
                                        s++;
51
 
                                }
 
48
                                p = runestrchr(s, j->startchar);
 
49
                                if(p == 0 || p == j->reol)
 
50
                                        return match;
 
51
                                s = p;
52
52
                                break;
53
53
                        case BOL:
54
54
                                if(s == bol)
55
55
                                        break;
56
 
                                while(*s != '\n') {
57
 
                                        if(*s == 0 || s == j->reol)
58
 
                                                return match;
59
 
                                        s++;
60
 
                                }
 
56
                                p = runestrchr(s, '\n');
 
57
                                if(p == 0 || s == j->reol)
 
58
                                        return match;
 
59
                                s = p+1;
61
60
                                break;
62
61
                        }
63
62
                }