1
0
mirror of https://github.com/Interlisp/maiko.git synced 2026-01-28 12:39:28 +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

52
src/optck.c Executable file → Normal file
View File

@@ -1,17 +1,15 @@
/* $Id: optck.c,v 1.3 1999/05/31 23:35:40 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
/* $Id: optck.c,v 1.3 1999/05/31 23:35:40 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
static char *id = "$Id: optck.c,v 1.3 1999/05/31 23:35:40 sybalsky Exp $ Copyright (C) Venue";
/* optck.c
*
* This example is almost same as one shown in
* SunOS 4.1 Release Manual: 4.2. Known Problems With SunOS Release 4.1 Products.
*
*
* Compiling this file with -O or -O2 level and executing, if assembler optimizes
* incorrectly, "wrong" message is printed out to stdout.
*
*
*/
/************************************************************************/
/* */
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
@@ -26,32 +24,26 @@ static char *id = "$Id: optck.c,v 1.3 1999/05/31 23:35:40 sybalsky Exp $ Copyrig
#include "version.h"
int boothowto = 1;
int boothowto = 1;
int main(void) {
int unit;
int
main(void)
{
int unit;
if (boothowto & 1) {
retry:
unit = -1;
while (unit == -1) {
if (unit != -1) {
printf("wrong");
exit(1);
}
unit = 0;
foo(&unit);
}
} else {
unit = 0;
goto retry;
}
}
foo(int *unitp)
{
if (boothowto & 1) {
retry:
unit = -1;
while (unit == -1) {
if (unit != -1) {
printf("wrong");
exit(1);
}
unit = 0;
foo(&unit);
}
} else {
unit = 0;
goto retry;
}
}
foo(int *unitp) {}