diff options
| author | Juanma Barranquero | 2010-04-21 02:17:02 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-04-21 02:17:02 +0200 |
| commit | 91eac4bb57f50a69306a28f9e2363695d2f8e146 (patch) | |
| tree | 750d5554e25712ddc2bc01b90278e03951f677c6 /src | |
| parent | 938efb776d77693c876fb32f63f4e9ca72666da2 (diff) | |
| download | emacs-91eac4bb57f50a69306a28f9e2363695d2f8e146.tar.gz emacs-91eac4bb57f50a69306a28f9e2363695d2f8e146.zip | |
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')
| -rw-r--r-- | src/ChangeLog | 12 | ||||
| -rw-r--r-- | src/makefile.w32-in | 20 | ||||
| -rw-r--r-- | src/s/ms-w32.h | 11 | ||||
| -rw-r--r-- | src/w32console.c | 56 |
4 files changed, 79 insertions, 20 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2354160c0d9..b3e29f09185 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,15 @@ | |||
| 1 | 2010-04-21 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | Eli Zaretskii <eliz@gnu.org> | ||
| 3 | |||
| 4 | Don't depend on cm.c or termcap.c on Windows, use stubs. | ||
| 5 | * makefile.w32-in (OBJ1): Remove cm.$(O) and termcap.$(O). | ||
| 6 | ($(BLD)/cm.$(O), $(BLD)/termcap.$(O)): Remove. | ||
| 7 | * w32console.c (current_tty, cost): New vars; lifted from cm.c. | ||
| 8 | (evalcost, cmputc, cmcheckmagic, cmcostinit, cmgoto, Wcm_clear) | ||
| 9 | (sys_tputs, sys_tgetstr): New stubs. | ||
| 10 | * s/ms-w32.h (chcheckmagic, cmcostinit, cmgoto, cmputc, Wcm_clear) | ||
| 11 | (tputs, tgetstr): New; define to sys_*. | ||
| 12 | |||
| 1 | 2010-04-20 Juanma Barranquero <lekktu@gmail.com> | 13 | 2010-04-20 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 14 | ||
| 3 | * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix. | 15 | * buffer.c (syms_of_buffer) <bidi-display-reordering>: Doc fix. |
diff --git a/src/makefile.w32-in b/src/makefile.w32-in index 5eaba6374fd..241040d5eb3 100644 --- a/src/makefile.w32-in +++ b/src/makefile.w32-in | |||
| @@ -62,7 +62,6 @@ OBJ1 = $(BLD)/alloc.$(O) \ | |||
| 62 | $(BLD)/callint.$(O) \ | 62 | $(BLD)/callint.$(O) \ |
| 63 | $(BLD)/callproc.$(O) \ | 63 | $(BLD)/callproc.$(O) \ |
| 64 | $(BLD)/casefiddle.$(O) \ | 64 | $(BLD)/casefiddle.$(O) \ |
| 65 | $(BLD)/cm.$(O) \ | ||
| 66 | $(BLD)/cmds.$(O) \ | 65 | $(BLD)/cmds.$(O) \ |
| 67 | $(BLD)/data.$(O) \ | 66 | $(BLD)/data.$(O) \ |
| 68 | $(BLD)/dired.$(O) \ | 67 | $(BLD)/dired.$(O) \ |
| @@ -98,7 +97,6 @@ OBJ1 = $(BLD)/alloc.$(O) \ | |||
| 98 | $(BLD)/syntax.$(O) \ | 97 | $(BLD)/syntax.$(O) \ |
| 99 | $(BLD)/sysdep.$(O) \ | 98 | $(BLD)/sysdep.$(O) \ |
| 100 | $(BLD)/term.$(O) \ | 99 | $(BLD)/term.$(O) \ |
| 101 | $(BLD)/termcap.$(O) \ | ||
| 102 | $(BLD)/tparam.$(O) \ | 100 | $(BLD)/tparam.$(O) \ |
| 103 | $(BLD)/undo.$(O) \ | 101 | $(BLD)/undo.$(O) \ |
| 104 | $(BLD)/unexw32.$(O) \ | 102 | $(BLD)/unexw32.$(O) \ |
| @@ -494,17 +492,6 @@ $(BLD)/chartab.$(O) : \ | |||
| 494 | $(SRC)/character.h \ | 492 | $(SRC)/character.h \ |
| 495 | $(SRC)/charset.h | 493 | $(SRC)/charset.h |
| 496 | 494 | ||
| 497 | $(BLD)/cm.$(O) : \ | ||
| 498 | $(SRC)/cm.c \ | ||
| 499 | $(CONFIG_H) \ | ||
| 500 | $(SRC)/lisp.h \ | ||
| 501 | $(SRC)/cm.h \ | ||
| 502 | $(SRC)/dispextern.h \ | ||
| 503 | $(SRC)/frame.h \ | ||
| 504 | $(SRC)/termchar.h \ | ||
| 505 | $(SRC)/termhooks.h \ | ||
| 506 | $(SRC)/w32gui.h | ||
| 507 | |||
| 508 | $(BLD)/cmds.$(O) : \ | 495 | $(BLD)/cmds.$(O) : \ |
| 509 | $(SRC)/cmds.c \ | 496 | $(SRC)/cmds.c \ |
| 510 | $(CONFIG_H) \ | 497 | $(CONFIG_H) \ |
| @@ -1407,13 +1394,6 @@ $(BLD)/term.$(O) : \ | |||
| 1407 | $(SRC)/w32gui.h \ | 1394 | $(SRC)/w32gui.h \ |
| 1408 | $(SRC)/window.h | 1395 | $(SRC)/window.h |
| 1409 | 1396 | ||
| 1410 | $(BLD)/termcap.$(O) : \ | ||
| 1411 | $(SRC)/termcap.c \ | ||
| 1412 | $(CONFIG_H) \ | ||
| 1413 | $(EMACS_ROOT)/nt/inc/unistd.h \ | ||
| 1414 | $(EMACS_ROOT)/nt/inc/sys/file.h \ | ||
| 1415 | $(SRC)/lisp.h | ||
| 1416 | |||
| 1417 | $(BLD)/terminal.$(O) : \ | 1397 | $(BLD)/terminal.$(O) : \ |
| 1418 | $(SRC)/terminal.c \ | 1398 | $(SRC)/terminal.c \ |
| 1419 | $(CONFIG_H) \ | 1399 | $(CONFIG_H) \ |
diff --git a/src/s/ms-w32.h b/src/s/ms-w32.h index 3e5c65eaab5..66aae334b3f 100644 --- a/src/s/ms-w32.h +++ b/src/s/ms-w32.h | |||
| @@ -260,6 +260,17 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 260 | #define kill sys_kill | 260 | #define kill sys_kill |
| 261 | #define signal sys_signal | 261 | #define signal sys_signal |
| 262 | 262 | ||
| 263 | /* termcap.c calls that are emulated */ | ||
| 264 | #define tputs sys_tputs | ||
| 265 | #define tgetstr sys_tgetstr | ||
| 266 | |||
| 267 | /* cm.c calls that are emulated */ | ||
| 268 | #define chcheckmagic sys_chcheckmagic | ||
| 269 | #define cmcostinit sys_cmcostinit | ||
| 270 | #define cmgoto sys_cmgoto | ||
| 271 | #define cmputc sys_cmputc | ||
| 272 | #define Wcm_clear sys_Wcm_clear | ||
| 273 | |||
| 263 | #endif /* emacs */ | 274 | #endif /* emacs */ |
| 264 | 275 | ||
| 265 | /* map to MSVC names */ | 276 | /* map to MSVC names */ |
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) | |||
| 488 | } | 488 | } |
| 489 | 489 | ||
| 490 | /*********************************************************************** | 490 | /*********************************************************************** |
| 491 | stubs from termcap.c | ||
| 492 | ***********************************************************************/ | ||
| 493 | |||
| 494 | void | ||
| 495 | sys_tputs (char *str, int nlines, int (*outfun)()) | ||
| 496 | { | ||
| 497 | } | ||
| 498 | |||
| 499 | char * | ||
| 500 | sys_tgetstr (char *cap, char **area) | ||
| 501 | { | ||
| 502 | return NULL; | ||
| 503 | } | ||
| 504 | |||
| 505 | |||
| 506 | /*********************************************************************** | ||
| 507 | stubs from cm.c | ||
| 508 | ***********************************************************************/ | ||
| 509 | |||
| 510 | struct tty_display_info *current_tty = NULL; | ||
| 511 | int cost = 0; | ||
| 512 | |||
| 513 | int | ||
| 514 | evalcost (char c) | ||
| 515 | { | ||
| 516 | return c; | ||
| 517 | } | ||
| 518 | |||
| 519 | int | ||
| 520 | cmputc (char c) | ||
| 521 | { | ||
| 522 | return c; | ||
| 523 | } | ||
| 524 | |||
| 525 | void | ||
| 526 | cmcheckmagic (struct tty_display_info *tty) | ||
| 527 | { | ||
| 528 | } | ||
| 529 | |||
| 530 | void | ||
| 531 | cmcostinit (struct tty_display_info *tty) | ||
| 532 | { | ||
| 533 | } | ||
| 534 | |||
| 535 | void | ||
| 536 | cmgoto (struct tty_display_info *tty, int row, int col) | ||
| 537 | { | ||
| 538 | } | ||
| 539 | |||
| 540 | void | ||
| 541 | Wcm_clear (struct tty_display_info *tty) | ||
| 542 | { | ||
| 543 | } | ||
| 544 | |||
| 545 | |||
| 546 | /*********************************************************************** | ||
| 491 | Faces | 547 | Faces |
| 492 | ***********************************************************************/ | 548 | ***********************************************************************/ |
| 493 | 549 | ||