OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [final_interface/] [gdb-5.0/] [readline/] [histlib.h] - Diff between revs 114 and 1765

Only display areas with differences | Details | Blame | View Log

Rev 114 Rev 1765
/* histlib.h -- internal definitions for the history library. */
/* histlib.h -- internal definitions for the history library. */
/* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
/* Copyright (C) 1989, 1992 Free Software Foundation, Inc.
 
 
   This file contains the GNU History Library (the Library), a set of
   This file contains the GNU History Library (the Library), a set of
   routines for managing the text of previously typed lines.
   routines for managing the text of previously typed lines.
 
 
   The Library is free software; you can redistribute it and/or modify
   The Library is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 1, or (at your option)
   the Free Software Foundation; either version 1, or (at your option)
   any later version.
   any later version.
 
 
   The Library is distributed in the hope that it will be useful, but
   The Library is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.
   General Public License for more details.
 
 
   The GNU General Public License is often shipped with GNU software, and
   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
   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,
   have a copy of the license, write to the Free Software Foundation,
   675 Mass Ave, Cambridge, MA 02139, USA. */
   675 Mass Ave, Cambridge, MA 02139, USA. */
 
 
#if !defined (_HISTLIB_H_)
#if !defined (_HISTLIB_H_)
#define _HISTLIB_H_
#define _HISTLIB_H_
 
 
/* Function pointers can be declared as (Function *)foo. */
/* Function pointers can be declared as (Function *)foo. */
#if !defined (_FUNCTION_DEF)
#if !defined (_FUNCTION_DEF)
#  define _FUNCTION_DEF
#  define _FUNCTION_DEF
typedef int Function ();
typedef int Function ();
typedef void VFunction ();
typedef void VFunction ();
typedef char *CPFunction ();
typedef char *CPFunction ();
typedef char **CPPFunction ();
typedef char **CPPFunction ();
#endif /* _FUNCTION_DEF */
#endif /* _FUNCTION_DEF */
 
 
#define STREQ(a, b)     (((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0))
#define STREQ(a, b)     (((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0))
#define STREQN(a, b, n) (((a)[0] == (b)[0]) && (strncmp ((a), (b), (n)) == 0))
#define STREQN(a, b, n) (((a)[0] == (b)[0]) && (strncmp ((a), (b), (n)) == 0))
 
 
#ifndef savestring
#ifndef savestring
#  ifndef strcpy
#  ifndef strcpy
extern char *strcpy ();
extern char *strcpy ();
#  endif
#  endif
#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x))
#endif
#endif
 
 
#ifndef whitespace
#ifndef whitespace
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
#define whitespace(c) (((c) == ' ') || ((c) == '\t'))
#endif
#endif
 
 
#ifndef _rl_digit_p
#ifndef _rl_digit_p
#define _rl_digit_p(c)  ((c) >= '0' && (c) <= '9')
#define _rl_digit_p(c)  ((c) >= '0' && (c) <= '9')
#endif
#endif
 
 
#ifndef _rl_digit_value
#ifndef _rl_digit_value
#define _rl_digit_value(c) ((c) - '0')
#define _rl_digit_value(c) ((c) - '0')
#endif
#endif
 
 
#ifndef member
#ifndef member
#  ifndef strchr
#  ifndef strchr
extern char *strchr ();
extern char *strchr ();
#  endif
#  endif
#define member(c, s) ((c) ? ((char *)strchr ((s), (c)) != (char *)NULL) : 0)
#define member(c, s) ((c) ? ((char *)strchr ((s), (c)) != (char *)NULL) : 0)
#endif
#endif
 
 
#ifndef FREE
#ifndef FREE
#  define FREE(x)       if (x) free (x)
#  define FREE(x)       if (x) free (x)
#endif
#endif
 
 
/* Possible history errors passed to hist_error. */
/* Possible history errors passed to hist_error. */
#define EVENT_NOT_FOUND 0
#define EVENT_NOT_FOUND 0
#define BAD_WORD_SPEC   1
#define BAD_WORD_SPEC   1
#define SUBST_FAILED    2
#define SUBST_FAILED    2
#define BAD_MODIFIER    3
#define BAD_MODIFIER    3
#define NO_PREV_SUBST   4
#define NO_PREV_SUBST   4
 
 
/* Possible definitions for history starting point specification. */
/* Possible definitions for history starting point specification. */
#define ANCHORED_SEARCH 1
#define ANCHORED_SEARCH 1
#define NON_ANCHORED_SEARCH 0
#define NON_ANCHORED_SEARCH 0
 
 
/* Possible definitions for what style of writing the history file we want. */
/* Possible definitions for what style of writing the history file we want. */
#define HISTORY_APPEND 0
#define HISTORY_APPEND 0
#define HISTORY_OVERWRITE 1
#define HISTORY_OVERWRITE 1
 
 
#endif /* !_HISTLIB_H_ */
#endif /* !_HISTLIB_H_ */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.