History

update

bellard committed 25 years ago

Commit eb0e3e71 parent 605a0286 files · +210 −80Browse files

Showing the changes to stdarg.h (1 of 6 files). Show all

Unified · Split

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

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