*** empty log message ***
authorJohn Kohl <jtkohl@mit.edu>
Mon, 19 Nov 1990 14:06:36 +0000 (14:06 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 19 Nov 1990 14:06:36 +0000 (14:06 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1462 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/narrow.h [new file with mode: 0644]
src/include/krb5/widen.h [new file with mode: 0644]

diff --git a/src/include/krb5/narrow.h b/src/include/krb5/narrow.h
new file mode 100644 (file)
index 0000000..eef17e6
--- /dev/null
@@ -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 (file)
index 0000000..4ea552f
--- /dev/null
@@ -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 */