diff options
| author | Adrian Robert | 2008-07-16 23:24:46 +0000 |
|---|---|---|
| committer | Adrian Robert | 2008-07-16 23:24:46 +0000 |
| commit | 122e9f8f29a92b6038b65a3b4f6ef31ad96e2cd5 (patch) | |
| tree | 29e83f0a25f866bd8b885a5a811360dcf0eeeb87 /src | |
| parent | cf7238adf9f3bcddb60d422c470b58605a1b8bad (diff) | |
| download | emacs-122e9f8f29a92b6038b65a3b4f6ef31ad96e2cd5.tar.gz emacs-122e9f8f29a92b6038b65a3b4f6ef31ad96e2cd5.zip | |
various small cleanups detailed in changelogs
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 9 | ||||
| -rw-r--r-- | src/Makefile.in | 12 | ||||
| -rw-r--r-- | src/frame.c | 2 | ||||
| -rw-r--r-- | src/keyboard.c | 15 | ||||
| -rw-r--r-- | src/syntax.c | 1 |
5 files changed, 16 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 6351e0168f7..a47586e08c3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,12 @@ | |||
| 1 | 2008-07-16 Adrian Robert <Adrian.B.Robert@gmail.com> | ||
| 2 | |||
| 3 | * syntax.c: Remove stdio.h include accidentally introduced in | ||
| 4 | Emacs.app commit. | ||
| 5 | * Makefile.in: Change GNUSTEP to NS_IMPL_GNUSTEP, COCOA to | ||
| 6 | NS_IMPL_COCOA. | ||
| 7 | * keyboard.c (handle_async_input, input_available_signal): Remove | ||
| 8 | BSD4_1 conditional code, introduced accidentally in Emacs.app commit. | ||
| 9 | |||
| 1 | 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca> | 10 | 2008-07-16 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 11 | ||
| 3 | * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead. | 12 | * nsterm.m (lisp_to_mod): Use parse_solitary_modifier instead. |
diff --git a/src/Makefile.in b/src/Makefile.in index 8f2c2f8805f..a715b83be28 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -113,7 +113,7 @@ SHELL=/bin/sh | |||
| 113 | #endif | 113 | #endif |
| 114 | 114 | ||
| 115 | /* Under GNUstep, putting libc on the link line causes problems. */ | 115 | /* Under GNUstep, putting libc on the link line causes problems. */ |
| 116 | #ifdef GNUSTEP | 116 | #ifdef NS_IMPL_GNUSTEP |
| 117 | #define LIB_STANDARD | 117 | #define LIB_STANDARD |
| 118 | #endif | 118 | #endif |
| 119 | 119 | ||
| @@ -234,7 +234,7 @@ STARTFILES = START_FILES | |||
| 234 | #endif /* not ORDINARY_LINK */ | 234 | #endif /* not ORDINARY_LINK */ |
| 235 | 235 | ||
| 236 | 236 | ||
| 237 | #ifdef GNUSTEP | 237 | #ifdef NS_IMPL_GNUSTEP |
| 238 | /* Pull in stuff from GNUstep-make. */ | 238 | /* Pull in stuff from GNUstep-make. */ |
| 239 | FOUNDATION_LIB=gnu | 239 | FOUNDATION_LIB=gnu |
| 240 | GUI_LIB=gnu | 240 | GUI_LIB=gnu |
| @@ -535,13 +535,13 @@ emacsappsrc = ${srcdir}/../mac/Emacs.app/ | |||
| 535 | NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \ | 535 | NS_OBJ= nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o \ |
| 536 | fontset.o fringe.o image.o | 536 | fontset.o fringe.o image.o |
| 537 | emacsapp = $(PWD)/../nextstep/build/Emacs.app/ | 537 | emacsapp = $(PWD)/../nextstep/build/Emacs.app/ |
| 538 | #ifdef GNUSTEP | 538 | #ifdef NS_IMPL_GNUSTEP |
| 539 | emacsappsrc = ${srcdir}/../nextstep/GNUstep/Emacs.base | 539 | emacsappsrc = ${srcdir}/../nextstep/GNUstep/Emacs.base |
| 540 | emacsbindir = $(emacsapp) | 540 | emacsbindir = $(emacsapp) |
| 541 | #else | 541 | #else |
| 542 | emacsappsrc = ${srcdir}/../nextstep/Cocoa/Emacs.base | 542 | emacsappsrc = ${srcdir}/../nextstep/Cocoa/Emacs.base |
| 543 | emacsbindir = $(emacsapp)/Contents/MacOS/ | 543 | emacsbindir = $(emacsapp)/Contents/MacOS/ |
| 544 | #endif /* GNUSTEP */ | 544 | #endif /* NS_IMPL_GNUSTEP */ |
| 545 | #endif /* HAVE_NS */ | 545 | #endif /* HAVE_NS */ |
| 546 | 546 | ||
| 547 | #ifdef HAVE_WINDOW_SYSTEM | 547 | #ifdef HAVE_WINDOW_SYSTEM |
| @@ -969,7 +969,7 @@ ${libsrc}make-docfile${EXEEXT}: | |||
| 969 | 969 | ||
| 970 | temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} | 970 | temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj} OBJECTS_MACHINE prefix-args${EXEEXT} |
| 971 | echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst | 971 | echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst |
| 972 | #ifdef GNUSTEP | 972 | #ifdef NS_IMPL_GNUSTEP |
| 973 | $(CC) -rdynamic YMF_PASS_LDFLAGS (${TEMACS_LDFLAGS}) -o temacs ${obj} ${otherobj} OBJECTS_MACHINE ${LIBES} | 973 | $(CC) -rdynamic YMF_PASS_LDFLAGS (${TEMACS_LDFLAGS}) -o temacs ${obj} ${otherobj} OBJECTS_MACHINE ${LIBES} |
| 974 | #else | 974 | #else |
| 975 | $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ | 975 | $(LD) YMF_PASS_LDFLAGS (${STARTFLAGS} ${TEMACS_LDFLAGS}) $(LDFLAGS) \ |
| @@ -1355,7 +1355,7 @@ mostlyclean: | |||
| 1355 | rm -f buildobj.lst | 1355 | rm -f buildobj.lst |
| 1356 | clean: mostlyclean | 1356 | clean: mostlyclean |
| 1357 | rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} | 1357 | rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT} |
| 1358 | #ifdef GNUSTEP | 1358 | #ifdef NS_IMPL_GNUSTEP |
| 1359 | rm -f *.d | 1359 | rm -f *.d |
| 1360 | #endif | 1360 | #endif |
| 1361 | /* bootstrap-clean is used to clean up just before a bootstrap. | 1361 | /* bootstrap-clean is used to clean up just before a bootstrap. |
diff --git a/src/frame.c b/src/frame.c index d297501343b..88cabc2ac80 100644 --- a/src/frame.c +++ b/src/frame.c | |||
| @@ -206,7 +206,7 @@ DEFUN ("framep", Fframep, Sframep, 1, 1, 0, | |||
| 206 | Value is t for a termcap frame (a character-only terminal), | 206 | Value is t for a termcap frame (a character-only terminal), |
| 207 | `x' for an Emacs frame that is really an X window, | 207 | `x' for an Emacs frame that is really an X window, |
| 208 | `w32' for an Emacs frame that is a window on MS-Windows display, | 208 | `w32' for an Emacs frame that is a window on MS-Windows display, |
| 209 | `mac' for an Emacs frame on a Macintosh 8/9 X-Carbon display, | 209 | `mac' for an Emacs frame on a Macintosh Carbon display, |
| 210 | `ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, | 210 | `ns' for an Emacs frame on a GNUstep or Macintosh Cocoa display, |
| 211 | `pc' for a direct-write MS-DOS frame. | 211 | `pc' for a direct-write MS-DOS frame. |
| 212 | See also `frame-live-p'. */) | 212 | See also `frame-live-p'. */) |
diff --git a/src/keyboard.c b/src/keyboard.c index 219b42c2456..716d1101aab 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -7308,10 +7308,6 @@ tty_read_avail_input (struct terminal *terminal, | |||
| 7308 | void | 7308 | void |
| 7309 | handle_async_input () | 7309 | handle_async_input () |
| 7310 | { | 7310 | { |
| 7311 | #ifdef BSD4_1 | ||
| 7312 | extern int select_alarmed; | ||
| 7313 | #endif | ||
| 7314 | |||
| 7315 | interrupt_input_pending = 0; | 7311 | interrupt_input_pending = 0; |
| 7316 | 7312 | ||
| 7317 | while (1) | 7313 | while (1) |
| @@ -7323,10 +7319,6 @@ handle_async_input () | |||
| 7323 | 0 means there was no keyboard input available. */ | 7319 | 0 means there was no keyboard input available. */ |
| 7324 | if (nread <= 0) | 7320 | if (nread <= 0) |
| 7325 | break; | 7321 | break; |
| 7326 | |||
| 7327 | #ifdef BSD4_1 | ||
| 7328 | select_alarmed = 1; /* Force the select emulator back to life */ | ||
| 7329 | #endif | ||
| 7330 | } | 7322 | } |
| 7331 | } | 7323 | } |
| 7332 | 7324 | ||
| @@ -7345,10 +7337,6 @@ input_available_signal (signo) | |||
| 7345 | signal (signo, input_available_signal); | 7337 | signal (signo, input_available_signal); |
| 7346 | #endif /* USG */ | 7338 | #endif /* USG */ |
| 7347 | 7339 | ||
| 7348 | #ifdef BSD4_1 | ||
| 7349 | sigisheld (SIGIO); | ||
| 7350 | #endif | ||
| 7351 | |||
| 7352 | #ifdef SYNC_INPUT | 7340 | #ifdef SYNC_INPUT |
| 7353 | interrupt_input_pending = 1; | 7341 | interrupt_input_pending = 1; |
| 7354 | #else | 7342 | #else |
| @@ -7362,9 +7350,6 @@ input_available_signal (signo) | |||
| 7362 | handle_async_input (); | 7350 | handle_async_input (); |
| 7363 | #endif | 7351 | #endif |
| 7364 | 7352 | ||
| 7365 | #ifdef BSD4_1 | ||
| 7366 | sigfree (); | ||
| 7367 | #endif | ||
| 7368 | errno = old_errno; | 7353 | errno = old_errno; |
| 7369 | } | 7354 | } |
| 7370 | #endif /* SIGIO */ | 7355 | #endif /* SIGIO */ |
diff --git a/src/syntax.c b/src/syntax.c index 0c547c724c9..541411b4d2f 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -1,4 +1,3 @@ | |||
| 1 | #include <stdio.h> | ||
| 2 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. | 1 | /* GNU Emacs routines to deal with syntax tables; also word and list parsing. |
| 3 | Copyright (C) 1985, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001, | 2 | Copyright (C) 1985, 1987, 1993, 1994, 1995, 1997, 1998, 1999, 2001, |
| 4 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 | 3 | 2002, 2003, 2004, 2005, 2006, 2007, 2008 |