X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=lib%2Freadline%2Ftilde.h;h=0df608b3458441c2899a49df570557f06de103b7;hb=f73dda092b33638d2d5e9c35375f687a607b5403;hp=d3966a634eb6c7a475b5027f2f741df622d8fc24;hpb=28ef6c316f1aff914bb95ac09787a3c83c1815fd;p=platform%2Fupstream%2Fbash.git diff --git a/lib/readline/tilde.h b/lib/readline/tilde.h index d3966a6..0df608b 100644 --- a/lib/readline/tilde.h +++ b/lib/readline/tilde.h @@ -24,35 +24,27 @@ #if !defined (_TILDE_H_) # define _TILDE_H_ +#if defined (HAVE_CONFIG_H) +# include +#endif + #ifdef __cplusplus extern "C" { #endif /* A function can be defined using prototypes and compile on both ANSI C and traditional C compilers with something like this: - extern char *func __P((char *, char *, int)); */ + extern char *func PARAMS((char *, char *, int)); */ -#if !defined (__P) +#if !defined (PARAMS) # if defined (__STDC__) || defined (__GNUC__) || defined (__cplusplus) -# define __P(protos) protos +# define PARAMS(protos) protos # else -# define __P(protos) () +# define PARAMS(protos) () # endif #endif -#if !defined (__STDC__) && !defined (__cplusplus) -# if defined (__GNUC__) /* gcc with -traditional */ -# if !defined (const) -# define const __const -# endif /* !const */ -# else /* !__GNUC__ */ -# if !defined (const) -# define const -# endif /* !const */ -# endif /* !__GNUC__ */ -#endif /* !__STDC__ && !__cplusplus */ - -typedef char *tilde_hook_func_t __P((char *)); +typedef char *tilde_hook_func_t PARAMS((char *)); /* If non-null, this contains the address of a function that the application wants called before trying the standard tilde expansions. The function @@ -77,11 +69,11 @@ extern char **tilde_additional_prefixes; extern char **tilde_additional_suffixes; /* Return a new string which is the result of tilde expanding STRING. */ -extern char *tilde_expand __P((const char *)); +extern char *tilde_expand PARAMS((const char *)); /* Do the work of tilde expansion on FILENAME. FILENAME starts with a tilde. If there is no expansion, call tilde_expansion_failure_hook. */ -extern char *tilde_expand_word __P((const char *)); +extern char *tilde_expand_word PARAMS((const char *)); #ifdef __cplusplus }