1/* $FreeBSD: head/contrib/libreadline/util.c 157188 2006-03-27 23:11:32Z ache $ */ |
2/* util.c -- readline utility functions */ 3 |
4/* Copyright (C) 1987-2005 Free Software Foundation, Inc. |
5 6 This file is part of the GNU Readline Library, a library for 7 reading lines of text with interactive input and history editing. 8 9 The GNU Readline Library is free software; you can redistribute it 10 and/or modify it under the terms of the GNU General Public License 11 as published by the Free Software Foundation; either version 2, or 12 (at your option) any later version. --- 27 unchanged lines hidden (view full) --- 40# include "ansi_stdlib.h" 41#endif /* HAVE_STDLIB_H */ 42 43#include <stdio.h> 44#include <ctype.h> 45 46/* System-specific feature definitions and include files. */ 47#include "rldefs.h" |
48#include "rlmbutil.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#if defined (HANDLE_MULTIBYTE) 84int 85_rl_walphabetic (wc) 86 wchar_t wc; 87{ 88 int c; 89 90 if (iswalnum (wc)) 91 return (1); 92 93 c = wc & 0177; 94 return (_rl_allow_pathname_alphabetic_chars && 95 strchr (pathname_alphabetic_chars, c) != NULL); 96} 97#endif 98 |
99/* How to abort things. */ 100int 101_rl_abort_internal () 102{ 103 rl_ding (); 104 rl_clear_message (); |
105 _rl_reset_argument (); |
106 rl_clear_pending_input (); 107 108 RL_UNSETSTATE (RL_STATE_MACRODEF); 109 while (rl_executing_macro) 110 _rl_pop_executing_macro (); 111 112 rl_last_func = (rl_command_func_t *)NULL; 113 longjmp (readline_top_level, 1); --- 243 unchanged lines hidden --- |