home *** CD-ROM | disk | FTP | other *** search
- /* makebase Generiert C-Programme aus der Libraryliste */
-
- CALL OPEN(infile,"library.list","r")
-
- DO FOREVER
- line=READLN(infile)
- IF line=="" THEN BREAK
-
- PARSE VALUE line WITH basename libname .
- PARSE VALUE libname WITH libshort ".library"
-
- CALL OPEN(outfile,"libbases/"libshort".c","w")
- CALL WRITELN(outfile,"/* Machine-generated C-file- do not edit ! */")
- CALL WRITELN(outfile,"#include <stabs.h>")
- CALL WRITELN(outfile,"extern char __"libshort"name[];")
- CALL WRITELN(outfile,"void *"basename"[2]={ 0l,__"libshort"name };")
- CALL WRITELN(outfile,"ADD2LIB("basename");")
- CALL CLOSE(outfile)
-
- CALL OPEN(outfile,"libnames/"libshort".c","w")
- CALL WRITELN(outfile,"/* Machine-generated C-file- do not edit ! */")
- CALL WRITELN(outfile,"char __"libshort"name[]="""libname""";")
- CALL CLOSE(outfile)
- END
-
- CALL CLOSE(infile)
-