mirror of
https://github.com/Interlisp/maiko.git
synced 2026-01-28 04:38:00 +00:00
Reformat all C source files with Clang-format in Google style w/ 100 col width.
This commit is contained in:
41
src/gc.c
Executable file → Normal file
41
src/gc.c
Executable file → Normal file
@@ -1,8 +1,6 @@
|
||||
/* $Id: gc.c,v 1.3 1999/05/31 23:35:29 sybalsky Exp $ (C) Copyright Venue, All Rights Reserved */
|
||||
static char *id = "$Id: gc.c,v 1.3 1999/05/31 23:35:29 sybalsky Exp $ Copyright (C) Venue";
|
||||
|
||||
|
||||
|
||||
/************************************************************************/
|
||||
/* */
|
||||
/* (C) Copyright 1989-95 Venue. All Rights Reserved. */
|
||||
@@ -17,7 +15,6 @@ static char *id = "$Id: gc.c,v 1.3 1999/05/31 23:35:29 sybalsky Exp $ Copyright
|
||||
|
||||
#include "version.h"
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
#include "lispemul.h"
|
||||
#include "lspglob.h"
|
||||
@@ -26,27 +23,25 @@ static char *id = "$Id: gc.c,v 1.3 1999/05/31 23:35:29 sybalsky Exp $ Copyright
|
||||
#include "gc.h"
|
||||
|
||||
/************************************************************
|
||||
|
||||
entry OP_gcref OPCODE[025]
|
||||
|
||||
1. alpha is ADDREF or DELREF, STKREF.
|
||||
TopOfStack is argued slot address.
|
||||
2. call gclookup with alpha and TopOfStack.
|
||||
3. if stk=0 and refcnt=0 of entry of HashMainTable,
|
||||
TopOfStack left alone.
|
||||
else replace TopOfStack with 0.
|
||||
4. increment PC by 2.
|
||||
entry OP_gcref OPCODE[025]
|
||||
|
||||
1. alpha is ADDREF or DELREF, STKREF.
|
||||
TopOfStack is argued slot address.
|
||||
2. call gclookup with alpha and TopOfStack.
|
||||
3. if stk=0 and refcnt=0 of entry of HashMainTable,
|
||||
TopOfStack left alone.
|
||||
else replace TopOfStack with 0.
|
||||
4. increment PC by 2.
|
||||
|
||||
***********************************************************/
|
||||
|
||||
void OP_gcref(void)
|
||||
{
|
||||
#ifdef TRACE
|
||||
printPC();
|
||||
printf("TRACE:OP_gcref()\n");
|
||||
#endif
|
||||
GCLOOKUPV(TopOfStack, Get_code_BYTE(PC+1), TopOfStack);
|
||||
PC+=2;
|
||||
return;
|
||||
}
|
||||
|
||||
void OP_gcref(void) {
|
||||
#ifdef TRACE
|
||||
printPC();
|
||||
printf("TRACE:OP_gcref()\n");
|
||||
#endif
|
||||
GCLOOKUPV(TopOfStack, Get_code_BYTE(PC + 1), TopOfStack);
|
||||
PC += 2;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user