/* rldefs.h -- an attempt to isolate some of the system-specific defines forreadline.Thisshouldbeincludedafteranyfilesthatdefine
system-specific constants like _POSIX_VERSION or USG. */
/* Copyright (C) 1987-2005 Free Software Foundation, Inc.
TheGNUGeneralPublicLicenseisoftenshippedwithGNUsoftware,and isgenerallykeptinafilecalledCOPYINGorLICENSE.Ifyoudonot haveacopyofthelicense,writetotheFreeSoftwareFoundation,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA. */
#if !defined (_RLDEFS_H_) #define _RLDEFS_H_
#ifdefined (HAVE_CONFIG_H) # include "config_readline.h" #endif
/* Posix macro to check file in statbuf for directory-ness.
This requires that <sys/stat.h> be included before this test. */ #ifdefined (S_IFDIR) && !defined (S_ISDIR) # define S_ISDIR(m) (((m)&S_IFMT) == S_IFDIR) #endif
/* Decide which flavor of the header file describing the C library
string functions to include and include it. */
#ifdefined (HAVE_STRING_H) # include <string.h> #else/* !HAVE_STRING_H */ # include <strings.h> #endif/* !HAVE_STRING_H */
/* If you cast map[key].function to type (Keymap) on a Cray, thecompilertakesthevalueofmap[key].functionand dividesitby4toconvertbetweenpointertypes(pointers tofunctionsandpointerstostructsaredifferentsizes).
This is not what is wanted. */ #ifdefined (CRAY) # define FUNCTION_TO_KEYMAP(map, key) (Keymap)((int)map[key].function) # define KEYMAP_TO_FUNCTION(data) (rl_command_func_t *)((int)(data)) #else # define FUNCTION_TO_KEYMAP(map, key) (Keymap)(map[key].function) # define KEYMAP_TO_FUNCTION(data) (rl_command_func_t *)(data) #endif
/* Possible values for _rl_bell_preference. */ #define NO_BELL 0 #define AUDIBLE_BELL 1 #define VISIBLE_BELL 2
/* Definitions used when searching the line for characters. */ /* NOTE: it is necessary that opposite directions are inverses */ #define FTO 1/* forward to */ #define BTO -1/* backward to */ #define FFIND 2/* forward find */ #define BFIND -2/* backward find */
/* Possible values for the found_quote flags word used by the completion functions.Itsayswhatkindof(shell-like)quotingwefoundanywhere
in the line. */ #define RL_QF_SINGLE_QUOTE 0x01 #define RL_QF_DOUBLE_QUOTE 0x02 #define RL_QF_BACKSLASH 0x04 #define RL_QF_OTHER_QUOTE 0x08
/* Default readline line buffer length. */ #define DEFAULT_BUFFER_SIZE 256
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.