summaryrefslogtreecommitdiff
path: root/rpmio
diff options
context:
space:
mode:
authorjbj <devnull@localhost>1999-04-14 11:28:31 +0000
committerjbj <devnull@localhost>1999-04-14 11:28:31 +0000
commit527e1bc4e0430a08f5a897ecee4feecdd57a6875 (patch)
tree750f887100708b3a9a90865d00d0a1d7cd0c2ba2 /rpmio
parentf5cf7b223f88c4cc975f4778010909209435fdae (diff)
downloadrpm-527e1bc4e0430a08f5a897ecee4feecdd57a6875.tar.gz
rpm-527e1bc4e0430a08f5a897ecee4feecdd57a6875.tar.bz2
rpm-527e1bc4e0430a08f5a897ecee4feecdd57a6875.zip
fix: last update transaction set segfault bug in installer.
improved checks for statfs (Tim Mooney). remove inconsistent use of __P((...)) throughout. non-static inline functions caused IRIX cc pain. CPIOERR_CHECK_ERRNO masking caused AIX cc warnings. CVS patchset: 2993 CVS date: 1999/04/14 11:28:31
Diffstat (limited to 'rpmio')
-rw-r--r--rpmio/rpmmacro.h32
1 files changed, 12 insertions, 20 deletions
diff --git a/rpmio/rpmmacro.h b/rpmio/rpmmacro.h
index 86be34fb4..0be26c589 100644
--- a/rpmio/rpmmacro.h
+++ b/rpmio/rpmmacro.h
@@ -29,39 +29,31 @@ typedef /*@abstract@*/ struct MacroContext {
#define RMIL_OLDSPEC -1
#define RMIL_GLOBAL 0
-#ifndef __P
-#ifdef __STDC__
-#define __P(protos) protos
-#else
-#define __P(protos) ()
-#endif
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
-void dumpMacroTable __P((MacroContext *mc, FILE *f));
+void dumpMacroTable (MacroContext *mc, FILE *f);
/* XXX this is used only in build/expression.c and will go away. */
-const char *getMacroBody __P((MacroContext *mc, const char *name));
+const char *getMacroBody (MacroContext *mc, const char *name);
-int expandMacros __P((void *spec, MacroContext *mc, char *sbuf, size_t sbuflen));
-void addMacro __P((MacroContext *mc, const char *n, const char *o, const char *b, int depth));
-void delMacro __P((MacroContext *mc, const char *n));
+int expandMacros (void *spec, MacroContext *mc, char *sbuf, size_t sbuflen);
+void addMacro (MacroContext *mc, const char *n, const char *o, const char *b, int depth);
+void delMacro (MacroContext *mc, const char *n);
-int rpmDefineMacro __P((MacroContext *mc, const char *macro, int level));
-void initMacros __P((MacroContext *mc, const char *macrofile));
-void freeMacros __P((MacroContext *mc));
+int rpmDefineMacro (MacroContext *mc, const char *macro, int level);
+void initMacros (MacroContext *mc, const char *macrofile);
+void freeMacros (MacroContext *mc);
#define COMPRESSED_NOT 0
#define COMPRESSED_OTHER 1
#define COMPRESSED_BZIP2 2
-int isCompressed __P((const char *file, int *compressed));
+int isCompressed (const char *file, int *compressed);
-char * rpmExpand __P((const char *arg, ...));
-const char *rpmGetPath __P((const char *path, ...));
-int rpmExpandNumeric __P((const char *arg));
+char * rpmExpand (const char *arg, ...);
+const char *rpmGetPath (const char *path, ...);
+int rpmExpandNumeric (const char *arg);
#ifdef __cplusplus
}