mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-15 09:21:33 +00:00
b668759b7d
Ruamoko passes va_list (@args) through the ... parameter (as such), but IMP uses ... to defeat parameter type and count checking and doesn't want va_list. While possibly not the best solution, adding a no_va_list flag to function types and skipping ex_args entirely does take care of the problem without hard-coding anything specific to IMP. The system currently just sets some bits in the type specifier (the attribute list should probably be carried around with the specifier), but it gets the job done for now, and at least gets things started.
29 lines
584 B
R
29 lines
584 B
R
typedef struct { int x, y; } Point;
|
|
@interface TextContext
|
|
- (void) mvvprintf: (Point) pos, string mft, @va_list args;
|
|
@end
|
|
@interface View
|
|
{
|
|
TextContext *textContext;
|
|
}
|
|
- (void) mvprintf: (Point) pos, string mft, ...;
|
|
@end
|
|
|
|
@implementation View
|
|
- (void) mvprintf: (Point) pos, string fmt, ...
|
|
{
|
|
[textContext mvvprintf: pos, fmt, @args];
|
|
}
|
|
@end
|
|
@attribute(no_va_list) id obj_msgSend (id receiver, SEL op, ...) = #0;
|
|
void __obj_exec_class (struct obj_module *msg) = #0;
|
|
@interface Object
|
|
@end
|
|
@implementation Object
|
|
@end
|
|
|
|
int
|
|
main (void)
|
|
{
|
|
return 0; // to survive and prevail :)
|
|
}
|