comparison src/terminfo.c @ 442:abe6d1db359e r21-2-36

Import from CVS: tag r21-2-36
author cvs
date Mon, 13 Aug 2007 11:35:02 +0200
parents 3ecd8885ac67
children 610e4ba94a4d
comparison
equal deleted inserted replaced
441:72a7cfa4a488 442:abe6d1db359e
46 like their termcap counterparts except for tparm, which replaces 46 like their termcap counterparts except for tparm, which replaces
47 tgoto. Not only is the calling sequence different, but the string 47 tgoto. Not only is the calling sequence different, but the string
48 format is different too. 48 format is different too.
49 */ 49 */
50 50
51 #include CURSES_H_PATH 51 #include CURSES_H_FILE
52 /* Sun, in their infinite lameness, supplies (possibly) broken headers 52 /* Sun, in their infinite lameness, supplies (possibly) broken headers
53 even under Solaris. GCC feels it necessary to correct things by 53 even under Solaris. GCC feels it necessary to correct things by
54 supplying its own headers. Unfortunately, if you build GCC under 54 supplying its own headers. Unfortunately, if you build GCC under
55 one version of Solaris and then upgrade your Solaris, you may get 55 one version of Solaris and then upgrade your Solaris, you may get
56 screwed because Sun in their continuing lameness changes curses.h 56 screwed because Sun in their continuing lameness changes curses.h
57 in such a way that the "fixed" GCC headers are now broken. (GCC 57 in such a way that the "fixed" GCC headers are now broken. (GCC
58 is equally lame in that it supplies "fixed" headers for curses.h 58 is equally lame in that it supplies "fixed" headers for curses.h
59 but not term.h.) However, it seems to work to just not include 59 but not term.h.) However, it seems to work to just not include
60 term.h under Solaris, so we try that. KLUDGE! */ 60 term.h under Solaris, so we try that. KLUDGE! */
61 #if !(defined (__GNUC__) && defined (SOLARIS2)) 61 #if !(defined (__GNUC__) && defined (SOLARIS2))
62 #include TERM_H_PATH 62 #include TERM_H_FILE
63 #endif 63 #endif
64 64
65 extern void *xmalloc (int size); 65 extern void *xmalloc (int size);
66 66
67 #if 0 /* If this isn't declared somewhere, too bad */ 67 #if 0 /* If this isn't declared somewhere, too bad */
68 extern char * tparm (CONST char *string, int arg1, int arg2, int arg3, 68 extern char * tparm (const char *string, int arg1, int arg2, int arg3,
69 int arg4, int arg5, int arg6, int arg7, int arg8, 69 int arg4, int arg5, int arg6, int arg7, int arg8,
70 int arg9); 70 int arg9);
71 #endif 71 #endif
72 /* XEmacs: renamed this function because just tparam() conflicts with 72 /* XEmacs: renamed this function because just tparam() conflicts with
73 ncurses (We don't use this function anyway!) */ 73 ncurses (We don't use this function anyway!) */
74 char * 74 char *
75 emacs_tparam (CONST char *string, char *outstring, int len, int arg1, 75 emacs_tparam (const char *string, char *outstring, int len, int arg1,
76 int arg2, int arg3, int arg4, int arg5, int arg6, int arg7, 76 int arg2, int arg3, int arg4, int arg5, int arg6, int arg7,
77 int arg8, int arg9) 77 int arg8, int arg9)
78 { 78 {
79 char *temp; 79 char *temp;
80 80