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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user