1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-02-10 10:10:21 +00:00

Remove extra semicolons, convert #define x() {...} to do {...} while (0) style (#444)

* Remove extra semicolons, convert #define x() {...} to do {...} while (0) style

* Fix missing brace in INIT-specific definition of init_kbd_startup
This commit is contained in:
Nick Briggs
2022-10-05 09:07:17 -07:00
committed by GitHub
parent f5b17b0e63
commit cdffa541ef
57 changed files with 413 additions and 400 deletions

View File

@@ -17,9 +17,6 @@
/** User defined subrs here. Do NOT attempt to use this unless you FULLY
understand the dependencies of the LDE architecture. **/
#define DO_UFN \
{ return (-1); }
int UserSubr(int user_subr_index, int num_args, unsigned *args) {
int result = 0;
@@ -29,14 +26,15 @@ int UserSubr(int user_subr_index, int num_args, unsigned *args) {
{
int i;
for (i = 0; i < num_args; i++) printf("debug: arg[%d]: 0x%x\n", i, args[i]);
};
}
switch (user_subr_index) {
case 0:
printf("sample UFN\n");
result = args[0];
break;
default: DO_UFN;
default:
return (-1); /* DO UFN */
}
return (result);