1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-25 11:37:56 +00:00
freebsd/eBones/include/highc.h
Mark Murray b1ebdd50cb Start the eBones cleanup ball rolling.
These are the start of a lot of work to clean up the FreeBSD eBones code.
these changes include, but are not limited to:
- Create prototypes for all the library routines
- Make all the libraries compile clean with -Wall set
- Fix numerous small bugs shown up in the above process
- Prepare the code for libdes's removal to secure/
- add register, registerd and make_keypair to the make
Lots more will follow in days to come.

OK'ed by: rgrimes
1995-08-25 22:52:32 +00:00

33 lines
893 B
C

/*
* Copyright 1988 by the Massachusetts Institute of Technology.
* For copying and distribution information, please see the file
* <Copyright.MIT>.
*
* Known breakage in the version of Metaware's High C compiler that
* we've got available....
*
* from: highc.h,v 4.0 89/01/23 09:59:15 jtkohl Exp $
* $Id: highc.h,v 1.3 1995/07/18 16:36:27 mark Exp $
*/
#define const
/*#define volatile*/
/*
* Some builtin functions we can take advantage of for inlining....
*/
#define abs _abs
/* the _max and _min builtins accept any number of arguments */
#undef MAX
#define MAX(x,y) _max(x,y)
#undef MIN
#define MIN(x,y) _min(x,y)
/*
* I'm not sure if 65535 is a limit for this builtin, but it's
* reasonable for a string length. Or is it?
*/
/*#define strlen(s) _find_char(s,65535,0)*/
#define bzero(ptr,len) _fill_char(ptr,len,'\0')
#define bcmp(b1,b2,len) _compare(b1,b2,len)