source: buchla-68k/orig/lib/INCLUDE/VARARGS.H@ 9bf0f86

Last change on this file since 9bf0f86 was 3ae31e9, checked in by Thomas Lopatic <thomas@…>, 8 years ago

Imported original source code.

  • Property mode set to 100755
File size: 731 bytes
RevLine 
[3ae31e9]1/*
2 =============================================================================
3 varargs.h -- variable argument list macros
4 Version 3 -- 1987-06-16 -- D.N. Lynx Crowe
5
6 WARNING: Be sure that the 'mode' in the sizeof(mode) in va_arg
7 matches the size of the actual argument on the stack. If it doesn't,
8 improper argument list fetches will occur.
9 (Lattice has problems with this, as all arguments except double are
10 the same size.)
11 =============================================================================
12*/
13
14typedef char *va_list;
15
16#define va_dcl int va_alist;
17#define va_start(list) list = (char *) &va_alist
18#define va_end(list)
19
20#define va_arg(list,mode) ((mode *)(list += sizeof(mode)))[-1]
Note: See TracBrowser for help on using the repository browser.