code format

This commit is contained in:
Lexxy Fox 2023-11-02 11:56:11 -05:00
parent e970b2f661
commit a32edb4eec
3 changed files with 40 additions and 40 deletions

View File

@ -13,6 +13,7 @@ ReflowComments: true
RemoveBracesLLVM: true RemoveBracesLLVM: true
SortIncludes: CaseInsensitive SortIncludes: CaseInsensitive
TabWidth: 2 TabWidth: 2
ContinuationIndentWidth: 2
UseTab: AlignWithSpaces UseTab: AlignWithSpaces
# ex:se ft=yaml # ex:se ft=yaml

View File

@ -1,5 +1,5 @@
# Options (e.g. `CFLAGS=-DUSE_ARGP make`) # Options (e.g. `CFLAGS=-DHAVE_ARGP make`)
# USE_ARGP: use `argp` for argument parsing. # HAVE_ARGP: use `argp` for argument parsing.
VERSION ?= 9.0.1 VERSION ?= 9.0.1

View File

@ -12,7 +12,7 @@
* Other modifications by Lexxy Fox. * Other modifications by Lexxy Fox.
*/ */
#ifdef USE_ARGP #ifdef HAVE_ARGP
#include <argp.h> #include <argp.h>
#endif #endif
#include <GL/gl.h> #include <GL/gl.h>
@ -378,8 +378,7 @@ static void visible(int vis) {
static char *window_title = "Gears"; static char *window_title = "Gears";
#ifdef USE_ARGP #ifdef HAVE_ARGP
static const struct argp_option options[] = { static const struct argp_option options[] = {
{"info", 256, 0, 0, "Display OpenGL renderer information"}, {"info", 256, 0, 0, "Display OpenGL renderer information"},
{"exit", 257, 0, 0, "Automatically exit after 30 seconds"}, {"exit", 257, 0, 0, "Automatically exit after 30 seconds"},
@ -436,7 +435,7 @@ static void parse_args(int argc, char *argv[]) {
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
glutInit(&argc, argv); glutInit(&argc, argv);
#ifdef USE_ARGP #ifdef HAVE_ARGP
argp_parse(&argp, argc, argv, ARGP_LONG_ONLY, 0, 0); argp_parse(&argp, argc, argv, ARGP_LONG_ONLY, 0, 0);
#else #else
parse_args(argc, argv); parse_args(argc, argv);