util.c (136759) | util.c (157188) |
---|---|
1/* $FreeBSD: head/contrib/libreadline/util.c 136759 2004-10-21 20:10:14Z peter $ */ 2 | 1/* $FreeBSD: head/contrib/libreadline/util.c 157188 2006-03-27 23:11:32Z ache $ */ |
3/* util.c -- readline utility functions */ 4 | 2/* util.c -- readline utility functions */ 3 |
5/* Copyright (C) 1987, 1989, 1992 Free Software Foundation, Inc. | 4/* Copyright (C) 1987-2005 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" | 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 | 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 |
|
83/* How to abort things. */ 84int 85_rl_abort_internal () 86{ 87 rl_ding (); 88 rl_clear_message (); | 99/* How to abort things. */ 100int 101_rl_abort_internal () 102{ 103 rl_ding (); 104 rl_clear_message (); |
89 _rl_init_argument (); | 105 _rl_reset_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 --- | 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 --- |