histlib.h (75406) | histlib.h (119610) |
---|---|
1/* histlib.h -- internal definitions for the history library. */ 2/* Copyright (C) 1989, 1992 Free Software Foundation, Inc. 3 4 This file contains the GNU History Library (the Library), a set of 5 routines for managing the text of previously typed lines. 6 7 The Library is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 8 unchanged lines hidden (view full) --- 17 The GNU General Public License is often shipped with GNU software, and 18 is generally kept in a file called COPYING or LICENSE. If you do not 19 have a copy of the license, write to the Free Software Foundation, 20 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 21 22#if !defined (_HISTLIB_H_) 23#define _HISTLIB_H_ 24 | 1/* histlib.h -- internal definitions for the history library. */ 2/* Copyright (C) 1989, 1992 Free Software Foundation, Inc. 3 4 This file contains the GNU History Library (the Library), a set of 5 routines for managing the text of previously typed lines. 6 7 The Library is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by --- 8 unchanged lines hidden (view full) --- 17 The GNU General Public License is often shipped with GNU software, and 18 is generally kept in a file called COPYING or LICENSE. If you do not 19 have a copy of the license, write to the Free Software Foundation, 20 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ 21 22#if !defined (_HISTLIB_H_) 23#define _HISTLIB_H_ 24 |
25#if defined (HAVE_STRING_H) 26# include <string.h> 27#else 28# include <strings.h> 29#endif /* !HAVE_STRING_H */ 30 |
|
25#if !defined (STREQ) 26#define STREQ(a, b) (((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0)) 27#define STREQN(a, b, n) (((n) == 0) ? (1) \ 28 : ((a)[0] == (b)[0]) && (strncmp ((a), (b), (n)) == 0)) 29#endif 30 31#ifndef savestring | 31#if !defined (STREQ) 32#define STREQ(a, b) (((a)[0] == (b)[0]) && (strcmp ((a), (b)) == 0)) 33#define STREQN(a, b, n) (((n) == 0) ? (1) \ 34 : ((a)[0] == (b)[0]) && (strncmp ((a), (b), (n)) == 0)) 35#endif 36 37#ifndef savestring |
32# ifndef strcpy 33extern char *strcpy (); 34# endif | |
35#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) 36#endif 37 38#ifndef whitespace 39#define whitespace(c) (((c) == ' ') || ((c) == '\t')) 40#endif 41 42#ifndef _rl_digit_p --- 37 unchanged lines hidden --- | 38#define savestring(x) strcpy (xmalloc (1 + strlen (x)), (x)) 39#endif 40 41#ifndef whitespace 42#define whitespace(c) (((c) == ' ') || ((c) == '\t')) 43#endif 44 45#ifndef _rl_digit_p --- 37 unchanged lines hidden --- |