aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/stdarg.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/stdarg.h b/include/stdarg.h
index 43138b6..bdc4101 100644
--- a/include/stdarg.h
+++ b/include/stdarg.h
@@ -3,7 +3,7 @@
// (With LP64 and ILP32 Programming Models)
// Version 1.0
// Figure 3.34: va_list Type Declaration
-struct __va_list__ {
+struct __ducc_va_list {
// unsigned int gp_offset;
// unsigned int fp_offset;
int gp_offset;
@@ -12,9 +12,10 @@ struct __va_list__ {
void* reg_save_area;
};
// ducc currently does not support array type.
-// typedef struct __va_list__ va_list[1];
-typedef struct __va_list__* va_list;
+// typedef struct __ducc_va_list va_list[1];
+typedef struct __ducc_va_list* va_list;
+
+#define va_start(args, start) __ducc_va_start(args, start)
-// va_start() is currently implemented as a special form due to the limitation of #define macro.
void va_end(va_list args) {
}