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:
DRC
2018-03-17 15:14:35 -05:00
parent 09497c1a73
commit 293263c352
88 changed files with 1748 additions and 1685 deletions

View File

@@ -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] = {