buf = tparam (TS_set_window, 0, 0, start, 0, stop, FRAME_WIDTH (selected_frame));
}
OUTPUT (buf);
- free (buf);
+ xfree (buf);
losecursor ();
}
\f
{
buf = tparam (TS_ins_multi_chars, 0, 0, len);
OUTPUT1 (buf);
- free (buf);
+ xfree (buf);
if (start)
write_glyphs (start, len);
return;
{
buf = tparam (TS_del_multi_chars, 0, 0, n);
OUTPUT1 (buf);
- free (buf);
+ xfree (buf);
}
else
for (i = 0; i < n; i++)
background_highlight ();
buf = tparam (multi, 0, 0, i);
OUTPUT (buf);
- free (buf);
+ xfree (buf);
}
else if (single)
{
char **address;
{
extern char *tgetstr ();
- char capval[32];
int i;
for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++)
else
fcap[1] = 'a' + i - 11;
- if (tgetstr(fcap, &capval))
+ if (tgetstr (fcap, address))
{
- (void) sprintf(fkey, "f%d", i);
+ (void) sprintf (fkey, "f%d", i);
Fdefine_key (Vfunction_key_map,
build_string (fcap),
Fmake_vector (make_number (1), intern (fkey)));
* Various mappings to try and get a better fit.
*/
{
-#define CONDITIONAL_REASSIGN(cap1, cap2, sym) \
- if (!tgetstr(cap1, &capval) && tgetstr(cap2, &capval)) \
- Fdefine_key (Vfunction_key_map, \
- build_string (cap2), \
- Fmake_vector (make_number (1), intern (sym)))
+#define CONDITIONAL_REASSIGN(cap1, cap2, sym) \
+ if (!tgetstr (cap1, address) && tgetstr (cap2, address)) \
+ Fdefine_key (Vfunction_key_map, \
+ build_string (cap2), \
+ Fmake_vector (make_number (1), intern (sym)))
/* if there's no key_next keycap, map key_npage to `next' keysym */
- CONDITIONAL_REASSIGN("%5", "kN", "next");
+ CONDITIONAL_REASSIGN ("%5", "kN", "next");
/* if there's no key_prev keycap, map key_ppage to `previous' keysym */
- CONDITIONAL_REASSIGN("%8", "kP", "previous");
+ CONDITIONAL_REASSIGN ("%8", "kP", "previous");
/* if there's no key_dc keycap, map key_ic to `insert' keysym */
- CONDITIONAL_REASSIGN("kD", "kI", "insert");
+ CONDITIONAL_REASSIGN ("kD", "kI", "insert");
#undef CONDITIONAL_REASSIGN
}
}