From 2d7cc2ed574124bb52c8e4890184a64a155ec544 Mon Sep 17 00:00:00 2001 From: John Kohl Date: Mon, 19 Nov 1990 14:06:36 +0000 Subject: [PATCH] *** empty log message *** git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1462 dc483132-0cff-0310-8789-dd5450dbe970 --- src/include/krb5/narrow.h | 29 +++++++++++++++++++++++++++++ src/include/krb5/widen.h | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+) create mode 100644 src/include/krb5/narrow.h create mode 100644 src/include/krb5/widen.h diff --git a/src/include/krb5/narrow.h b/src/include/krb5/narrow.h new file mode 100644 index 000000000..eef17e6fe --- /dev/null +++ b/src/include/krb5/narrow.h @@ -0,0 +1,29 @@ +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * definitions to un-widen prototype types...see + * and + */ + +#ifndef NARROW_PROTOTYPES + +/* only needed if not narrow, i.e. wide */ + +#undef krb5_boolean +#undef krb5_msgtype +#undef krb5_kvno + +#undef krb5_addrtype +#undef krb5_keytype +#undef krb5_enctype +#undef krb5_cksumtype +#undef krb5_authdatatype + +#endif /* not NARROW_PROTOTYPES */ diff --git a/src/include/krb5/widen.h b/src/include/krb5/widen.h new file mode 100644 index 000000000..4ea552f61 --- /dev/null +++ b/src/include/krb5/widen.h @@ -0,0 +1,36 @@ +/* + * $Source$ + * $Author$ + * $Id$ + * + * Copyright 1990 by the Massachusetts Institute of Technology. + * + * For copying and distribution information, please see the file + * . + * + * definitions to widen prototype types temporarily...also see + * and + */ + +#ifndef NARROW_PROTOTYPES + +/* WARNING ! ! ! + Only include declarations in source files between this file and narrow.h + if none of the functions declared therein uses pointers to any of the + narrowed types. If you're not careful, you could widen the pointed-to + object, which is WRONG. + */ + +/* only needed if not narrow, i.e. wide */ + +#define krb5_boolean int +#define krb5_msgtype int +#define krb5_kvno int + +#define krb5_addrtype unsigned int +#define krb5_keytype unsigned int +#define krb5_enctype unsigned int +#define krb5_cksumtype unsigned int +#define krb5_authdatatype unsigned int + +#endif /* not NARROW_PROTOTYPES */ -- 2.26.2