r64: *** empty log message ***
[ctsim.git] / include / kstddef.h
index b6ad48fc56d2a18db9b3910504563e34f94852e8..2f1349299ccd9b16eee048ebe981b1b55dfd1b81 100644 (file)
@@ -2,8 +2,11 @@
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
 **  This is part of the CTSim program
 **  Copyright (C) 1983-2000 Kevin Rosenberg
 **
-**  $Id: kstddef.h,v 1.10 2000/05/16 04:33:17 kevin Exp $
+**  $Id: kstddef.h,v 1.11 2000/06/03 06:29:08 kevin Exp $
 **  $Log: kstddef.h,v $
 **  $Log: kstddef.h,v $
+**  Revision 1.11  2000/06/03 06:29:08  kevin
+**  *** empty log message ***
+**
 **  Revision 1.10  2000/05/16 04:33:17  kevin
 **  Updated documentation
 **
 **  Revision 1.10  2000/05/16 04:33:17  kevin
 **  Updated documentation
 **
@@ -45,6 +48,7 @@
 **  along with this program; if not, write to the Free Software
 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ******************************************************************************/
 **  along with this program; if not, write to the Free Software
 **  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 ******************************************************************************/
+
 /******************************************************************************
  *
  * FILE IDENTIFICATION
 /******************************************************************************
  *
  * FILE IDENTIFICATION
@@ -250,8 +254,16 @@ char *td_day_name(int n);
 
 /* netorder.c */
 void *strreverse (void *dest, const void *src, size_t n);
 
 /* netorder.c */
 void *strreverse (void *dest, const void *src, size_t n);
-int read_nlong (unsigned long int *n, int fd);
-int write_nlong (unsigned long int const *n, int fd);
+#if SIZEOF_SHORT == 4
+int read_n32bint (unsigned short *n, int fd);
+int write_n32bint (unsigned short const *n, int fd);
+#elif SIZEOF_LONG == 4
+int read_n32bint (unsigned long *n, int fd);
+int write_n32bint (unsigned long const *n, int fd);
+#else
+int read_n32bint (unsigned int *n, int fd);
+int write_n32bint (unsigned int const *n, int fd);
+#endif
 int read_nfloat (float *f, int fd);
 int write_nfloat (float const *f, int fd);
 int read_ndouble (double *d, int fd);
 int read_nfloat (float *f, int fd);
 int write_nfloat (float const *f, int fd);
 int read_ndouble (double *d, int fd);