Rev | Line | |
---|
[4164] | 1 | /* $Id: vprntf16.h,v 1.2 2000-09-02 21:08:04 bird Exp $
|
---|
[2898] | 2 | *
|
---|
| 3 | * printf/vprintf header file - 16bit.
|
---|
| 4 | *
|
---|
| 5 | * WARNING: Do not include stdarg.h! AND it's only for use during init!!!
|
---|
| 6 | *
|
---|
| 7 | * Copyright (c) 1999 knut st. osmundsen
|
---|
| 8 | *
|
---|
| 9 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 10 | *
|
---|
| 11 | */
|
---|
| 12 |
|
---|
| 13 | #ifndef _vprintf_h_
|
---|
| 14 | #define _vprintf_h_
|
---|
| 15 |
|
---|
| 16 | #ifdef __cplusplus
|
---|
| 17 | extern "C" {
|
---|
| 18 | #endif
|
---|
| 19 |
|
---|
| 20 | /*
|
---|
| 21 | * Argument definitions.
|
---|
| 22 | */
|
---|
| 23 | typedef char _far *va_list;
|
---|
| 24 | #define va_start(ap,v) ap = (va_list)&v + sizeof(v)
|
---|
| 25 | #define va_arg(ap, t) ((t _far *)(ap += sizeof(t)))[-1]
|
---|
| 26 | #define va_end(ap) ap = NULL
|
---|
| 27 |
|
---|
| 28 |
|
---|
| 29 | /*
|
---|
| 30 | * Function prototypes
|
---|
| 31 | */
|
---|
[4164] | 32 | int FAR printf16(const char *pszFormat, ...);
|
---|
| 33 | int FAR vprintf16(const char *pszFormat, va_list args);
|
---|
[2898] | 34 |
|
---|
[4164] | 35 | /*#pragma alloc_text(CODE16, printf16, vprintf16)*/
|
---|
[2898] | 36 |
|
---|
[4164] | 37 |
|
---|
[2898] | 38 | #ifdef __cplusplus
|
---|
| 39 | }
|
---|
| 40 | #endif
|
---|
| 41 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.