[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] emacs/src ChangeLog Makefile.in doc.c makefile....
From: |
Ken Raeburn |
Subject: |
[Emacs-diffs] emacs/src ChangeLog Makefile.in doc.c makefile.... |
Date: |
Wed, 26 Aug 2009 08:28:26 +0000 |
CVSROOT: /sources/emacs
Module name: emacs
Changes by: Ken Raeburn <raeburn> 09/08/26 08:28:25
Modified files:
src : ChangeLog Makefile.in doc.c makefile.w32-in
Log message:
* Makefile.in (buildobj.h): New target.
(doc.o): Depend on it.
(temacs${EXEEXT}): Don't generate buildobj.lst.
(mostlyclean): Delete buildobj.h, not buildobj.lst.
* makefile.w32-in ($(SRC)/buildobj.h): New target.
($(BLD)/doc.$(O)): Depend on it.
(make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
provided by Eli Zaretskii.)
($(TEMACS)): Don't generate buildobj.lst.
* doc.c: Include buildobj.h.
(buildobj): New static variable.
(Fsnarf_documentation): Use it, instead of opening and reading
buildobj.lst.
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/src/ChangeLog?cvsroot=emacs&r1=1.7709&r2=1.7710
http://cvs.savannah.gnu.org/viewcvs/emacs/src/Makefile.in?cvsroot=emacs&r1=1.445&r2=1.446
http://cvs.savannah.gnu.org/viewcvs/emacs/src/doc.c?cvsroot=emacs&r1=1.134&r2=1.135
http://cvs.savannah.gnu.org/viewcvs/emacs/src/makefile.w32-in?cvsroot=emacs&r1=1.77&r2=1.78
Patches:
Index: ChangeLog
===================================================================
RCS file: /sources/emacs/emacs/src/ChangeLog,v
retrieving revision 1.7709
retrieving revision 1.7710
diff -u -b -r1.7709 -r1.7710
--- ChangeLog 25 Aug 2009 10:31:38 -0000 1.7709
+++ ChangeLog 26 Aug 2009 08:28:23 -0000 1.7710
@@ -1,3 +1,19 @@
+2009-08-26 Ken Raeburn <address@hidden>
+
+ * Makefile.in (buildobj.h): New target.
+ (doc.o): Depend on it.
+ (temacs${EXEEXT}): Don't generate buildobj.lst.
+ (mostlyclean): Delete buildobj.h, not buildobj.lst.
+ * makefile.w32-in ($(SRC)/buildobj.h): New target.
+ ($(BLD)/doc.$(O)): Depend on it.
+ (make-buildobj-CMD, make-buildobj-SH): New targets. (Syntax help
+ provided by Eli Zaretskii.)
+ ($(TEMACS)): Don't generate buildobj.lst.
+ * doc.c: Include buildobj.h.
+ (buildobj): New static variable.
+ (Fsnarf_documentation): Use it, instead of opening and reading
+ buildobj.lst.
+
2009-08-25 Michael Albinus <address@hidden>
* dbusbind.c (Fdbus_call_method)
Index: Makefile.in
===================================================================
RCS file: /sources/emacs/emacs/src/Makefile.in,v
retrieving revision 1.445
retrieving revision 1.446
diff -u -b -r1.445 -r1.446
--- Makefile.in 23 Aug 2009 04:43:12 -0000 1.445
+++ Makefile.in 26 Aug 2009 08:28:25 -0000 1.446
@@ -938,8 +938,10 @@
${libsrc}make-docfile${EXEEXT}:
cd ${libsrc}; ${MAKE} ${MFLAGS} make-docfile${EXEEXT}
+buildobj.h: Makefile
+ echo "#define BUILDOBJ \"${obj} ${otherobj} " OBJECTS_MACHINE "\"" >
buildobj.h
+
temacs${EXEEXT}: $(LOCALCPP) $(STARTFILES) stamp-oldxmenu ${obj} ${otherobj}
OBJECTS_MACHINE prefix-args${EXEEXT}
- echo "${obj} ${otherobj} " OBJECTS_MACHINE > buildobj.lst
#ifdef NS_IMPL_GNUSTEP
$(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \
address@hidden@ -lgnustep-gui -lgnustep-base \
@@ -1064,7 +1066,8 @@
disptab.h indent.h $(INTERVALS_H) \
xterm.h blockinput.h atimer.h character.h msdos.h composite.h keyboard.h \
syssignal.h $(config_h)
-doc.o: doc.c $(config_h) epaths.h buffer.h keyboard.h keymap.h character.h
+doc.o: doc.c $(config_h) epaths.h buffer.h keyboard.h keymap.h character.h \
+ buildobj.h
doprnt.o: doprnt.c character.h $(config_h)
dosfns.o: buffer.h termchar.h termhooks.h frame.h blockinput.h window.h \
msdos.h dosfns.h dispextern.h charset.h coding.h atimer.h systime.h \
@@ -1284,7 +1287,7 @@
rm -f temacs${EXEEXT} prefix-args${EXEEXT} core *.core \#* *.o
libXMenu11.a liblw.a
rm -f ../etc/DOC
rm -f bootstrap-emacs${EXEEXT} emacs-${version}${EXEEXT}
- rm -f buildobj.lst
+ rm -f buildobj.h
clean: mostlyclean
rm -f emacs-*.*.*${EXEEXT} emacs${EXEEXT}
#ifdef HAVE_NS
Index: doc.c
===================================================================
RCS file: /sources/emacs/emacs/src/doc.c,v
retrieving revision 1.134
retrieving revision 1.135
diff -u -b -r1.134 -r1.135
--- doc.c 8 Jan 2009 03:15:32 -0000 1.134
+++ doc.c 26 Aug 2009 08:28:25 -0000 1.135
@@ -42,6 +42,7 @@
#include "keyboard.h"
#include "character.h"
#include "keymap.h"
+#include "buildobj.h"
#ifdef HAVE_INDEX
extern char *index P_ ((const char *, int));
@@ -552,6 +553,7 @@
}
}
+static const char buildobj[] = BUILDOBJ;
DEFUN ("Snarf-documentation", Fsnarf_documentation, Ssnarf_documentation,
1, 1, 0,
@@ -598,32 +600,9 @@
/* Vbuild_files is nil when temacs is run, and non-nil after that. */
if (NILP (Vbuild_files))
{
- size_t cp_size = 0;
- size_t to_read;
- int nr_read;
- char *cp = NULL;
- char *beg, *end;
+ const char *beg, *end;
- fd = emacs_open ("buildobj.lst", O_RDONLY, 0);
- if (fd < 0)
- report_file_error ("Opening file buildobj.lst", Qnil);
-
- filled = 0;
- for (;;)
- {
- cp_size += 1024;
- to_read = cp_size - 1 - filled;
- cp = xrealloc (cp, cp_size);
- nr_read = emacs_read (fd, &cp[filled], to_read);
- filled += nr_read;
- if (nr_read < to_read)
- break;
- }
-
- emacs_close (fd);
- cp[filled] = 0;
-
- for (beg = cp; *beg; beg = end)
+ for (beg = buildobj; *beg; beg = end)
{
int len;
@@ -639,8 +618,6 @@
if (len > 0)
Vbuild_files = Fcons (make_string (beg, len), Vbuild_files);
}
-
- xfree (cp);
}
fd = emacs_open (name, O_RDONLY, 0);
Index: makefile.w32-in
===================================================================
RCS file: /sources/emacs/emacs/src/makefile.w32-in,v
retrieving revision 1.77
retrieving revision 1.78
diff -u -b -r1.77 -r1.78
--- makefile.w32-in 11 Mar 2009 01:02:07 -0000 1.77
+++ makefile.w32-in 26 Aug 2009 08:28:25 -0000 1.78
@@ -178,10 +178,24 @@
../nt/$(BLD)/addsection.exe
$(LINK) $(LINK_OUT)$(TEMACS_TMP) $(FULL_LINK_FLAGS) $(TOBJ) $(TRES)
$(LIBS)
"../nt/$(BLD)/addsection" "$(TEMACS_TMP)" "$(TEMACS)" EMHEAP 21
- echo $(OBJ0) > $(BLD)/buildobj.lst
- echo $(OBJ1) >> $(BLD)/buildobj.lst
- echo $(WIN32OBJ) >> $(BLD)/buildobj.lst
- echo $(FONTOBJ) >> $(BLD)/buildobj.lst
+
+# These omit firstfile.${O}, but there's no documentation in there
+# anyways.
+$(SRC)/buildobj.h: make-buildobj-$(SHELLTYPE)
+make-buildobj-CMD: Makefile
+ echo #define BUILDOBJ ^"\ > $(SRC)/buildobj.h
+ echo $(OBJ0) \ >> $(SRC)/buildobj.h
+ echo $(OBJ1) \ >> $(SRC)/buildobj.h
+ echo $(WIN32OBJ) \ >> $(SRC)/buildobj.h
+ echo $(FONTOBJ) \ >> $(SRC)/buildobj.h
+ echo ^" >> $(SRC)/buildobj.h
+make-buildobj-SH: Makefile
+ echo '#define BUILDOBJ $(DQUOTE)\\' > $(SRC)/buildobj.h
+ echo $(OBJ0) '\\' >> $(SRC)/buildobj.h
+ echo $(OBJ1) '\\' >> $(SRC)/buildobj.h
+ echo $(WIN32OBJ) '\\' >> $(SRC)/buildobj.h
+ echo $(FONTOBJ) '\\' >> $(SRC)/buildobj.h
+ echo '$(DQUOTE)' >> $(SRC)/buildobj.h
bootstrap: bootstrap-emacs
@@ -580,6 +594,7 @@
$(BLD)/doc.$(O) : \
$(SRC)/doc.c \
$(CONFIG_H) \
+ $(SRC)/buildobj.h \
$(EMACS_ROOT)/nt/inc/unistd.h \
$(EMACS_ROOT)/nt/inc/sys/file.h \
$(EMACS_ROOT)/nt/inc/sys/time.h \
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] emacs/src ChangeLog Makefile.in doc.c makefile....,
Ken Raeburn <=