diff options
| author | Paul Eggert | 2011-11-25 23:42:44 -0800 |
|---|---|---|
| committer | Paul Eggert | 2011-11-25 23:42:44 -0800 |
| commit | 5b76caa476d552e204adc3c1bf4af8e401ec5d42 (patch) | |
| tree | f1ea7b28bd616eb17f6714af16a81429800479a5 /src | |
| parent | 78adbf9c3f71e4387d4b01697b76999c883735c4 (diff) | |
| download | emacs-5b76caa476d552e204adc3c1bf4af8e401ec5d42.tar.gz emacs-5b76caa476d552e204adc3c1bf4af8e401ec5d42.zip | |
Rename locals to avoid shadowing.
* fileio.c (Finsert_file_contents):
Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing.
* process.c (wait_reading_process_output):
Rename inner 'proc' to 'p' to avoid shadowing.
Indent for consistency with usual Emacs style.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/fileio.c | 4 | ||||
| -rw-r--r-- | src/process.c | 31 |
3 files changed, 28 insertions, 16 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6d1a645c3ee..9097eab47a2 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2011-11-26 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Rename locals to avoid shadowing. | ||
| 4 | * fileio.c (Finsert_file_contents): | ||
| 5 | Rename inner 'gcpro1' to 'inner_gcpro1' to avoid shadowing. | ||
| 6 | * process.c (wait_reading_process_output): | ||
| 7 | Rename inner 'proc' to 'p' to avoid shadowing. | ||
| 8 | Indent for consistency with usual Emacs style. | ||
| 9 | |||
| 1 | 2011-11-25 Eli Zaretskii <eliz@gnu.org> | 10 | 2011-11-25 Eli Zaretskii <eliz@gnu.org> |
| 2 | 11 | ||
| 3 | * xdisp.c (redisplay_window): If cursor row is not fully visible | 12 | * xdisp.c (redisplay_window): If cursor row is not fully visible |
diff --git a/src/fileio.c b/src/fileio.c index 5f7a8ad3972..009f35d2a7f 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -3686,7 +3686,7 @@ variable `last-coding-system-used' to the coding system actually used. */) | |||
| 3686 | int this_count = SPECPDL_INDEX (); | 3686 | int this_count = SPECPDL_INDEX (); |
| 3687 | int multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters)); | 3687 | int multibyte = ! NILP (BVAR (current_buffer, enable_multibyte_characters)); |
| 3688 | Lisp_Object conversion_buffer; | 3688 | Lisp_Object conversion_buffer; |
| 3689 | struct gcpro gcpro1; | 3689 | struct gcpro inner_gcpro1; |
| 3690 | 3690 | ||
| 3691 | conversion_buffer = code_conversion_save (1, multibyte); | 3691 | conversion_buffer = code_conversion_save (1, multibyte); |
| 3692 | 3692 | ||
| @@ -3702,7 +3702,7 @@ variable `last-coding-system-used' to the coding system actually used. */) | |||
| 3702 | inserted = 0; /* Bytes put into CONVERSION_BUFFER so far. */ | 3702 | inserted = 0; /* Bytes put into CONVERSION_BUFFER so far. */ |
| 3703 | unprocessed = 0; /* Bytes not processed in previous loop. */ | 3703 | unprocessed = 0; /* Bytes not processed in previous loop. */ |
| 3704 | 3704 | ||
| 3705 | GCPRO1 (conversion_buffer); | 3705 | GCPRO1_VAR (conversion_buffer, inner_gcpro); |
| 3706 | while (how_much < total) | 3706 | while (how_much < total) |
| 3707 | { | 3707 | { |
| 3708 | /* We read one bunch by one (READ_BUF_SIZE bytes) to allow | 3708 | /* We read one bunch by one (READ_BUF_SIZE bytes) to allow |
diff --git a/src/process.c b/src/process.c index 892bd9820bf..ba3eeb81614 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4630,26 +4630,29 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd, | |||
| 4630 | the gnutls library -- 2.12.14 has been confirmed | 4630 | the gnutls library -- 2.12.14 has been confirmed |
| 4631 | to need it. See | 4631 | to need it. See |
| 4632 | http://comments.gmane.org/gmane.emacs.devel/145074 */ | 4632 | http://comments.gmane.org/gmane.emacs.devel/145074 */ |
| 4633 | struct Lisp_Process *proc; | ||
| 4634 | for (channel = 0; channel < MAXDESC; ++channel) | 4633 | for (channel = 0; channel < MAXDESC; ++channel) |
| 4635 | { | 4634 | if (! NILP (chan_process[channel])) |
| 4636 | if (! NILP (chan_process[channel]) && | 4635 | { |
| 4637 | (proc = XPROCESS (chan_process[channel])) != NULL && | 4636 | struct Lisp_Process *p = |
| 4638 | proc->gnutls_p && | 4637 | XPROCESS (chan_process[channel]); |
| 4639 | proc->infd && | 4638 | if (p && p->gnutls_p && p->infd |
| 4640 | emacs_gnutls_record_check_pending (proc->gnutls_state) > 0) | 4639 | && ((emacs_gnutls_record_check_pending |
| 4641 | { | 4640 | (p->gnutls_state)) |
| 4642 | nfds++; | 4641 | > 0)) |
| 4643 | FD_SET (proc->infd, &Available); | 4642 | { |
| 4644 | } | 4643 | nfds++; |
| 4645 | } | 4644 | FD_SET (p->infd, &Available); |
| 4645 | } | ||
| 4646 | } | ||
| 4646 | } | 4647 | } |
| 4647 | else | 4648 | else |
| 4648 | { | 4649 | { |
| 4649 | /* Check this specific channel. */ | 4650 | /* Check this specific channel. */ |
| 4650 | if (wait_proc->gnutls_p && /* Check for valid process. */ | 4651 | if (wait_proc->gnutls_p /* Check for valid process. */ |
| 4651 | /* Do we have pending data? */ | 4652 | /* Do we have pending data? */ |
| 4652 | emacs_gnutls_record_check_pending (wait_proc->gnutls_state) > 0) | 4653 | && ((emacs_gnutls_record_check_pending |
| 4654 | (wait_proc->gnutls_state)) | ||
| 4655 | > 0)) | ||
| 4653 | { | 4656 | { |
| 4654 | nfds = 1; | 4657 | nfds = 1; |
| 4655 | /* Set to Available. */ | 4658 | /* Set to Available. */ |