X-Git-Url: http://git.kpe.io/?p=ctsim.git;a=blobdiff_plain;f=include%2Fkstddef.h;h=2f1349299ccd9b16eee048ebe981b1b55dfd1b81;hp=b6ad48fc56d2a18db9b3910504563e34f94852e8;hb=6404682526633f7f2b9a2f94071d802b7b50dd07;hpb=301180c6c8edb98580ee6657e87f5a21342b5d96 diff --git a/include/kstddef.h b/include/kstddef.h index b6ad48f..2f13492 100644 --- a/include/kstddef.h +++ b/include/kstddef.h @@ -2,8 +2,11 @@ ** 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 $ +** 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 ** @@ -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 ******************************************************************************/ + /****************************************************************************** * * FILE IDENTIFICATION @@ -250,8 +254,16 @@ char *td_day_name(int 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);