diff options
author | powwow@askgustav.com <powwow@askgustav.com> | 2019-03-18 23:05:26 (GMT) |
---|---|---|
committer | Steve Slaven <bpk@hoopajoo.net> | 2019-04-23 20:37:05 (GMT) |
commit | 304a722c426f47a461dc88c4493f800c0690b29b (patch) | |
tree | 151b974354c0c7ec4e89649a949db32f11b56442 /ptr.h | |
parent | 7db984561ef8fd0ff9165288324dbc81516113f0 (diff) | |
download | powwow-304a722c426f47a461dc88c4493f800c0690b29b.zip powwow-304a722c426f47a461dc88c4493f800c0690b29b.tar.gz powwow-304a722c426f47a461dc88c4493f800c0690b29b.tar.bz2 |
remove some non-ANSI C support
Diffstat (limited to 'ptr.h')
-rw-r--r-- | ptr.h | 58 |
1 files changed, 29 insertions, 29 deletions
@@ -22,54 +22,54 @@ typedef _ptr * ptr; #define ptrdata(p) ((char *)((ptr)(p) + 1)) /* if p is a valid (ptr), ptrdata(p) is guaranteed to be a valid (char *) */ -ptr ptrnew __P ((int max)); -ptr ptrdup2 __P ((ptr src, int newmax)); -ptr ptrdup __P ((ptr src)); +ptr ptrnew(int max); +ptr ptrdup2(ptr src, int newmax); +ptr ptrdup(ptr src); #define PTR_SIG 91887 #define ptrdel(x) _ptrdel(x);x=(ptr)0; -void _ptrdel __P ((ptr p)); +void _ptrdel(ptr p); -void ptrzero __P ((ptr p)); -void ptrshrink __P ((ptr p, int len)); -void ptrtrunc __P ((ptr p, int len)); -ptr ptrpad __P ((ptr p, int len)); -ptr ptrsetlen __P ((ptr p, int len)); +void ptrzero(ptr p); +void ptrshrink(ptr p, int len); +void ptrtrunc(ptr p, int len); +ptr ptrpad(ptr p, int len); +ptr ptrsetlen(ptr p, int len); -ptr ptrcpy __P ((ptr dst, ptr src)); -ptr ptrmcpy __P ((ptr dst, char *src, int len)); +ptr ptrcpy(ptr dst, ptr src); +ptr ptrmcpy(ptr dst, char *src, int len); -ptr ptrcat __P ((ptr dst, ptr src)); -ptr ptrmcat __P ((ptr dst, char *src, int len)); +ptr ptrcat(ptr dst, ptr src); +ptr ptrmcat(ptr dst, char *src, int len); -ptr __ptrcat __P ((ptr dst, char *src, int len, int shrink)); -ptr __ptrmcpy __P ((ptr dst, char *src, int len, int shrink)); +ptr __ptrcat(ptr dst, char *src, int len, int shrink); +ptr __ptrmcpy(ptr dst, char *src, int len, int shrink); -int ptrcmp __P ((ptr p, ptr q)); -int ptrmcmp __P ((ptr p, char *q, int lenq)); +int ptrcmp(ptr p, ptr q); +int ptrmcmp(ptr p, char *q, int lenq); -char *ptrchr __P ((ptr p, char c)); -char *ptrrchr __P ((ptr p, char c)); +char *ptrchr(ptr p, char c); +char *ptrrchr(ptr p, char c); -char *ptrfind __P ((ptr p, ptr q)); -char *ptrmfind __P ((ptr p, char *q, int lenq)); +char *ptrfind(ptr p, ptr q); +char *ptrmfind(ptr p, char *q, int lenq); -char *ptrchrs __P ((ptr p, ptr q)); -char *ptrmchrs __P ((ptr p, char *q, int lenq)); -char *ptrrchrs __P ((ptr p, ptr q)); -char *ptrmrchrs __P ((ptr p, char *q, int lenq)); +char *ptrchrs(ptr p, ptr q); +char *ptrmchrs(ptr p, char *q, int lenq); +char *ptrrchrs(ptr p, ptr q); +char *ptrmrchrs(ptr p, char *q, int lenq); -char *memchrs __P ((char *p, int lenp, char *q, int lenq)); -char *memrchrs __P ((char *p, int lenp, char *q, int lenq)); +char *memchrs(char *p, int lenp, char *q, int lenq); +char *memrchrs(char *p, int lenp, char *q, int lenq); #ifdef _GNU_SOURCE # define memfind memmem #else -char *memfind __P ((char *hay, int haylen, char *needle, int needlelen)); +char *memfind(char *hay, int haylen, char *needle, int needlelen); /* TODO: watch memrchr, it is defined differently here than under _GNU_SOURCE, * so it could cause bizarre results if a module makes use of a library that * uses it */ -char *memrchr __P ((char *p, int lenp, char c)); +char *memrchr(char *p, int lenp, char c); #endif #endif /* _PTR_H_ */ |