8#define HI_WORD(x) ((x >> 16) & 0xFFFF)
9#define LO_WORD(x) ((x) & 0xFFFF)
10#define HI_BYTE(x) ((x >> 8) & 0xFF)
11#define LO_BYTE(x) ((x) & 0xFF)
Holds a single key-value pair.
Definition assets_preprocessor.h:682
Holds a list of key-value option pairs.
Definition assets_preprocessor.h:708
void deleteOptions(processorOptions_t *options)
Deallocates memory for a processorOptions_t.
Definition fileUtils.c:631
int getIntOption(const processorOptions_t *options, const char *name, int defaultVal)
Retrieve an option by name from the given options list and parse it as an integer,...
Definition fileUtils.c:682
bool hasOption(const processorOptions_t *options, const char *name)
Searches the given options list for a key with the given name.
Definition fileUtils.c:787
const char * get_filename(const char *filename)
Get the filename part of a file path, after the last '/'.
Definition fileUtils.c:56
long getFileSize(const char *fname)
Return the total size of the given file by opening it and seeking to the end.
Definition fileUtils.c:29
const char * getFullOptionKey(char *tmp, size_t n, const optPair_t *option)
Writes the <section>.<key> value to the given buffer and returns the key.
Definition fileUtils.c:613
bool deleteFile(const char *path)
Delete the file at the given path in a cross-platform way.
Definition fileUtils.c:115
const char * getStrOption(const processorOptions_t *options, const char *name)
Retrieve an option by name and return its value as a string, or NULL if the key is not found.
Definition fileUtils.c:653
bool doesFileExist(const char *fname)
Returns true if the file at the given path exists.
Definition fileUtils.c:45
bool getBoolOption(const processorOptions_t *options, const char *name, bool defaultVal)
Retrieve an option by name from the given options list and parse it as a boolean, using a default val...
Definition fileUtils.c:728
bool getOptionsFromIniFile(processorOptions_t *options, const char *file)
Parse the file with the given name as an INI file and write its data to options.
Definition fileUtils.c:565
bool isSourceFileNewer(const char *sourceFile, const char *destFile)
Returns true if the file sourceFile has a last-modified time after that of destFile,...
Definition fileUtils.c:75