diff options
author | dfr <dfr@FreeBSD.org> | 2008-05-07 13:39:42 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 2008-05-07 13:39:42 +0000 |
commit | 52bf09d8197dd1ec84e1ab72684f2058f0eae9e1 (patch) | |
tree | 07a0d6761d1b42410a27e4c7d583b766d6671f80 /crypto/heimdal/lib/roken/parse_units.h | |
parent | 6c68306921f6e85bce52c905cf2606c25acdb436 (diff) | |
parent | 51b6601db456e699ea5d4843cbc7239ee92d9c13 (diff) | |
download | FreeBSD-src-52bf09d8197dd1ec84e1ab72684f2058f0eae9e1.zip FreeBSD-src-52bf09d8197dd1ec84e1ab72684f2058f0eae9e1.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r178825,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'crypto/heimdal/lib/roken/parse_units.h')
-rw-r--r-- | crypto/heimdal/lib/roken/parse_units.h | 24 |
1 files changed, 16 insertions, 8 deletions
diff --git a/crypto/heimdal/lib/roken/parse_units.h b/crypto/heimdal/lib/roken/parse_units.h index 2002625..a42154d 100644 --- a/crypto/heimdal/lib/roken/parse_units.h +++ b/crypto/heimdal/lib/roken/parse_units.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. */ -/* $Id: parse_units.h,v 1.8 2003/04/16 17:30:54 lha Exp $ */ +/* $Id: parse_units.h 14773 2005-04-12 11:29:18Z lha $ */ #ifndef __PARSE_UNITS_H__ #define __PARSE_UNITS_H__ @@ -39,33 +39,41 @@ #include <stdio.h> #include <stddef.h> +#ifndef ROKEN_LIB_FUNCTION +#ifdef _WIN32 +#define ROKEN_LIB_FUNCTION _stdcall +#else +#define ROKEN_LIB_FUNCTION +#endif +#endif + struct units { const char *name; unsigned mult; }; -int +int ROKEN_LIB_FUNCTION parse_units (const char *s, const struct units *units, const char *def_unit); -void +void ROKEN_LIB_FUNCTION print_units_table (const struct units *units, FILE *f); -int +int ROKEN_LIB_FUNCTION parse_flags (const char *s, const struct units *units, int orig); -int +int ROKEN_LIB_FUNCTION unparse_units (int num, const struct units *units, char *s, size_t len); -int +int ROKEN_LIB_FUNCTION unparse_units_approx (int num, const struct units *units, char *s, size_t len); -int +int ROKEN_LIB_FUNCTION unparse_flags (int num, const struct units *units, char *s, size_t len); -void +void ROKEN_LIB_FUNCTION print_flags_table (const struct units *units, FILE *f); #endif /* __PARSE_UNITS_H__ */ |