TheGNUGeneralPublicLicenseisoftenshippedwithGNUsoftware,and isgenerallykeptinafilecalledCOPYINGorLICENSE.Ifyoudonot haveacopyofthelicense,writetotheFreeSoftwareFoundation,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */ #define READLINE_LIBRARY
#ifdefined (__TANDEM) # include <floss.h> #endif
#include"rlconf.h"
#ifdefined (HAVE_CONFIG_H) # include "config_readline.h" #endif
#include <stdio.h> #include <sys/types.h>
#ifdefined (HAVE_UNISTD_H) # include <unistd.h> #endif
/* Non-zero means try to blink the matching open parenthesis when the
close parenthesis is inserted. */ #ifdefined (HAVE_SELECT) int rl_blink_matching_paren = 1; #else/* !HAVE_SELECT */ int rl_blink_matching_paren = 0; #endif/* !HAVE_SELECT */
staticint _paren_blink_usec = 500000;
/* Change emacs_standard_keymap to have bindings for paren matching when
ON_OR_OFF is 1, change them back to self_insert when ON_OR_OFF == 0. */ void
_rl_enable_paren_matching (on_or_off) int on_or_off;
{ if (on_or_off)
{ /* ([{ */
rl_bind_key_in_map (')', rl_insert_close, emacs_standard_keymap);
rl_bind_key_in_map (']', rl_insert_close, emacs_standard_keymap);
rl_bind_key_in_map ('}', rl_insert_close, emacs_standard_keymap);
} else
{ /* ([{ */
rl_bind_key_in_map (')', rl_insert, emacs_standard_keymap);
rl_bind_key_in_map (']', rl_insert, emacs_standard_keymap);
rl_bind_key_in_map ('}', rl_insert, emacs_standard_keymap);
}
}
int
rl_set_paren_blink_timeout (u) int u;
{ int o;
o = _paren_blink_usec; if (u > 0)
_paren_blink_usec = u; return (o);
}
int
rl_insert_close (count, invoking_key) int count, invoking_key;
{ if (rl_explicit_arg || !rl_blink_matching_paren)
_rl_insert_char (count, invoking_key); else
{ #ifdefined (HAVE_SELECT) int orig_point, match_point; struct timeval timer;
fd_set readfds;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.