diff options
| author | Dan Nicolaescu | 2010-07-26 20:59:42 -0700 |
|---|---|---|
| committer | Dan Nicolaescu | 2010-07-26 20:59:42 -0700 |
| commit | fdb183d636da4d6a0bda4ee65a7f1480a087ccc5 (patch) | |
| tree | d1c9f6a1f54ccda057447cd217ac71758c402efb /src | |
| parent | eec47d6ba48cb788d690b7ffea5b9a20613306e6 (diff) | |
| download | emacs-fdb183d636da4d6a0bda4ee65a7f1480a087ccc5.tar.gz emacs-fdb183d636da4d6a0bda4ee65a7f1480a087ccc5.zip | |
* src/process.c: Move definitions earlier to minimize #ifdefs.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 78 | ||||
| -rw-r--r-- | src/process.c | 42 |
2 files changed, 97 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index bdc73b13ebb..c293e06c2d0 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,6 +1,84 @@ | |||
| 1 | 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu> | 1 | 2010-07-27 Dan Nicolaescu <dann@ics.uci.edu> |
| 2 | 2 | ||
| 3 | * process.c: Move definitions earlier to minimize #ifdefs. | ||
| 4 | |||
| 5 | * xterm.h (x_get_customization_string, x_load_resources) | ||
| 6 | (x_get_resource, x_text_icon, x_text_icon, x_check_errors) | ||
| 7 | (x_check_errors, x_property_data_to_lisp, defined_color) | ||
| 8 | (xic_set_xfontset, x_defined_color): Use const. | ||
| 9 | |||
| 10 | * xterm.c (xlwmenu_window_p, xlwmenu_redisplay): Remove declarations. | ||
| 11 | (x_text_icon, x_check_errors, x_connection_closed): Use const. | ||
| 12 | |||
| 13 | * xselect.c (selection_data_to_lisp_data) | ||
| 14 | (x_property_data_to_lisp): | ||
| 15 | * xrdb.c (x_get_string_resource, file_p) | ||
| 16 | (x_get_customization_string, magic_file_p, search_magic_path) | ||
| 17 | (get_system_app, get_user_app, x_load_resources, x_get_resource) | ||
| 18 | (x_get_string_resource): Use const. | ||
| 19 | |||
| 20 | * xfns.c: Include xlwmenu.h when USE_LUCID. | ||
| 21 | (x_defined_color, xic_set_xfontset): Use const. | ||
| 22 | (Fx_hide_tip): Remove local extern declaration. | ||
| 23 | |||
| 24 | * xfaces.c (Qmouse_face): Remove declaration. | ||
| 25 | (face_color_gray_p, tty_defined_color, defined_color) | ||
| 26 | (face_color_gray_p, face_color_supported_p). Add const. | ||
| 27 | |||
| 28 | * xdisp.c (do_mouse_tracking): Remove declaration. | ||
| 29 | (add_to_log): Use const. | ||
| 30 | |||
| 31 | * minibuf.c (Qmouse_face): Remove declaration. | ||
| 32 | |||
| 33 | * msdos.c (IT_note_mouse_highlight): Remove local extern declaration. | ||
| 34 | |||
| 35 | * keyboard.h (do_mouse_tracking): Add declaration. | ||
| 36 | |||
| 37 | * image.c (QCwidth, QCheight, QCforeground, QCbackground, QCfile) | ||
| 38 | (QCdata, QCtype, Qcenter): Remove declarations. | ||
| 39 | |||
| 40 | * frame.c (x_get_resource_string, x_get_string_resource) | ||
| 41 | (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg) | ||
| 42 | (x_default_parameter): Use const. | ||
| 43 | |||
| 44 | * font.c (Qnormal, QCtype, QCfamily, QCweight, QCslant, QCwidth) | ||
| 45 | (QCheight, QCsize, QCname): Remove declarations. | ||
| 46 | |||
| 47 | * emacs.c (main): Remove local extern declaration. | ||
| 48 | |||
| 49 | * editfns.c (region_limit, syms_of_editfns): Remove local extern | ||
| 50 | declarations. | ||
| 51 | |||
| 52 | * dispnew.c: Remove duplicate #include <unistd.h>. | ||
| 53 | (update_window, update_frame_1, init_display): Remove local extern | ||
| 54 | declarations. | ||
| 55 | |||
| 56 | * dispextern.h (add_to_log): Remove declaration. | ||
| 57 | (x_get_arg, x_frame_get_arg, x_frame_get_and_record_arg) | ||
| 58 | (x_frame_get_and_record_arg, x_default_parameter): Add const. | ||
| 59 | |||
| 60 | * dired.c (scmp): Add const. | ||
| 61 | (directory_files_internal): Remove local extern declaration. | ||
| 62 | |||
| 63 | * data.c (Finteractive_form): Use const. | ||
| 64 | |||
| 65 | * composite.c (syms_of_composite): Remove local extern declarations. | ||
| 66 | |||
| 67 | * charset.c (add_to_log): Remove declaration. | ||
| 68 | |||
| 69 | * character.c (strwidth, parse_str_to_multibyte): Add const. | ||
| 70 | |||
| 71 | * character.h (strwidth, parse_str_to_multibyte): Likewise. | ||
| 72 | |||
| 73 | * buffer.c (Fset_buffer_multibyte): Remove local extern declaration. | ||
| 74 | |||
| 3 | * lisp.h (Fkill_emacs): Mark as NO_RETURN. | 75 | * lisp.h (Fkill_emacs): Mark as NO_RETURN. |
| 76 | (Lisp_Subr): Make doc and intspec constant. | ||
| 77 | (QCsize, Qspace, Qcenter, QCalign_to, QCdata, QCfile, QCtype) | ||
| 78 | (Qlocal, Qapply, Qnormal, QCfamily, QCweight, QCslant, QCwidth) | ||
| 79 | (QCheight, QCsize, QCname, QCwidth, QCforeground) | ||
| 80 | (QCbackground, add_to_log, stack_base, Vmark_even_if_inactive) | ||
| 81 | (display_arg): Add declarations. | ||
| 4 | 82 | ||
| 5 | 2010-07-27 Christoph Scholtes <cschol2112@gmail.com> | 83 | 2010-07-27 Christoph Scholtes <cschol2112@gmail.com> |
| 6 | 84 | ||
diff --git a/src/process.c b/src/process.c index 219098905cf..6597da4b22b 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -121,6 +121,25 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 121 | #include "xgselect.h" | 121 | #include "xgselect.h" |
| 122 | #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ | 122 | #endif /* defined (USE_GTK) || defined (HAVE_GCONF) */ |
| 123 | 123 | ||
| 124 | extern int timers_run; | ||
| 125 | |||
| 126 | Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; | ||
| 127 | Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcstime; | ||
| 128 | Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; | ||
| 129 | Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtime, Qctime; | ||
| 130 | Lisp_Object QCname, QCtype; | ||
| 131 | |||
| 132 | /* Non-zero if keyboard input is on hold, zero otherwise. */ | ||
| 133 | |||
| 134 | static int kbd_is_on_hold; | ||
| 135 | |||
| 136 | /* Nonzero means delete a process right away if it exits. */ | ||
| 137 | static int delete_exited_processes; | ||
| 138 | |||
| 139 | /* Nonzero means don't run process sentinels. This is used | ||
| 140 | when exiting. */ | ||
| 141 | int inhibit_sentinels; | ||
| 142 | |||
| 124 | #ifdef subprocesses | 143 | #ifdef subprocesses |
| 125 | 144 | ||
| 126 | Lisp_Object Qprocessp; | 145 | Lisp_Object Qprocessp; |
| @@ -287,29 +306,6 @@ static void create_pty (Lisp_Object); | |||
| 287 | static Lisp_Object get_process (register Lisp_Object name); | 306 | static Lisp_Object get_process (register Lisp_Object name); |
| 288 | static void exec_sentinel (Lisp_Object proc, Lisp_Object reason); | 307 | static void exec_sentinel (Lisp_Object proc, Lisp_Object reason); |
| 289 | 308 | ||
| 290 | #endif /* subprocesses */ | ||
| 291 | |||
| 292 | extern int timers_run; | ||
| 293 | |||
| 294 | Lisp_Object Qeuid, Qegid, Qcomm, Qstate, Qppid, Qpgrp, Qsess, Qttname, Qtpgid; | ||
| 295 | Lisp_Object Qminflt, Qmajflt, Qcminflt, Qcmajflt, Qutime, Qstime, Qcstime; | ||
| 296 | Lisp_Object Qcutime, Qpri, Qnice, Qthcount, Qstart, Qvsize, Qrss, Qargs; | ||
| 297 | Lisp_Object Quser, Qgroup, Qetime, Qpcpu, Qpmem, Qtime, Qctime; | ||
| 298 | Lisp_Object QCname, QCtype; | ||
| 299 | |||
| 300 | /* Non-zero if keyboard input is on hold, zero otherwise. */ | ||
| 301 | |||
| 302 | static int kbd_is_on_hold; | ||
| 303 | |||
| 304 | /* Nonzero means delete a process right away if it exits. */ | ||
| 305 | static int delete_exited_processes; | ||
| 306 | |||
| 307 | /* Nonzero means don't run process sentinels. This is used | ||
| 308 | when exiting. */ | ||
| 309 | int inhibit_sentinels; | ||
| 310 | |||
| 311 | #ifdef subprocesses | ||
| 312 | |||
| 313 | /* Mask of bits indicating the descriptors that we wait for input on. */ | 309 | /* Mask of bits indicating the descriptors that we wait for input on. */ |
| 314 | 310 | ||
| 315 | static SELECT_TYPE input_wait_mask; | 311 | static SELECT_TYPE input_wait_mask; |