From: Rafał Długołęcki Date: Sun, 14 Jul 2013 20:49:11 +0000 (+0200) Subject: Removed dummy GNU function declarations. X-Git-Tag: 3.1~43 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=4642c27118a4e636efd3b0ac8083f3df53353363;p=vlp.git Removed dummy GNU function declarations. --- diff --git a/src/int/runsys.c b/src/int/runsys.c index d4047fb..310ba4f 100644 --- a/src/int/runsys.c +++ b/src/int/runsys.c @@ -28,17 +28,15 @@ or Andrzej Salwicki ======================================================================= */ -#include "depend.h" -#include "genint.h" -#include "int.h" -#include "process.h" -#include "intproto.h" - - -/* Initialize memory structures for objects, main object and a few goodies - * more. +#include "depend.h" +#include "genint.h" +#include "int.h" +#include "process.h" +#include "intproto.h" + +/** + * Initialize memory structures for objects, main object and a few goodies more. */ - void runsys() { word apt, i; @@ -99,10 +97,10 @@ transfer() */ #endif } - -void initprocess(pix, prot, father) /* Initialize process descriptor */ -word pix, prot; -procaddr *father; +/** + * Initialize process descriptor + */ +void initprocess(word pix, word prot, procaddr *father) { procdescr *p; protdescr *ptr; @@ -182,9 +180,10 @@ fprintf(stderr," from (%d,%d,%d)\n",father->node,father->pix,father->mark); } -bool member(virt, am) -virtaddr *virt; -word *am; +/** + * + */ +bool member(virtaddr *virt, word *am) { *am = M[ virt->addr ]; /* if (virt->mark == M[ virt->addr+1] ) fprintf(stderr, "Yes"); @@ -192,9 +191,10 @@ word *am; return (virt->mark == M[ virt->addr+1 ]); } - -void update(am, ah) /* Update DISPLAY */ -word am, ah; +/** + * Update DISPLAY + */ +void update(word am, word ah) { word t1, t2, t3, t4, t5, t6; protdescr *ptr; @@ -223,8 +223,10 @@ word am, ah; } } - -void loosen() /* Loosen DISPLAY */ +/** + * Loosen DISPLAY + */ +void loosen() { word t1, t2, t3; protdescr *ptr; @@ -244,11 +246,15 @@ void loosen() /* Loosen DISPLAY */ } } +/** + * To count trace messages in line + */ +static int tracecnt = 0; -static int tracecnt = 0; /* To count trace messages in line */ - -void trace(lineno) /* Trace the program if debug mode */ -word lineno; +/** + * Trace the program if debug mode + */ +void trace(word lineno) { thisp->trlnumber = lineno; if (debug && lineno > 0) @@ -265,9 +271,10 @@ word lineno; rpc2(); /* check for RPC message */ } - -void endrun(status) -int status; +/** + * + */ +void endrun(int status) { MESSAGE msg; G_MESSAGE m;