diff options
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rwxr-xr-x | configure | 28 | ||||
| -rw-r--r-- | configure.in | 15 | ||||
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/config.in | 11 | ||||
| -rw-r--r-- | src/editfns.c | 2 |
6 files changed, 26 insertions, 42 deletions
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * configure.in (freebsd, kfreebsd): Undo part of previous change. | ||
| 4 | (USER_FULL_NAME): Remove, not used anymore. | ||
| 5 | * configure: Regenerate. | ||
| 6 | |||
| 1 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> | 7 | 2008-07-15 Adrian Robert <Adrian.B.Robert@gmail.com> |
| 2 | 8 | ||
| 3 | Changes and additions for NeXTstep windowing system (Cocoa and | 9 | Changes and additions for NeXTstep windowing system (Cocoa and |
| @@ -2405,17 +2405,17 @@ machine='' opsys='' unported=no | |||
| 2405 | case "${canonical}" in | 2405 | case "${canonical}" in |
| 2406 | 2406 | ||
| 2407 | ## FreeBSD ports | 2407 | ## FreeBSD ports |
| 2408 | *-*-*freebsd* ) | 2408 | *-*-freebsd* ) |
| 2409 | opsys=freebsd | 2409 | opsys=freebsd |
| 2410 | case "${canonical}" in | 2410 | case "${canonical}" in |
| 2411 | alpha*-*-freebsd*) machine=alpha ;; | 2411 | alpha*-*-freebsd*) machine=alpha ;; |
| 2412 | arm*-*-freebsd*) machine=arm ;; | 2412 | arm*-*-freebsd*) machine=arm ;; |
| 2413 | ia64-*-freebsd*) machine=ia64 ;; | 2413 | ia64-*-freebsd*) machine=ia64 ;; |
| 2414 | sparc-*-freebsd*) machine=sparc ;; | 2414 | sparc-*-freebsd*) machine=sparc ;; |
| 2415 | sparc64-*-freebsd*) machine=sparc ;; | 2415 | sparc64-*-freebsd*) machine=sparc ;; |
| 2416 | powerpc-*-freebsd*) machine=macppc ;; | 2416 | powerpc-*-freebsd*) machine=macppc ;; |
| 2417 | i[3456]86-*-freebsd*) machine=intel386 ;; | 2417 | i[3456]86-*-freebsd*) machine=intel386 ;; |
| 2418 | amd64-*-freebsd*|x86_64-*-*freebsd*) machine=amdx86-64 ;; | 2418 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
| 2419 | esac | 2419 | esac |
| 2420 | ;; | 2420 | ;; |
| 2421 | 2421 | ||
| @@ -16933,7 +16933,6 @@ cat >>conftest.$ac_ext <<_ACEOF | |||
| 16933 | # endif | 16933 | # endif |
| 16934 | #endif | 16934 | #endif |
| 16935 | 16935 | ||
| 16936 | #include <limits.h> | ||
| 16937 | #include <stdlib.h> | 16936 | #include <stdlib.h> |
| 16938 | 16937 | ||
| 16939 | #ifdef HAVE_UNISTD_H | 16938 | #ifdef HAVE_UNISTD_H |
| @@ -17082,15 +17081,12 @@ main () | |||
| 17082 | isn't worth using anyway. */ | 17081 | isn't worth using anyway. */ |
| 17083 | alarm (60); | 17082 | alarm (60); |
| 17084 | 17083 | ||
| 17085 | for (;;) | 17084 | for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2) |
| 17086 | { | 17085 | continue; |
| 17087 | t = (time_t_max << 1) + 1; | 17086 | time_t_max--; |
| 17088 | if (t <= time_t_max) | 17087 | if ((time_t) -1 < 0) |
| 17089 | break; | 17088 | for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2) |
| 17090 | time_t_max = t; | 17089 | continue; |
| 17091 | } | ||
| 17092 | time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max; | ||
| 17093 | |||
| 17094 | delta = time_t_max / 997; /* a suitable prime number */ | 17090 | delta = time_t_max / 997; /* a suitable prime number */ |
| 17095 | for (i = 0; i < N_STRINGS; i++) | 17091 | for (i = 0; i < N_STRINGS; i++) |
| 17096 | { | 17092 | { |
| @@ -17105,12 +17101,10 @@ main () | |||
| 17105 | && mktime_test ((time_t) (60 * 60 * 24)))) | 17101 | && mktime_test ((time_t) (60 * 60 * 24)))) |
| 17106 | return 1; | 17102 | return 1; |
| 17107 | 17103 | ||
| 17108 | for (j = 1; ; j <<= 1) | 17104 | for (j = 1; 0 < j; j *= 2) |
| 17109 | if (! bigtime_test (j)) | 17105 | if (! bigtime_test (j)) |
| 17110 | return 1; | 17106 | return 1; |
| 17111 | else if (INT_MAX / 2 < j) | 17107 | if (! bigtime_test (j - 1)) |
| 17112 | break; | ||
| 17113 | if (! bigtime_test (INT_MAX)) | ||
| 17114 | return 1; | 17108 | return 1; |
| 17115 | } | 17109 | } |
| 17116 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); | 17110 | return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); |
diff --git a/configure.in b/configure.in index 92d617c0b30..aedf5295f69 100644 --- a/configure.in +++ b/configure.in | |||
| @@ -294,7 +294,7 @@ machine='' opsys='' unported=no | |||
| 294 | case "${canonical}" in | 294 | case "${canonical}" in |
| 295 | 295 | ||
| 296 | ## FreeBSD ports | 296 | ## FreeBSD ports |
| 297 | *-*-*freebsd* ) | 297 | *-*-freebsd* ) |
| 298 | opsys=freebsd | 298 | opsys=freebsd |
| 299 | case "${canonical}" in | 299 | case "${canonical}" in |
| 300 | alpha*-*-freebsd*) machine=alpha ;; | 300 | alpha*-*-freebsd*) machine=alpha ;; |
| @@ -304,7 +304,7 @@ case "${canonical}" in | |||
| 304 | sparc64-*-freebsd*) machine=sparc ;; | 304 | sparc64-*-freebsd*) machine=sparc ;; |
| 305 | powerpc-*-freebsd*) machine=macppc ;; | 305 | powerpc-*-freebsd*) machine=macppc ;; |
| 306 | i[3456]86-*-freebsd*) machine=intel386 ;; | 306 | i[3456]86-*-freebsd*) machine=intel386 ;; |
| 307 | amd64-*-freebsd*|x86_64-*-*freebsd*) machine=amdx86-64 ;; | 307 | amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;; |
| 308 | esac | 308 | esac |
| 309 | ;; | 309 | ;; |
| 310 | 310 | ||
| @@ -2610,17 +2610,6 @@ AH_BOTTOM([ | |||
| 2610 | #undef MAC_OS | 2610 | #undef MAC_OS |
| 2611 | #undef MAC_OSX | 2611 | #undef MAC_OSX |
| 2612 | 2612 | ||
| 2613 | /* Define USER_FULL_NAME to return a string | ||
| 2614 | that is the user's full name. | ||
| 2615 | It can assume that the variable `pw' | ||
| 2616 | points to the password file entry for this user. | ||
| 2617 | |||
| 2618 | At some sites, the pw_gecos field contains | ||
| 2619 | the user's full name. If neither this nor any other | ||
| 2620 | field contains the right thing, use pw_name, | ||
| 2621 | giving the user's login name, since that is better than nothing. */ | ||
| 2622 | #define USER_FULL_NAME pw->pw_gecos | ||
| 2623 | |||
| 2624 | /* Define AMPERSAND_FULL_NAME if you use the convention | 2613 | /* Define AMPERSAND_FULL_NAME if you use the convention |
| 2625 | that & in the full name stands for the login id. */ | 2614 | that & in the full name stands for the login id. */ |
| 2626 | /* Turned on June 1996 supposing nobody will mind it. */ | 2615 | /* Turned on June 1996 supposing nobody will mind it. */ |
diff --git a/src/ChangeLog b/src/ChangeLog index 5a71765c29b..491931820ec 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2008-07-16 Dan Nicolaescu <dann@ics.uci.edu> | ||
| 2 | |||
| 3 | * editfns.c (Fuser_full_name): Replace the only use of | ||
| 4 | USER_FULL_NAME with its value. | ||
| 5 | * config.in: Regenerate. | ||
| 6 | |||
| 1 | 2008-07-16 David Reitter <david.reitter@gmail.com> | 7 | 2008-07-16 David Reitter <david.reitter@gmail.com> |
| 2 | 8 | ||
| 3 | * Makefile.in: add ns-win, ns-carbon-compat, easy-mmode and | 9 | * Makefile.in: add ns-win, ns-carbon-compat, easy-mmode and |
diff --git a/src/config.in b/src/config.in index 714d1d44f80..94750388c24 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -1001,17 +1001,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1001 | #undef MAC_OS | 1001 | #undef MAC_OS |
| 1002 | #undef MAC_OSX | 1002 | #undef MAC_OSX |
| 1003 | 1003 | ||
| 1004 | /* Define USER_FULL_NAME to return a string | ||
| 1005 | that is the user's full name. | ||
| 1006 | It can assume that the variable `pw' | ||
| 1007 | points to the password file entry for this user. | ||
| 1008 | |||
| 1009 | At some sites, the pw_gecos field contains | ||
| 1010 | the user's full name. If neither this nor any other | ||
| 1011 | field contains the right thing, use pw_name, | ||
| 1012 | giving the user's login name, since that is better than nothing. */ | ||
| 1013 | #define USER_FULL_NAME pw->pw_gecos | ||
| 1014 | |||
| 1015 | /* Define AMPERSAND_FULL_NAME if you use the convention | 1004 | /* Define AMPERSAND_FULL_NAME if you use the convention |
| 1016 | that & in the full name stands for the login id. */ | 1005 | that & in the full name stands for the login id. */ |
| 1017 | /* Turned on June 1996 supposing nobody will mind it. */ | 1006 | /* Turned on June 1996 supposing nobody will mind it. */ |
diff --git a/src/editfns.c b/src/editfns.c index 0487ecf4707..71973cec914 100644 --- a/src/editfns.c +++ b/src/editfns.c | |||
| @@ -1370,7 +1370,7 @@ name, or nil if there is no such user. */) | |||
| 1370 | if (!pw) | 1370 | if (!pw) |
| 1371 | return Qnil; | 1371 | return Qnil; |
| 1372 | 1372 | ||
| 1373 | p = (unsigned char *) USER_FULL_NAME; | 1373 | p = (unsigned char *) pw->pw_gecos; |
| 1374 | /* Chop off everything after the first comma. */ | 1374 | /* Chop off everything after the first comma. */ |
| 1375 | q = (unsigned char *) index (p, ','); | 1375 | q = (unsigned char *) index (p, ','); |
| 1376 | full = make_string (p, q ? q - p : strlen (p)); | 1376 | full = make_string (p, q ? q - p : strlen (p)); |