Differences From Artifact [d345fef3f0]:
- File
PGConnection.m
— part of check-in
[d2fe40f160]
at
2012-10-05 20:17:45
on branch trunk
— Nicer API.
-[executeCommand:parameters:] is now a variadic function instead of
taking an array as argument. (user: js, size: 2883) [annotate] [blame] [check-ins using]
To Artifact [26ac0b68bf]:
- File PGConnection.m — part of check-in [cf2fe18597] at 2012-10-05 21:19:22 on branch trunk — Add Xcode project. (user: js, size: 2880) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
80 81 82 83 84 85 86 | - (PGResult*)executeCommand: (OFString*)command parameters: (id)parameter, ... { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; PGresult *result; const char **values; va_list args, args2; | | | 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 | - (PGResult*)executeCommand: (OFString*)command parameters: (id)parameter, ... { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; PGresult *result; const char **values; va_list args, args2; int argsCount; va_start(args, parameter); va_copy(args2, args); for (argsCount = 1; va_arg(args2, id) != nil; argsCount++); values = [self allocMemoryWithSize: sizeof(*values) |
︙ | ︙ |