if (!term)
term = "dumb";
- if (tgetent (term_buffer, term) < 0)
+ if (tgetent (term_buffer, term) <= 0)
{
dumb_term = 1;
screenwidth = 79;
readline because of extra large arguments. */
if (count > 1 && count < 1024)
{
- string = (char *)alloca (1 + count);
+ string = alloca (1 + count);
for (i = 0; i < count; i++)
string[i] = c;
{
int decreaser;
- string = (char *)alloca (1024 + 1);
+ string = alloca (1024 + 1);
for (i = 0; i < 1024; i++)
string[i] = c;
int key = 0, t;
i = 0;
- string = (char *)alloca (ibuffer_len + 1);
+ string = alloca (ibuffer_len + 1);
string[i++] = c;
while ((t = rl_get_char (&key)) &&
else
{
/* Inserting a single character. */
- string = (char *)alloca (2);
+ string = alloca (2);
string[1] = '\0';
string[0] = c;
{
char *message = (char *)NULL;
- message =
- (char *)alloca (1 + (search_string ? strlen (search_string) : 0) + 30);
+ message = alloca (1 + (search_string ? strlen (search_string) : 0) + 30);
*message = '\0';
int invoking_key;
{
/* The string that the user types in to search for. */
- char *search_string = (char *)alloca (128);
+ char *search_string = alloca (128);
/* The current length of SEARCH_STRING. */
int search_string_index;
/* Allocate space for this many lines, +1 for the current input line,
and remember those lines. */
- lines = (char **)alloca ((1 + (hlen = i)) * sizeof (char *));
+ lines = alloca ((1 + (hlen = i)) * sizeof (char *));
for (i = 0; i < hlen; i++)
lines[i] = hlist[i]->line;
char *alloced_line;
/* Keep that mips alloca happy. */
- alloced_line = (char *)alloca (1 + strlen (the_line));
+ alloced_line = alloca (1 + strlen (the_line));
lines[i] = alloced_line;
strcpy (lines[i], &the_line[0]);
}
return;
}
- keys = (char *)alloca (1 + (2 * strlen (keyseq)));
+ keys = alloca (1 + (2 * strlen (keyseq)));
/* Translate the ASCII representation of KEYSEQ into an array
of characters. Stuff the characters into ARRAY, and the
rl_set_key (). Otherwise, let the older code deal with it. */
if (*string == '"')
{
- char *seq = (char *)alloca (1 + strlen (string));
+ char *seq = alloca (1 + strlen (string));
register int j, k = 0;
for (j = 1; string[j]; j++)
/* System-dependent stuff, for ``normal'' systems */
+/* If you think you need to change this file, then you are wrong. In order to
+ avoid a huge ugly mass of nested #ifdefs, you should create a new file just
+ for your system, which contains exactly those #includes and definitions that
+ your system needs, AND NOTHING MORE! Then, add that file to the appropriate
+ place in configure.in, and viola, you are done. sysdep-sunos4.h is a good
+ example of how to do this. */
#ifdef __GNUC__
#define alloca __builtin_alloca