Format preprocessor macros more consistently
Within the libjpeg API code, it seems to be more the convention than not to separate the macro name and value by two or more spaces, which improves general readability. Making this consistent across all of libjpeg-turbo is less about my individual preferences and more about making it easy to automatically detect variations from our chosen formatting convention. I intend to release the script I'm using to validate this stuff, once it matures and stabilizes a bit.
This commit is contained in:
12
tjexample.c
12
tjexample.c
@@ -40,8 +40,8 @@
|
||||
|
||||
|
||||
#ifdef _WIN32
|
||||
#define strcasecmp stricmp
|
||||
#define strncasecmp strnicmp
|
||||
#define strcasecmp stricmp
|
||||
#define strncasecmp strnicmp
|
||||
#endif
|
||||
|
||||
#define _throw(action, message) { \
|
||||
@@ -49,12 +49,12 @@
|
||||
retval = -1; goto bailout; \
|
||||
}
|
||||
|
||||
#define _throwtj(action) _throw(action, tjGetErrorStr2(tjInstance))
|
||||
#define _throwtj(action) _throw(action, tjGetErrorStr2(tjInstance))
|
||||
|
||||
#define _throwunix(action) _throw(action, strerror(errno))
|
||||
#define _throwunix(action) _throw(action, strerror(errno))
|
||||
|
||||
#define DEFAULT_SUBSAMP TJSAMP_444
|
||||
#define DEFAULT_QUALITY 95
|
||||
#define DEFAULT_SUBSAMP TJSAMP_444
|
||||
#define DEFAULT_QUALITY 95
|
||||
|
||||
|
||||
const char *subsampName[TJ_NUMSAMP] = {
|
||||
|
||||
Reference in New Issue
Block a user