History

added va_copy()

bellard committed 20 years ago

Commit 84f4e991 parent 8b0c4c61 file · +1 −0Browse files

Unified · Split

stdarg.h+1−0
@@ -6,6 +6,7 @@ typedef char *va_list; · 5 unmodified lines
6/* only correct for i386 */6/* only correct for i386 */
7#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)7#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
8#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))8#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
9#define va_copy(dest, src) (dest) = (src)
9#define va_end(ap)10#define va_end(ap)
10 11
11/* fix a buggy dependency on GCC in libio.h */12/* fix a buggy dependency on GCC in libio.h */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t