1 /* Loglan82 Compiler&Interpreter
2 Copyright (C) 1981-1993 Institute of Informatics, University of Warsaw
3 Copyright (C) 1993, 1994 LITA, Pau
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
16 =======================================================================
26 Define WSIZE to 2 or 4 !
30 extern FILE *file_arr[];
33 #define sunit FILE *f=stdout; if((int)(*unit)!=0L) f=file_arr[*unit];
36 void ffputnl_(unit) word *unit;{
40 void ffputff_(unit) word *unit;{
44 void ffputspaces_(unit,count) word *unit,*count;{
46 fprintf(f,"%*s",(int)(*count),"");
48 void ffputi_(unit,i,count) word *unit,*i,*count;{
50 fprintf(f,"%*d",(int)(*count),(int)(*i));
52 void ffputcs_(unit,s,count) word *unit; long count; char *s;{
54 fprintf(f,"%*.*s",(int)count,(int)count,s);
56 void ffputs_(unit,s,count,one) word *unit,*count; char *s; long one;{
58 fprintf(f,"%*.*s",(int)(*count),(int)(*count),s);
60 void ffgets_(unit,s,count,one) word *unit,*count; char *s; long one;{
61 FILE *f=stdin; if((int)(*unit)!=0) f=file_arr[*unit];
62 fgets(s,(int)(*count),f);
64 void ffexit_(){ exit(0); }