summaryrefslogtreecommitdiff
path: root/include/udefs.h
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-03-27 11:39:12 -0400
committerFreya Murphy <freya@freyacat.org>2025-03-27 11:39:12 -0400
commit0ff301cda68669c59351e5854ce98f2cf460543f (patch)
treecfe8f976261962420ada64b821559b9da0a56841 /include/udefs.h
parentadd compile_flags.txt for clangd lsp (diff)
downloadcomus-0ff301cda68669c59351e5854ce98f2cf460543f.tar.gz
comus-0ff301cda68669c59351e5854ce98f2cf460543f.tar.bz2
comus-0ff301cda68669c59351e5854ce98f2cf460543f.zip
pull upstream changes, add auto formatting
Diffstat (limited to 'include/udefs.h')
-rw-r--r--include/udefs.h18
1 files changed, 10 insertions, 8 deletions
diff --git a/include/udefs.h b/include/udefs.h
index 50b6952..ff74578 100644
--- a/include/udefs.h
+++ b/include/udefs.h
@@ -20,11 +20,11 @@
// delay loop counts
-#define DELAY_LONG 100000000
-#define DELAY_MED 4500000
-#define DELAY_SHORT 2500000
+#define DELAY_LONG 100000000
+#define DELAY_MED 4500000
+#define DELAY_SHORT 2500000
-#define DELAY_STD DELAY_SHORT
+#define DELAY_STD DELAY_SHORT
#ifndef ASM_SRC
@@ -36,9 +36,11 @@
// a delay loop - kind of ugly, but it works
-#define DELAY(n) do { \
- for(int _dlc = 0; _dlc < (DELAY_##n); ++_dlc) continue; \
- } while(0)
+#define DELAY(n) \
+ do { \
+ for (int _dlc = 0; _dlc < (DELAY_##n); ++_dlc) \
+ continue; \
+ } while (0)
/*
** We need the list of program IDs so that we can request
@@ -58,7 +60,7 @@
** (following it with a semicolon).
*/
-#define USERMAIN(f) int f( int argc, char *argv[] )
+#define USERMAIN(f) int f(int argc, char *argv[])
/*
** User process controls.