Pārlūkot izejas kodu

Added some comments and removed some Lint complaints

ceriel 40 gadi atpakaļ
vecāks
revīzija
d068cf64b3
1 mainītis faili ar 8 papildinājumiem un 1 dzēšanām
  1. 8 1
      util/LLgen/src/machdep.c

+ 8 - 1
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/");