[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r99959: Don't depend on cm.c or termc
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r99959: Don't depend on cm.c or termcap.c on Windows, use stubs. |
Date: |
Wed, 21 Apr 2010 02:17:02 +0200 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 99959
author: Juanma Barranquero <address@hidden>, Eli Zaretskii <address@hidden>
committer: Juanma Barranquero <address@hidden>
branch nick: trunk
timestamp: Wed 2010-04-21 02:17:02 +0200
message:
Don't depend on cm.c or termcap.c on Windows, use stubs.
* makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
* w32console.c (current_tty, cost): New vars; lifted from cm.c.
(evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
(sys_tputs, sys_tgetstr): New stubs.
* s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
(tputs, tgetstr): New; define to sys_*.
modified:
src/ChangeLog
src/makefile.w32-in
src/s/ms-w32.h
src/w32console.c
=== modified file 'src/ChangeLog'
--- a/src/ChangeLog 2010-04-20 23:05:30 +0000
+++ b/src/ChangeLog 2010-04-21 00:17:02 +0000
@@ -1,3 +1,15 @@
+2010-04-21 Juanma Barranquero <address@hidden>
+ Eli Zaretskii <address@hidden>
+
+ Don't depend on cm.c or termcap.c on Windows, use stubs.
+ * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O).
+ ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove.
+ * w32console.c (current_tty, cost): New vars; lifted from cm.c.
+ (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear)
+ (sys_tputs, sys_tgetstr): New stubs.
+ * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear)
+ (tputs, tgetstr): New; define to sys_*.
+
2010-04-20 Juanma Barranquero <address@hidden>
* buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix.
=== modified file 'src/makefile.w32-in'
--- a/src/makefile.w32-in 2010-03-30 12:15:45 +0000
+++ b/src/makefile.w32-in 2010-04-21 00:17:02 +0000
@@ -62,7 +62,6 @@
$(BLD)/callint.$(O) \
$(BLD)/callproc.$(O) \
$(BLD)/casefiddle.$(O) \
- $(BLD)/cm.$(O) \
$(BLD)/cmds.$(O) \
$(BLD)/data.$(O) \
$(BLD)/dired.$(O) \
@@ -98,7 +97,6 @@
$(BLD)/syntax.$(O) \
$(BLD)/sysdep.$(O) \
$(BLD)/term.$(O) \
- $(BLD)/termcap.$(O) \
$(BLD)/tparam.$(O) \
$(BLD)/undo.$(O) \
$(BLD)/unexw32.$(O) \
@@ -494,17 +492,6 @@
$(SRC)/character.h \
$(SRC)/charset.h
-$(BLD)/cm.$(O) : \
- $(SRC)/cm.c \
- $(CONFIG_H) \
- $(SRC)/lisp.h \
- $(SRC)/cm.h \
- $(SRC)/dispextern.h \
- $(SRC)/frame.h \
- $(SRC)/termchar.h \
- $(SRC)/termhooks.h \
- $(SRC)/w32gui.h
-
$(BLD)/cmds.$(O) : \
$(SRC)/cmds.c \
$(CONFIG_H) \
@@ -1407,13 +1394,6 @@
$(SRC)/w32gui.h \
$(SRC)/window.h
-$(BLD)/termcap.$(O) : \
- $(SRC)/termcap.c \
- $(CONFIG_H) \
- $(EMACS_ROOT)/nt/inc/unistd.h \
- $(EMACS_ROOT)/nt/inc/sys/file.h \
- $(SRC)/lisp.h
-
$(BLD)/terminal.$(O) : \
$(SRC)/terminal.c \
$(CONFIG_H) \
=== modified file 'src/s/ms-w32.h'
--- a/src/s/ms-w32.h 2010-01-13 08:35:10 +0000
+++ b/src/s/ms-w32.h 2010-04-21 00:17:02 +0000
@@ -260,6 +260,17 @@
#define kill sys_kill
#define signal sys_signal
+/* termcap.c calls that are emulated */
+#define tputs sys_tputs
+#define tgetstr sys_tgetstr
+
+/* cm.c calls that are emulated */
+#define chcheckmagic sys_chcheckmagic
+#define cmcostinit sys_cmcostinit
+#define cmgoto sys_cmgoto
+#define cmputc sys_cmputc
+#define Wcm_clear sys_Wcm_clear
+
#endif /* emacs */
/* map to MSVC names */
=== modified file 'src/w32console.c'
--- a/src/w32console.c 2010-01-13 08:35:10 +0000
+++ b/src/w32console.c 2010-04-21 00:17:02 +0000
@@ -488,6 +488,62 @@
}
/***********************************************************************
+ stubs from termcap.c
+ ***********************************************************************/
+
+void
+sys_tputs (char *str, int nlines, int (*outfun)())
+{
+}
+
+char *
+sys_tgetstr (char *cap, char **area)
+{
+ return NULL;
+}
+
+
+/***********************************************************************
+ stubs from cm.c
+ ***********************************************************************/
+
+struct tty_display_info *current_tty = NULL;
+int cost = 0;
+
+int
+evalcost (char c)
+{
+ return c;
+}
+
+int
+cmputc (char c)
+{
+ return c;
+}
+
+void
+cmcheckmagic (struct tty_display_info *tty)
+{
+}
+
+void
+cmcostinit (struct tty_display_info *tty)
+{
+}
+
+void
+cmgoto (struct tty_display_info *tty, int row, int col)
+{
+}
+
+void
+Wcm_clear (struct tty_display_info *tty)
+{
+}
+
+
+/***********************************************************************
Faces
***********************************************************************/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r99959: Don't depend on cm.c or termcap.c on Windows, use stubs.,
Juanma Barranquero <=