aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorDaniel Colascione2012-10-07 14:31:58 -0800
committerDaniel Colascione2012-10-07 14:31:58 -0800
commit36a305a723c63fd345be65c536c52fe9765c14be (patch)
treefb89d9e103552863214c60297a65320917109357 /lib-src
parent2ab329f3b5d52a39f0a45c3d9c129f1c19560142 (diff)
parent795b1482a9e314cda32d62ac2988f573d359366e (diff)
downloademacs-36a305a723c63fd345be65c536c52fe9765c14be.tar.gz
emacs-36a305a723c63fd345be65c536c52fe9765c14be.zip
Merge from trunk
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog18
-rw-r--r--lib-src/make-docfile.c4
-rw-r--r--lib-src/makefile.w32-in2
-rw-r--r--lib-src/ntlib.c30
4 files changed, 51 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index 3f1e287db34..2a8ac9b8131 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -1,3 +1,19 @@
12012-10-01 Fabrice Popineau <fabrice.popineau@gmail.com>
2
3 * make-docfile.c (write_globals): Special-case
4 Fexit_recursive_edit and Fabort_recursive_edit as well, as
5 functions that are _Noreturn, to be consistent with
6 src/keyboard.c.
7
82012-09-30 Eli Zaretskii <eliz@gnu.org>
9
10 * ntlib.c (gettimeofday): Copy from src/w32.c. lib/gettime.c
11 needs this function.
12
132012-09-26 Juanma Barranquero <lekktu@gmail.com>
14
15 * makefile.w32-in (obj): Add profiler.o.
16
12012-09-17 Glenn Morris <rgm@gnu.org> 172012-09-17 Glenn Morris <rgm@gnu.org>
2 18
3 * ebrowse.c (version): 19 * ebrowse.c (version):
@@ -1038,7 +1054,7 @@
1038 (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes) 1054 (Asm_help, default_C_suffixes, default_C_help, Cplusplus_suffixes)
1039 (Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes) 1055 (Cplusplus_help, Cjava_suffixes, Cobol_suffixes, Cstar_suffixes)
1040 (Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help) 1056 (Erlang_suffixes, Erlang_help, Forth_suffixes, Forth_help)
1041 (Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help) 1057 (Fortran_suffixes, Fortran_help, HTML_suffixes, HTML_help)
1042 (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help) 1058 (Lisp_suffixes, Lisp_help, Lua_suffixes, Lua_help)
1043 (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help) 1059 (Makefile_filenames, Makefile_help, Objc_suffixes, Objc_help)
1044 (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters) 1060 (Pascal_suffixes, Pascal_help, Perl_suffixes, Perl_interpreters)
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c
index 2654387fb37..411b7057861 100644
--- a/lib-src/make-docfile.c
+++ b/lib-src/make-docfile.c
@@ -659,7 +659,9 @@ write_globals (void)
659 special hacks. */ 659 special hacks. */
660 if (strcmp (globals[i].name, "Fthrow") == 0 660 if (strcmp (globals[i].name, "Fthrow") == 0
661 || strcmp (globals[i].name, "Ftop_level") == 0 661 || strcmp (globals[i].name, "Ftop_level") == 0
662 || strcmp (globals[i].name, "Fkill_emacs") == 0) 662 || strcmp (globals[i].name, "Fkill_emacs") == 0
663 || strcmp (globals[i].name, "Fexit_recursive_edit") == 0
664 || strcmp (globals[i].name, "Fabort_recursive_edit") == 0)
663 fprintf (outfile, "_Noreturn "); 665 fprintf (outfile, "_Noreturn ");
664 fprintf (outfile, "EXFUN (%s, ", globals[i].name); 666 fprintf (outfile, "EXFUN (%s, ", globals[i].name);
665 if (globals[i].value == -1) 667 if (globals[i].value == -1)
diff --git a/lib-src/makefile.w32-in b/lib-src/makefile.w32-in
index 64974b88b6f..23ef71de10c 100644
--- a/lib-src/makefile.w32-in
+++ b/lib-src/makefile.w32-in
@@ -140,7 +140,7 @@ obj = dosfns.o msdos.o \
140 process.o callproc.o unexw32.o \ 140 process.o callproc.o unexw32.o \
141 region-cache.o sound.o atimer.o \ 141 region-cache.o sound.o atimer.o \
142 doprnt.o intervals.o textprop.o composite.o \ 142 doprnt.o intervals.o textprop.o composite.o \
143 gnutls.o xml.o 143 gnutls.o xml.o profiler.o
144 144
145# 145#
146# These are the lisp files that are loaded up in loadup.el 146# These are the lisp files that are loaded up in loadup.el
diff --git a/lib-src/ntlib.c b/lib-src/ntlib.c
index 2cc791fb56a..feaad1c1bb7 100644
--- a/lib-src/ntlib.c
+++ b/lib-src/ntlib.c
@@ -29,9 +29,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
29#include <sys/stat.h> 29#include <sys/stat.h>
30#include <errno.h> 30#include <errno.h>
31#include <ctype.h> 31#include <ctype.h>
32#include <sys/timeb.h>
32 33
33#include "ntlib.h" 34#include "ntlib.h"
34 35
36struct timezone
37{
38 int tz_minuteswest; /* minutes west of Greenwich */
39 int tz_dsttime; /* type of dst correction */
40};
41
35#define MAXPATHLEN _MAX_PATH 42#define MAXPATHLEN _MAX_PATH
36 43
37/* Emulate sleep...we could have done this with a define, but that 44/* Emulate sleep...we could have done this with a define, but that
@@ -202,6 +209,29 @@ getpass (const char * prompt)
202 return NULL; 209 return NULL;
203} 210}
204 211
212/* This is needed because lib/gettime.c calls gettimeofday, which MSVC
213 doesn't have. Copied from w32.c. */
214void
215gettimeofday (struct timeval *tv, struct timezone *tz)
216{
217 struct _timeb tb;
218 _ftime (&tb);
219
220 tv->tv_sec = tb.time;
221 tv->tv_usec = tb.millitm * 1000L;
222 /* Implementation note: _ftime sometimes doesn't update the dstflag
223 according to the new timezone when the system timezone is
224 changed. We could fix that by using GetSystemTime and
225 GetTimeZoneInformation, but that doesn't seem necessary, since
226 Emacs always calls gettimeofday with the 2nd argument NULL (see
227 current_emacs_time). */
228 if (tz)
229 {
230 tz->tz_minuteswest = tb.timezone; /* minutes west of Greenwich */
231 tz->tz_dsttime = tb.dstflag; /* type of dst correction */
232 }
233}
234
205int 235int
206fchown (int fd, unsigned uid, unsigned gid) 236fchown (int fd, unsigned uid, unsigned gid)
207{ 237{