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

Reformat all C source files with Clang-format in Google style w/ 100 col width.

This commit is contained in:
Nick Briggs
2017-05-28 18:08:18 -07:00
parent 691645d048
commit 156c3292f8
167 changed files with 40520 additions and 48069 deletions

42
src/usrsubr.c Executable file → Normal file
View File

@@ -1,10 +1,7 @@
/* $Id: usrsubr.c,v 1.3 1999/05/31 23:35:46 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
/* $Id: usrsubr.c,v 1.3 1999/05/31 23:35:46 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved
*/
static char *id = "$Id: usrsubr.c,v 1.3 1999/05/31 23:35:46 sybalsky Exp $ Copyright (C) Venue";
/************************************************************************/
/* */
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
@@ -24,26 +21,27 @@ static char *id = "$Id: usrsubr.c,v 1.3 1999/05/31 23:35:46 sybalsky Exp $ Copyr
/** 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);}
#define DO_UFN \
{ return (-1); }
int UserSubr(int user_subr_index, int num_args, int *args)
{
int result = 0;
int UserSubr(int user_subr_index, int num_args, int *args) {
int result = 0;
/* *** remove the printf when finished debugging your user subr *** */
/* *** remove the printf when finished debugging your user subr *** */
printf("debug: case: 0x%x, args: 0x%x\n",user_subr_index, num_args);
{int i;
for (i = 0; i < num_args; i++) printf("debug: arg[%d]: 0x%x\n",i,args[i]);
};
printf("debug: case: 0x%x, args: 0x%x\n", user_subr_index, num_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;
}
switch (user_subr_index) {
case 0: printf("sample UFN\n"); result = args[0]; break;
default: DO_UFN;
}
return(result);
return (result);
}