388 static bool doubleAtPut(char* name, size_t len, double* value, Flag::Flags origin); |
388 static bool doubleAtPut(char* name, size_t len, double* value, Flag::Flags origin); |
389 static bool doubleAtPut(char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); } |
389 static bool doubleAtPut(char* name, double* value, Flag::Flags origin) { return doubleAtPut(name, strlen(name), value, origin); } |
390 |
390 |
391 static bool ccstrAt(char* name, size_t len, ccstr* value); |
391 static bool ccstrAt(char* name, size_t len, ccstr* value); |
392 static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } |
392 static bool ccstrAt(char* name, ccstr* value) { return ccstrAt(name, strlen(name), value); } |
|
393 // Contract: Flag will make private copy of the incoming value. |
|
394 // Outgoing value is always malloc-ed, and caller MUST call free. |
393 static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin); |
395 static bool ccstrAtPut(char* name, size_t len, ccstr* value, Flag::Flags origin); |
394 static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } |
396 static bool ccstrAtPut(char* name, ccstr* value, Flag::Flags origin) { return ccstrAtPut(name, strlen(name), value, origin); } |
395 |
397 |
396 // Returns false if name is not a command line flag. |
398 // Returns false if name is not a command line flag. |
397 static bool wasSetOnCmdline(const char* name, bool* value); |
399 static bool wasSetOnCmdline(const char* name, bool* value); |