From: ceriel Date: Tue, 9 Oct 1984 10:13:46 +0000 (+0000) Subject: Added some comments and removed some Lint complaints X-Git-Tag: release-5-5~6056 X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=d068cf64b3d803f8160409c1403b9d023dc10417;p=ack.git Added some comments and removed some Lint complaints --- diff --git a/util/LLgen/src/machdep.c b/util/LLgen/src/machdep.c index 545447f2c..409d04ffb 100644 --- a/util/LLgen/src/machdep.c +++ b/util/LLgen/src/machdep.c @@ -42,18 +42,25 @@ extern RENAME(); extern string libpath(); UNLINK(x) string x; { + /* Must remove the file "x" */ + unlink(x); /* systemcall to remove file */ } RENAME(x,y) string x,y; { + /* Must move the file "x" to the file "y" */ + unlink(y); if(link(x,y)!=0)fatal(1,"Cannot link to %s",y); unlink(x); } string -libpath(s) char *s; { +libpath(s) string s; { + /* Must deliver a full pathname to the library file "s" */ + static char buf[100]; + string strcpy(), strcat(); strcpy(buf,EM_DIR); strcat(buf,"/lib/LLgen/");