diff options
| author | Richard M. Stallman | 1994-12-30 23:28:45 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-12-30 23:28:45 +0000 |
| commit | 03414ea2b6cefe87cc0f4b616ddca3b2709f82aa (patch) | |
| tree | 9e471d226dc733c1e1472912d932f6e06d7cbca0 /src | |
| parent | 002b0d0012b7eb7ae9a58429dedcd9b206c48463 (diff) | |
| download | emacs-03414ea2b6cefe87cc0f4b616ddca3b2709f82aa.tar.gz emacs-03414ea2b6cefe87cc0f4b616ddca3b2709f82aa.zip | |
(regex_compile): Use putchar, not printchar.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/regex.c b/src/regex.c index 2d10105a9bd..9e373a97f46 100644 --- a/src/regex.c +++ b/src/regex.c | |||
| @@ -503,8 +503,6 @@ static int debug = 0; | |||
| 503 | if (debug) print_double_string (w, s1, sz1, s2, sz2) | 503 | if (debug) print_double_string (w, s1, sz1, s2, sz2) |
| 504 | 504 | ||
| 505 | 505 | ||
| 506 | extern void printchar (); | ||
| 507 | |||
| 508 | /* Print the fastmap in human-readable form. */ | 506 | /* Print the fastmap in human-readable form. */ |
| 509 | 507 | ||
| 510 | void | 508 | void |
| @@ -519,7 +517,7 @@ print_fastmap (fastmap) | |||
| 519 | if (fastmap[i++]) | 517 | if (fastmap[i++]) |
| 520 | { | 518 | { |
| 521 | was_a_range = 0; | 519 | was_a_range = 0; |
| 522 | printchar (i - 1); | 520 | putchar (i - 1); |
| 523 | while (i < (1 << BYTEWIDTH) && fastmap[i]) | 521 | while (i < (1 << BYTEWIDTH) && fastmap[i]) |
| 524 | { | 522 | { |
| 525 | was_a_range = 1; | 523 | was_a_range = 1; |
| @@ -528,7 +526,7 @@ print_fastmap (fastmap) | |||
| 528 | if (was_a_range) | 526 | if (was_a_range) |
| 529 | { | 527 | { |
| 530 | printf ("-"); | 528 | printf ("-"); |
| 531 | printchar (i - 1); | 529 | putchar (i - 1); |
| 532 | } | 530 | } |
| 533 | } | 531 | } |
| 534 | } | 532 | } |
| @@ -571,7 +569,7 @@ print_partial_compiled_pattern (start, end) | |||
| 571 | do | 569 | do |
| 572 | { | 570 | { |
| 573 | putchar ('/'); | 571 | putchar ('/'); |
| 574 | printchar (*p++); | 572 | putchar (*p++); |
| 575 | } | 573 | } |
| 576 | while (--mcnt); | 574 | while (--mcnt); |
| 577 | break; | 575 | break; |
| @@ -618,18 +616,18 @@ print_partial_compiled_pattern (start, end) | |||
| 618 | /* Have we broken a range? */ | 616 | /* Have we broken a range? */ |
| 619 | else if (last + 1 != c && in_range) | 617 | else if (last + 1 != c && in_range) |
| 620 | { | 618 | { |
| 621 | printchar (last); | 619 | putchar (last); |
| 622 | in_range = 0; | 620 | in_range = 0; |
| 623 | } | 621 | } |
| 624 | 622 | ||
| 625 | if (! in_range) | 623 | if (! in_range) |
| 626 | printchar (c); | 624 | putchar (c); |
| 627 | 625 | ||
| 628 | last = c; | 626 | last = c; |
| 629 | } | 627 | } |
| 630 | 628 | ||
| 631 | if (in_range) | 629 | if (in_range) |
| 632 | printchar (last); | 630 | putchar (last); |
| 633 | 631 | ||
| 634 | putchar (']'); | 632 | putchar (']'); |
| 635 | 633 | ||
| @@ -814,13 +812,13 @@ print_double_string (where, string1, size1, string2, size2) | |||
| 814 | if (FIRST_STRING_P (where)) | 812 | if (FIRST_STRING_P (where)) |
| 815 | { | 813 | { |
| 816 | for (this_char = where - string1; this_char < size1; this_char++) | 814 | for (this_char = where - string1; this_char < size1; this_char++) |
| 817 | printchar (string1[this_char]); | 815 | putchar (string1[this_char]); |
| 818 | 816 | ||
| 819 | where = string2; | 817 | where = string2; |
| 820 | } | 818 | } |
| 821 | 819 | ||
| 822 | for (this_char = where - string2; this_char < size2; this_char++) | 820 | for (this_char = where - string2; this_char < size2; this_char++) |
| 823 | printchar (string2[this_char]); | 821 | putchar (string2[this_char]); |
| 824 | } | 822 | } |
| 825 | } | 823 | } |
| 826 | 824 | ||
| @@ -1562,7 +1560,7 @@ regex_compile (pattern, size, syntax, bufp) | |||
| 1562 | unsigned debug_count; | 1560 | unsigned debug_count; |
| 1563 | 1561 | ||
| 1564 | for (debug_count = 0; debug_count < size; debug_count++) | 1562 | for (debug_count = 0; debug_count < size; debug_count++) |
| 1565 | printchar (pattern[debug_count]); | 1563 | putchar (pattern[debug_count]); |
| 1566 | putchar ('\n'); | 1564 | putchar ('\n'); |
| 1567 | } | 1565 | } |
| 1568 | #endif /* DEBUG */ | 1566 | #endif /* DEBUG */ |