aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2011-03-11 11:41:56 +0200
committerEli Zaretskii2011-03-11 11:41:56 +0200
commit7ef4b50c04d80cbc2b247f997e9133fbce70be05 (patch)
treef61246eb91390dec44320f4a9621b906f42b3cbf
parent4f1f90cd9dac7134d85abe6e732afe1a6a9257f7 (diff)
downloademacs-7ef4b50c04d80cbc2b247f997e9133fbce70be05.tar.gz
emacs-7ef4b50c04d80cbc2b247f997e9133fbce70be05.zip
Fix MS-Windows build broken by 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
src/term.c (encode_terminal_code): Now external again, used by w32console.c and msdos.c. src/termhooks.h (encode_terminal_code): Declare prototype. src/msdos.c (encode_terminal_code): Don't declare prototype. src/makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
-rw-r--r--src/ChangeLog12
-rw-r--r--src/makefile.w32-in2
-rw-r--r--src/msdos.c1
-rw-r--r--src/term.c2
-rw-r--r--src/termhooks.h3
5 files changed, 19 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 3a6b09dfb1f..ebbef39c29d 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,15 @@
12011-03-11 Eli Zaretskii <eliz@gnu.org>
2
3 * termhooks.h (encode_terminal_code): Declare prototype.
4
5 * msdos.c (encode_terminal_code): Don't declare prototype.
6
7 * term.c (encode_terminal_code): Now external again, used by
8 w32console.c and msdos.c.
9
10 * makefile.w32-in ($(BLD)/term.$(O), ($(BLD)/tparam.$(O)): Depend
11 on $(SRC)/tparam.h, see 2011-03-11T07:24:21Z!eggert@cs.ucla.edu.
12
12011-03-11 Paul Eggert <eggert@cs.ucla.edu> 132011-03-11 Paul Eggert <eggert@cs.ucla.edu>
2 14
3 Fix some minor problems found by GCC 4.5.2's static checks. 15 Fix some minor problems found by GCC 4.5.2's static checks.
diff --git a/src/makefile.w32-in b/src/makefile.w32-in
index 7a702fd45bf..81f758f1b5f 100644
--- a/src/makefile.w32-in
+++ b/src/makefile.w32-in
@@ -1466,6 +1466,7 @@ $(BLD)/term.$(O) : \
1466 $(SRC)/termchar.h \ 1466 $(SRC)/termchar.h \
1467 $(SRC)/termhooks.h \ 1467 $(SRC)/termhooks.h \
1468 $(SRC)/termopts.h \ 1468 $(SRC)/termopts.h \
1469 $(SRC)/tparam.h \
1469 $(SRC)/w32gui.h \ 1470 $(SRC)/w32gui.h \
1470 $(SRC)/window.h 1471 $(SRC)/window.h
1471 1472
@@ -1498,6 +1499,7 @@ $(BLD)/textprop.$(O) : \
1498 1499
1499$(BLD)/tparam.$(O) : \ 1500$(BLD)/tparam.$(O) : \
1500 $(SRC)/tparam.c \ 1501 $(SRC)/tparam.c \
1502 $(SRC)/tparam.h \
1501 $(CONFIG_H) \ 1503 $(CONFIG_H) \
1502 $(LISP_H) 1504 $(LISP_H)
1503 1505
diff --git a/src/msdos.c b/src/msdos.c
index 261a09ac859..5d50749cb7e 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -844,6 +844,7 @@ IT_set_face (int face)
844 844
845extern unsigned char *encode_terminal_code (struct glyph *, int, 845extern unsigned char *encode_terminal_code (struct glyph *, int,
846 struct coding_system *); 846 struct coding_system *);
847
847static void 848static void
848IT_write_glyphs (struct frame *f, struct glyph *str, int str_len) 849IT_write_glyphs (struct frame *f, struct glyph *str, int str_len)
849{ 850{
diff --git a/src/term.c b/src/term.c
index e78e2e68814..e84bbe125f8 100644
--- a/src/term.c
+++ b/src/term.c
@@ -501,7 +501,7 @@ static int encode_terminal_dst_size;
501 Set CODING->produced to the byte-length of the resulting byte 501 Set CODING->produced to the byte-length of the resulting byte
502 sequence, and return a pointer to that byte sequence. */ 502 sequence, and return a pointer to that byte sequence. */
503 503
504static unsigned char * 504unsigned char *
505encode_terminal_code (struct glyph *src, int src_len, struct coding_system *coding) 505encode_terminal_code (struct glyph *src, int src_len, struct coding_system *coding)
506{ 506{
507 struct glyph *src_end = src + src_len; 507 struct glyph *src_end = src + src_len;
diff --git a/src/termhooks.h b/src/termhooks.h
index b147f6ed0a1..0ccd2dac9e1 100644
--- a/src/termhooks.h
+++ b/src/termhooks.h
@@ -654,6 +654,9 @@ extern void delete_terminal (struct terminal *);
654/* The initial terminal device, created by initial_term_init. */ 654/* The initial terminal device, created by initial_term_init. */
655extern struct terminal *initial_terminal; 655extern struct terminal *initial_terminal;
656 656
657extern unsigned char *encode_terminal_code (struct glyph *, int,
658 struct coding_system *);
659
657#ifdef HAVE_GPM 660#ifdef HAVE_GPM
658extern void close_gpm (int gpm_fd); 661extern void close_gpm (int gpm_fd);
659#endif 662#endif