Deleted Added
sdiff udiff text old ( 136759 ) new ( 157188 )
full compact
1/* $FreeBSD: head/contrib/libreadline/util.c 136759 2004-10-21 20:10:14Z peter $ */
2
3/* util.c -- readline utility functions */
4
5/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc.
6
7 This file is part of the GNU Readline Library, a library for
8 reading lines of text with interactive input and history editing.
9
10 The GNU Readline Library is free software; you can redistribute it
11 and/or modify it under the terms of the GNU General Public License
12 as published by the Free Software Foundation; either version 2, or
13 (at your option) any later version.

--- 27 unchanged lines hidden (view full) ---

41# include "ansi_stdlib.h"
42#endif /* HAVE_STDLIB_H */
43
44#include <stdio.h>
45#include <ctype.h>
46
47/* System-specific feature definitions and include files. */
48#include "rldefs.h"
49
50#if defined (TIOCSTAT_IN_SYS_IOCTL)
51# include <sys/ioctl.h>
52#endif /* TIOCSTAT_IN_SYS_IOCTL */
53
54/* Some standard library routines. */
55#include "readline.h"
56

--- 18 unchanged lines hidden (view full) ---

75{
76 if (ALPHABETIC (c))
77 return (1);
78
79 return (_rl_allow_pathname_alphabetic_chars &&
80 strchr (pathname_alphabetic_chars, c) != NULL);
81}
82
83/* How to abort things. */
84int
85_rl_abort_internal ()
86{
87 rl_ding ();
88 rl_clear_message ();
89 _rl_init_argument ();
90 rl_clear_pending_input ();
91
92 RL_UNSETSTATE (RL_STATE_MACRODEF);
93 while (rl_executing_macro)
94 _rl_pop_executing_macro ();
95
96 rl_last_func = (rl_command_func_t *)NULL;
97 longjmp (readline_top_level, 1);

--- 243 unchanged lines hidden ---