summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorJohn Kohl <jtkohl@mit.edu>1990-11-19 14:06:36 +0000
committerJohn Kohl <jtkohl@mit.edu>1990-11-19 14:06:36 +0000
commit2d7cc2ed574124bb52c8e4890184a64a155ec544 (patch)
tree1a6689177b5f7ffc3dc3297b8b88aeb62c54811d /src/include
parent017bc3c78c5e1d5d1160eeb0d70c428691f6489e (diff)
downloadkrb5-2d7cc2ed574124bb52c8e4890184a64a155ec544.tar.gz
krb5-2d7cc2ed574124bb52c8e4890184a64a155ec544.tar.xz
krb5-2d7cc2ed574124bb52c8e4890184a64a155ec544.zip
*** empty log message ***
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1462 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/include')
-rw-r--r--src/include/krb5/narrow.h29
-rw-r--r--src/include/krb5/widen.h36
2 files changed, 65 insertions, 0 deletions
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
+ * <krb5/copyright.h>.
+ *
+ * definitions to un-widen prototype types...see <krb5/widen.h>
+ * and <krb5/base-defs.h>
+ */
+
+#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
+ * <krb5/copyright.h>.
+ *
+ * definitions to widen prototype types temporarily...also see <krb5/narrow.h>
+ * and <krb5/base-defs.h>
+ */
+
+#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 */