History

double fix

bellard committed 24 years ago

Commit 5c818961 parent 44b19de1 file · +2 −3Browse files

Unified · Split

stdarg.h+2−3
@@ -4,9 +4,8 @@ · 3 unmodified lines
4typedef char *va_list;4typedef char *va_list;
5 5
6/* only correct for i386 */6/* only correct for i386 */
7/* XXX: incorrect for type size different than 4 bytes*/7#define va_start(ap,last) ap = ((char *)&(last)) + ((sizeof(last)+3)&~3)
8#define va_start(ap,last) ap = ((char *)&(last)) + sizeof(int); 8#define va_arg(ap,type) (ap += (sizeof(type)+3)&~3, *(type *)(ap - ((sizeof(type)+3)&~3)))
9#define va_arg(ap,type) (ap += sizeof(int), *(type *)(ap - sizeof(int)))
10#define va_end(ap)9#define va_end(ap)
11 10
12/* fix a buggy dependency on GCC in libio.h */11/* 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