diff options
author | Ken Raeburn <raeburn@mit.edu> | 2001-10-10 03:18:22 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2001-10-10 03:18:22 +0000 |
commit | 7613acc70e37ebabd7743da02da4f4ff0d218d5c (patch) | |
tree | ea7b08ad73cfb7cd8a5ca8e77a9fb646770804f0 /src/util/ss/ss_internal.h | |
parent | ad4d9f8d0f83524931da62aebb592ab53f2218d9 (diff) | |
download | krb5-7613acc70e37ebabd7743da02da4f4ff0d218d5c.zip krb5-7613acc70e37ebabd7743da02da4f4ff0d218d5c.tar.gz krb5-7613acc70e37ebabd7743da02da4f4ff0d218d5c.tar.bz2 |
Don't conditionalize prototypes; delete macros supporting it. (Maybe overdone;
don't worry about restoring them when importing new versions of code.)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13792 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/ss/ss_internal.h')
-rw-r--r-- | src/util/ss/ss_internal.h | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/src/util/ss/ss_internal.h b/src/util/ss/ss_internal.h index 01a7197..f8d059d 100644 --- a/src/util/ss/ss_internal.h +++ b/src/util/ss/ss_internal.h @@ -13,20 +13,8 @@ #include <stdlib.h> #endif -#ifdef __STDC__ - -#define PROTOTYPE(p) p typedef void * pointer; -#else - -#define const -#define volatile -#define PROTOTYPE(p) () -typedef char * pointer; - -#endif /* not __STDC__ */ - #include "ss.h" #if defined(__GNUC__) @@ -36,13 +24,13 @@ typedef char * pointer; #if defined(vax) #define LOCAL_ALLOC(x) alloca(x) #define LOCAL_FREE(x) -extern pointer alloca PROTOTYPE((unsigned)); +extern pointer alloca (unsigned); #else #if defined(__HIGHC__) /* Barf! */ pragma on(alloca); #define LOCAL_ALLOC(x) alloca(x) #define LOCAL_FREE(x) -extern pointer alloca PROTOTYPE((unsigned)); +extern pointer alloca (unsigned); #else /* no alloca? */ #define LOCAL_ALLOC(x) malloc(x) @@ -101,10 +89,10 @@ typedef struct _ss_data { /* init values */ (*code_ptr=0,ss_info(sci_idx)->current_request) void ss_unknown_function(); void ss_delete_info_dir(); -char **ss_parse PROTOTYPE((int, char *, int *)); -ss_abbrev_info *ss_abbrev_initialize PROTOTYPE((char *, int *)); -void ss_page_stdin PROTOTYPE((void)); -int ss_pager_create PROTOTYPE((void)); +char **ss_parse (int, char *, int *); +ss_abbrev_info *ss_abbrev_initialize (char *, int *); +void ss_page_stdin (void); +int ss_pager_create (void); void ss_self_identify __SS_PROTO; void ss_subsystem_name __SS_PROTO; void ss_subsystem_version __SS_PROTO; @@ -114,9 +102,9 @@ extern ss_data **_ss_table; extern char *ss_et_msgs[]; #ifndef HAVE_STDLIB_H -extern pointer malloc PROTOTYPE((unsigned)); -extern pointer realloc PROTOTYPE((pointer, unsigned)); -extern pointer calloc PROTOTYPE((unsigned, unsigned)); +extern pointer malloc (unsigned); +extern pointer realloc (pointer, unsigned); +extern pointer calloc (unsigned, unsigned); #endif #if defined(USE_SIGPROCMASK) && !defined(POSIX_SIGNALS) |