123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- #include "decl.h"
- FILE* open_for_write (const char *filename)
- {
- char filefich[LONG_FNAME];
- sprintf(filefich,"%s/%s",include_dir,filename);
- return fopen(filefich, "w");
- }
- FILE* open_for_append (const char *filename)
- {
- char filefich[LONG_M];
- sprintf(filefich,"%s/%s",include_dir,filename);
- return fopen(filefich, "a+");
- }
- long int setposcurname(FILE *fileout)
- {
- fflush(fileout);
- return ftell(fileout);
- }
- long int setposcur()
- {
- return setposcurname(fortran_out);
- }
- void copyuse_0(const char *namemodule)
- {
- if ( IsTabvarsUseInArgument_0() == 1 )
- {
-
- fprintf(oldfortran_out," use %s\n", namemodule);
- }
- }
- void copyuseonly_0(const char *namemodule)
- {
- if (firstpass == 0 && IsTabvarsUseInArgument_0() == 1 )
- {
-
- fprintf(oldfortran_out," use %s , only : \n", namemodule);
- }
- }
|