diff options
| author | Karoly Lorentey | 2006-04-12 17:40:36 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2006-04-12 17:40:36 +0000 |
| commit | 4c57cca724993ab1334cc5c0b35c22b06daee0c3 (patch) | |
| tree | 009f6142b6abc0d6f3221b2098863b22ca678e73 /src | |
| parent | 21c5f634f04084467ca59d9232a83456e16a5c50 (diff) | |
| parent | 163cb72dcb641bd2e68d3b6887cfef71bb1464ae (diff) | |
| download | emacs-4c57cca724993ab1334cc5c0b35c22b06daee0c3.tar.gz emacs-4c57cca724993ab1334cc5c0b35c22b06daee0c3.zip | |
Merged from emacs@sv.gnu.org
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-207
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-208
Sync from erc--emacs--0
* emacs@sv.gnu.org/emacs--devo--0--patch-209
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-210
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-211
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-212
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-213
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-214
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-215
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-81
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-82
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-83
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-549
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 20 | ||||
| -rw-r--r-- | src/data.c | 7 | ||||
| -rw-r--r-- | src/lisp.h | 2 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 3 | ||||
| -rw-r--r-- | src/xrdb.c | 2 |
5 files changed, 32 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index d5e4d20111e..936b14089b4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,23 @@ | |||
| 1 | 2006-04-11 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * lisp.h (wrong_type_argument): Mark as NO_RETURN. | ||
| 4 | |||
| 5 | * data.c (wrong_type_argument): Try to avoid compiler warnings due | ||
| 6 | to the fact the function is now marked as NO_RETURN. | ||
| 7 | |||
| 8 | 2006-04-10 Eli Zaretskii <eliz@gnu.org> | ||
| 9 | |||
| 10 | * s/ms-w32.h (pid_t) [_MSC_VER]: New typedef. | ||
| 11 | |||
| 12 | 2006-04-10 Romain Francoise <romain@orebokech.com> | ||
| 13 | |||
| 14 | * xrdb.c (gethomedir): Use xstrdup. | ||
| 15 | |||
| 16 | 2006-04-10 Andreas Schwab <schwab@suse.de> | ||
| 17 | |||
| 18 | * xrdb.c (gethomedir): Make sure to always return a pointer that | ||
| 19 | can be passed to free. | ||
| 20 | |||
| 1 | 2006-04-09 Richard Stallman <rms@gnu.org> | 21 | 2006-04-09 Richard Stallman <rms@gnu.org> |
| 2 | 22 | ||
| 3 | * lisp.h (Fkill_emacs): Undo previous change. | 23 | * lisp.h (Fkill_emacs): Undo previous change. |
diff --git a/src/data.c b/src/data.c index d2f6ce76905..fdad80b2727 100644 --- a/src/data.c +++ b/src/data.c | |||
| @@ -126,7 +126,14 @@ wrong_type_argument (predicate, value) | |||
| 126 | tem = call1 (predicate, value); | 126 | tem = call1 (predicate, value); |
| 127 | } | 127 | } |
| 128 | while (NILP (tem)); | 128 | while (NILP (tem)); |
| 129 | /* This function is marked as NO_RETURN, gcc would warn if it has a | ||
| 130 | return statement or if falls off the function. Other compilers | ||
| 131 | warn if no return statement is present. */ | ||
| 132 | #ifndef __GNUC__ | ||
| 129 | return value; | 133 | return value; |
| 134 | #else | ||
| 135 | abort (); | ||
| 136 | #endif | ||
| 130 | } | 137 | } |
| 131 | 138 | ||
| 132 | void | 139 | void |
diff --git a/src/lisp.h b/src/lisp.h index c28c981daf9..468b699fb06 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -2246,7 +2246,7 @@ extern unsigned long cons_to_long P_ ((Lisp_Object)); | |||
| 2246 | extern void args_out_of_range P_ ((Lisp_Object, Lisp_Object)) NO_RETURN; | 2246 | extern void args_out_of_range P_ ((Lisp_Object, Lisp_Object)) NO_RETURN; |
| 2247 | extern void args_out_of_range_3 P_ ((Lisp_Object, Lisp_Object, | 2247 | extern void args_out_of_range_3 P_ ((Lisp_Object, Lisp_Object, |
| 2248 | Lisp_Object)) NO_RETURN; | 2248 | Lisp_Object)) NO_RETURN; |
| 2249 | extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object)); | 2249 | extern Lisp_Object wrong_type_argument P_ ((Lisp_Object, Lisp_Object)) NO_RETURN; |
| 2250 | extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object, | 2250 | extern void store_symval_forwarding P_ ((Lisp_Object, Lisp_Object, |
| 2251 | Lisp_Object, struct buffer *)); | 2251 | Lisp_Object, struct buffer *)); |
| 2252 | extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object)); | 2252 | extern Lisp_Object do_symval_forwarding P_ ((Lisp_Object)); |
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 5c6d1d07c20..3e5d9c865bb 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -365,6 +365,9 @@ Boston, MA 02110-1301, USA. */ | |||
| 365 | #define ftruncate _chsize | 365 | #define ftruncate _chsize |
| 366 | #define getw _getw | 366 | #define getw _getw |
| 367 | #define getpid _getpid | 367 | #define getpid _getpid |
| 368 | #ifdef _MSC_VER | ||
| 369 | typedef int pid_t; | ||
| 370 | #endif | ||
| 368 | #define isatty _isatty | 371 | #define isatty _isatty |
| 369 | #define logb _logb | 372 | #define logb _logb |
| 370 | #define _longjmp longjmp | 373 | #define _longjmp longjmp |
diff --git a/src/xrdb.c b/src/xrdb.c index 2b7888ebe84..988db614c41 100644 --- a/src/xrdb.c +++ b/src/xrdb.c | |||
| @@ -315,7 +315,7 @@ gethomedir () | |||
| 315 | } | 315 | } |
| 316 | 316 | ||
| 317 | if (ptr == NULL) | 317 | if (ptr == NULL) |
| 318 | return "/"; | 318 | return xstrdup ("/"); |
| 319 | 319 | ||
| 320 | copy = (char *) malloc (strlen (ptr) + 2); | 320 | copy = (char *) malloc (strlen (ptr) + 2); |
| 321 | strcpy (copy, ptr); | 321 | strcpy (copy, ptr); |