资源简介
readline source code, linux
代码片段和文件信息
/* bind.c -- key binding and startup file support for the readline library. */
/* Copyright (C) 1987-2006 Free Software Foundation Inc.
This file is part of the GNU Readline Library a library for
reading lines of text with interactive input and history editing.
The GNU Readline Library is free software; you can redistribute it
and/or modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2 or
(at your option) any later version.
The GNU Readline Library is distributed in the hope that it will be
useful but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
The GNU General Public License is often shipped with GNU software and
is generally kept in a file called COPYING or LICENSE. If you do not
have a copy of the license write to the Free Software Foundation
59 Temple Place Suite 330 Boston MA 02111 USA. */
#define READLINE_LIBRARY
#if defined (__TANDEM)
# include
#endif
#if defined (HAVE_CONFIG_H)
# include
#endif
#include
#include
#include
#if defined (HAVE_SYS_FILE_H)
# include
#endif /* HAVE_SYS_FILE_H */
#if defined (HAVE_UNISTD_H)
# include
#endif /* HAVE_UNISTD_H */
#if defined (HAVE_STDLIB_H)
# include
#else
# include “ansi_stdlib.h“
#endif /* HAVE_STDLIB_H */
#include
#if !defined (errno)
extern int errno;
#endif /* !errno */
#include “posixstat.h“
/* System-specific feature definitions and include files. */
#include “rldefs.h“
/* Some standard library routines. */
#include “readline.h“
#include “history.h“
#include “rlprivate.h“
#include “rlshell.h“
#include “xmalloc.h“
#if !defined (strchr) && !defined (__STDC__)
extern char *strchr () *strrchr ();
#endif /* !strchr && !__STDC__ */
/* Variables exported by this file. */
Keymap rl_binding_keymap;
static char *_rl_read_file PARAMS((char * size_t *));
static void _rl_init_file_error PARAMS((const char *));
static int _rl_read_init_file PARAMS((const char * int));
static int glean_key_from_name PARAMS((char *));
static int find_boolean_var PARAMS((const char *));
static char *_rl_get_string_variable_value PARAMS((const char *));
static int substring_member_of_array PARAMS((char * const char **));
static int currently_reading_init_file;
/* used only in this file */
static int _rl_prefer_visible_bell = 1;
/* **************************************************************** */
/* */
/* Binding keys */
/* */
/* **************************************************************** */
/* rl_add_defun (char *name rl_command_func_t *function int key)
Add NAME to the list of named functions. Make FUNCTION be the function
that gets called. If KEY is not -1 then bind it. */
int
rl_add_defun (name function
- 上一篇:偏微分方程.pdf
- 下一篇:ncurses-5.9
相关资源
- ncurses-5.9
- linux下libtinfo.so.5函数!!!!
- openldap-2.4.39源码
- SElinux:使用安全增强的Linux2--selinux
- Linux设备驱动程序第三版.pdf
- linux ramdisk.gz
- sac-101.4 for linux
- UNIX环境高级编程中文版文字版带目录
- 操作系统Linux课程总结
- RedHat 6 X64位下安装Informatica 9.5.1
- Linux Kernel Networking: Implementation and Th
- Linux+C编程一站式学习.chm
- cdlinux 无线网卡 驱动和安装教程
- linux知识点--思维导图文件xmind原件
- (自学笔记)最全嵌入式Linux学习手册
- Eclipse 搭建ARM Lniux 内核驱动开发环境
- Linux Kernel Development 3rd Edition - Robert
- 传智播客linux-sys.zh.pdf
- 大数据分析离线项目
- 马哥linux手写笔记
- SELinux书籍
- 《深入理解Linux内核》英文原版kindl
- Linux 设备驱动 kindle版英文电子书
- 基于linux在线电子词典
- linux下硬盘拓展
- linux环境下的网络爬虫
- tcpdump 源代码
- linux+QT下基于RTP协议的实时视频传输客
- LINUX下各种小程序源码
- h5py-2.10.0-cp37-cp37m-linux_armv7l.whl
评论
共有 条评论