mirror of
https://github.com/Interlisp/maiko.git
synced 2026-03-01 17:35:54 +00:00
Reformat all C source files with Clang-format in Google style w/ 100 col width.
This commit is contained in:
54
src/array4.c
Executable file → Normal file
54
src/array4.c
Executable file → Normal file
@@ -1,10 +1,6 @@
|
||||
/* This is G-file @(#) array4.c Version 2.7 (10/12/88). copyright Xerox & Fuji Xerox */
|
||||
static char *id = "@(#) array4.c 2.7 10/12/88";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
|
||||
@@ -19,9 +15,6 @@ static char *id = "@(#) array4.c 2.7 10/12/88";
|
||||
|
||||
#include "version.h"
|
||||
|
||||
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* A R R A Y 4 . C */
|
||||
@@ -42,7 +35,6 @@ static char *id = "@(#) array4.c 2.7 10/12/88";
|
||||
|
||||
/*** N_OP_aset1 -- op 267 (new-value array index) ***/
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* N _ O P _ a s e t 1 */
|
||||
@@ -51,34 +43,32 @@ static char *id = "@(#) array4.c 2.7 10/12/88";
|
||||
/* */
|
||||
/************************************************************************/
|
||||
|
||||
LispPTR N_OP_aset1(register LispPTR data, LispPTR arrayarg, register int inx)
|
||||
{
|
||||
register int type;
|
||||
register OneDArray *arrayblk;
|
||||
register LispPTR base;
|
||||
register int new;
|
||||
register int index;
|
||||
LispPTR N_OP_aset1(register LispPTR data, LispPTR arrayarg, register int inx) {
|
||||
register int type;
|
||||
register OneDArray *arrayblk;
|
||||
register LispPTR base;
|
||||
register int new;
|
||||
register int index;
|
||||
|
||||
/* verify array */
|
||||
if (GetTypeNumber(arrayarg) != TYPE_ONED_ARRAY) ERROR_EXIT(inx);
|
||||
arrayblk = (OneDArray *)Addr68k_from_LADDR(arrayarg);
|
||||
/* verify array */
|
||||
if (GetTypeNumber(arrayarg) != TYPE_ONED_ARRAY) ERROR_EXIT(inx);
|
||||
arrayblk = (OneDArray *)Addr68k_from_LADDR(arrayarg);
|
||||
|
||||
/* test and setup index */
|
||||
N_GetPos(inx, index, inx);
|
||||
if (index >= arrayblk->totalsize) ERROR_EXIT(inx);
|
||||
index += arrayblk->offset;
|
||||
/* test and setup index */
|
||||
N_GetPos(inx, index, inx);
|
||||
if (index >= arrayblk->totalsize) ERROR_EXIT(inx);
|
||||
index += arrayblk->offset;
|
||||
|
||||
/* setup typenumber */
|
||||
type = 0xFF & arrayblk->typenumber;
|
||||
/* setup typenumber */
|
||||
type = 0xFF & arrayblk->typenumber;
|
||||
|
||||
/* setup base */
|
||||
base = arrayblk->base;
|
||||
/* setup base */
|
||||
base = arrayblk->base;
|
||||
|
||||
/* disp on type */
|
||||
aset_switch(type, inx);
|
||||
|
||||
/* disp on type */
|
||||
aset_switch(type, inx);
|
||||
|
||||
doufn: ERROR_EXIT(inx);
|
||||
|
||||
} /* end N_OP_aset1() */
|
||||
doufn:
|
||||
ERROR_EXIT(inx);
|
||||
|
||||
} /* end N_OP_aset1() */
|
||||
|
||||
Reference in New Issue
Block a user