diff options
| author | Charles Forsyth <charles.forsyth@gmail.com> | 2014-06-30 10:57:08 +0100 |
|---|---|---|
| committer | Charles Forsyth <charles.forsyth@gmail.com> | 2014-06-30 10:57:08 +0100 |
| commit | 3cd4f1d15146c08f05206d6328ecbc1c7fdc8dfa (patch) | |
| tree | a546acadca10b43d6b5eafc6d85f4aed361e9988 /libkern/fmtdef.h | |
| parent | ee030d07b2cf167be70f1dc36f56bdf3012860ae (diff) | |
update to match lib9
Diffstat (limited to 'libkern/fmtdef.h')
| -rw-r--r-- | libkern/fmtdef.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/libkern/fmtdef.h b/libkern/fmtdef.h index d8f3680f..9b0e9782 100644 --- a/libkern/fmtdef.h +++ b/libkern/fmtdef.h @@ -1,4 +1,17 @@ /* + * The authors of this software are Rob Pike and Ken Thompson. + * Copyright (c) 2002 by Lucent Technologies. + * Permission to use, copy, modify, and distribute this software for any + * purpose without fee is hereby granted, provided that this entire notice + * is included in all copies of any software which is or includes a copy + * or modification of this software and in all copies of the supporting + * documentation for such software. + * THIS SOFTWARE IS BEING PROVIDED "AS IS", WITHOUT ANY EXPRESS OR IMPLIED + * WARRANTY. IN PARTICULAR, NEITHER THE AUTHORS NOR LUCENT TECHNOLOGIES MAKE ANY + * REPRESENTATION OR WARRANTY OF ANY KIND CONCERNING THE MERCHANTABILITY + * OF THIS SOFTWARE OR ITS FITNESS FOR ANY PARTICULAR PURPOSE. + */ +/* * dofmt -- format to a buffer * the number of characters formatted is returned, * or -1 if there was an error. @@ -83,3 +96,7 @@ void _fmtunlock(void); t += runetochar(t, &_rune);\ }\ }while(0) + +#ifndef va_copy +#define va_copy(a, b) ((a) = (b)) +#endif |
