diff options
| author | Jim Blandy | 1993-03-11 07:17:54 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-11 07:17:54 +0000 |
| commit | caa3156810b77c70a4d226567a191b30cf398f4d (patch) | |
| tree | e9ced12e9223eaaf678becbe9e6cfc7ba856428d /src | |
| parent | 9e70858b73006fff0b7daa82184dcc89b896691a (diff) | |
| download | emacs-caa3156810b77c70a4d226567a191b30cf398f4d.tar.gz emacs-caa3156810b77c70a4d226567a191b30cf398f4d.zip | |
* textprop.c (Fadd_text_properties): Initialize the modified flag.
Use a "for (;;)" loop at the end of the function, to indicate that
all exiting is taken care of inside the loop.
(Fremove_text_properties): Same.
Diffstat (limited to 'src')
| -rw-r--r-- | src/textprop.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/textprop.c b/src/textprop.c index 871bd8875a7..06ae670c47f 100644 --- a/src/textprop.c +++ b/src/textprop.c | |||
| @@ -610,7 +610,7 @@ Return t if any property value actually changed, nil otherwise.") | |||
| 610 | Lisp_Object start, end, properties, object; | 610 | Lisp_Object start, end, properties, object; |
| 611 | { | 611 | { |
| 612 | register INTERVAL i, unchanged; | 612 | register INTERVAL i, unchanged; |
| 613 | register int s, len, modified; | 613 | register int s, len, modified = 0; |
| 614 | 614 | ||
| 615 | properties = validate_plist (properties); | 615 | properties = validate_plist (properties); |
| 616 | if (NILP (properties)) | 616 | if (NILP (properties)) |
| @@ -660,7 +660,7 @@ Return t if any property value actually changed, nil otherwise.") | |||
| 660 | } | 660 | } |
| 661 | 661 | ||
| 662 | /* We are at the beginning of an interval, with len to scan */ | 662 | /* We are at the beginning of an interval, with len to scan */ |
| 663 | while (len > 0) | 663 | for (;;) |
| 664 | { | 664 | { |
| 665 | if (i == 0) | 665 | if (i == 0) |
| 666 | abort (); | 666 | abort (); |
| @@ -800,7 +800,7 @@ Return t if any property was actually removed, nil otherwise.") | |||
| 800 | Lisp_Object start, end, props, object; | 800 | Lisp_Object start, end, props, object; |
| 801 | { | 801 | { |
| 802 | register INTERVAL i, unchanged; | 802 | register INTERVAL i, unchanged; |
| 803 | register int s, len, modified; | 803 | register int s, len, modified = 0; |
| 804 | 804 | ||
| 805 | if (NILP (object)) | 805 | if (NILP (object)) |
| 806 | XSET (object, Lisp_Buffer, current_buffer); | 806 | XSET (object, Lisp_Buffer, current_buffer); |
| @@ -846,7 +846,7 @@ Return t if any property was actually removed, nil otherwise.") | |||
| 846 | } | 846 | } |
| 847 | 847 | ||
| 848 | /* We are at the beginning of an interval, with len to scan */ | 848 | /* We are at the beginning of an interval, with len to scan */ |
| 849 | while (len > 0) | 849 | for (;;) |
| 850 | { | 850 | { |
| 851 | if (i == 0) | 851 | if (i == 0) |
| 852 | abort (); | 852 | abort (); |