mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
Move strsep() and ascii_isspace() to libcompat.
This commit is contained in:
parent
b17fcc5d51
commit
6f32b4e4d1
9 changed files with 69 additions and 60 deletions
|
@ -1,5 +1,8 @@
|
|||
2006-09-28 David Shaw <dshaw@jabberwocky.com>
|
||||
|
||||
* compat.h: Move strsep prototype and ascii_isspace macro to from
|
||||
util.h.
|
||||
|
||||
* compat.h: New, used for libcompat.a functions.
|
||||
|
||||
* util.h: Includes compat.h.
|
||||
|
|
|
@ -1,6 +1,14 @@
|
|||
#ifndef _COMPAT_H_
|
||||
#define _COMPAT_H_
|
||||
|
||||
/* Note this isn't identical to a C locale isspace() without \f and
|
||||
\v, but works for the purposes used here. */
|
||||
#define ascii_isspace(a) ((a)==' ' || (a)=='\n' || (a)=='\r' || (a)=='\t')
|
||||
|
||||
int hextobyte( const char *s );
|
||||
|
||||
#ifndef HAVE_STRSEP
|
||||
char *strsep (char **stringp, const char *delim);
|
||||
#endif
|
||||
|
||||
#endif /* !_COMPAT_H_ */
|
||||
|
|
|
@ -206,9 +206,6 @@ char *stpcpy(char *a,const char *b);
|
|||
#ifndef HAVE_STRLWR
|
||||
char *strlwr(char *a);
|
||||
#endif
|
||||
#ifndef HAVE_STRSEP
|
||||
char *strsep (char **stringp, const char *delim);
|
||||
#endif
|
||||
#ifndef HAVE_STRCASECMP
|
||||
int strcasecmp( const char *, const char *b);
|
||||
#endif
|
||||
|
@ -297,10 +294,6 @@ int get_cert(const char *name,size_t max_size,IOBUF *iobuf,
|
|||
*(p) <= 'F'? (*(p)-'A'+10):(*(p)-'a'+10))
|
||||
#define xtoi_2(p) ((xtoi_1(p) * 16) + xtoi_1((p)+1))
|
||||
|
||||
/* Note this isn't identical to a C locale isspace() without \f and
|
||||
\v, but works for the purposes used here. */
|
||||
#define ascii_isspace(a) ((a)==' ' || (a)=='\n' || (a)=='\r' || (a)=='\t')
|
||||
|
||||
/******* RISC OS stuff ***********/
|
||||
#ifdef __riscos__
|
||||
int riscos_load_module(const char *name, const char * const path[], int fatal);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue