summaryrefslogtreecommitdiff
path: root/src/w32console.c
diff options
context:
space:
mode:
authorJuanma Barranquero <lekktu@gmail.com>2010-04-21 02:17:02 +0200
committerJuanma Barranquero <lekktu@gmail.com>2010-04-21 02:17:02 +0200
commit91eac4bb57f50a69306a28f9e2363695d2f8e146 (patch)
tree750d5554e25712ddc2bc01b90278e03951f677c6 /src/w32console.c
parent938efb776d77693c876fb32f63f4e9ca72666da2 (diff)
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_*.
Diffstat (limited to 'src/w32console.c')
-rw-r--r--src/w32console.c56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/w32console.c b/src/w32console.c
index c10f2181e7d..dcebe466e32 100644
--- a/src/w32console.c
+++ b/src/w32console.c
@@ -488,6 +488,62 @@ w32con_set_terminal_window (struct frame *f, int size)
}
/***********************************************************************
+ 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
***********************************************************************/