comparison src/terminfo.c @ 398:74fd4e045ea6 r21-2-29

Import from CVS: tag r21-2-29
author cvs
date Mon, 13 Aug 2007 11:13:30 +0200
parents 538048ae2ab8
children b8cc9ab3f761
comparison
equal deleted inserted replaced
397:f4aeb21a5bad 398:74fd4e045ea6
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
81 temp = (char *) tparm (string, arg1, arg2, arg3, arg4, arg5, arg6, arg7, 81 temp = (char *) tparm (string, arg1, arg2, arg3, arg4, arg5, arg6, arg7,
82 arg8, arg9); 82 arg8, arg9);
83 if (outstring == 0) 83 if (outstring == 0)
84 outstring = ((char *) (xmalloc ((strlen (temp)) + 1))); 84 outstring = (char *) xmalloc (strlen (temp) + 1);
85 strcpy (outstring, temp); 85 strcpy (outstring, temp);
86 return outstring; 86 return outstring;
87 } 87 }
88 88
89 #endif /* not HAVE_TERMIOS */ 89 #endif /* not HAVE_TERMIOS */