Delila Program: fpcfix

fpcfix program

Documentation for the fpcfix program is below, with links to related programs in the "see also" section.

{   version = 1.06; (* of fpcfix.p 2016 Jul 20}

(* begin module describe.fpcfix *)
(*
name

   fpcfix: add assign to pascal programs

synopsis
   fpcfix(input: stdin; output: out)

files

   input:  a Pascal or Delila program

   output: the same program ready to be compiled by fpc

description

   The Free Pascal Compiler (fpc) compiler does not have a --transparent-file-names flag like
   gpc.  This connects the file name in the program statement to the
   local external file by the same name.  It is an essential feature
   for Delila programs since they use so many files at once.

   This program inserts

   assign(afile,'afile');

   in front of each reset(afile) and rewrite(afile).
   The fpc

see also

   Free Pascal Compiler website: http://www.freepascal.org/

   Description of program that removes comments:
   nocom.p

   Other comment manipulation programs:
   decom.p
   codecomments.p

   fpcfix removes extra lines in the code.  To keep extra lines,
   remove the line with 'NO EQUALLINES' on it.  A script to do this
   is mkfpcfixequal  which generates the fpcfixequal.p program.

author

   Thomas Dana Schneider

bugs

technical notes

   Some programs have comment starts inside quotes.  fpcfix
   is now smart enough to avoid changing these.

   In an earlier version of the progrm (before 2012 Nov 14) the
   comments were left as 'nibbons' that have no contents.  This allowed
   one to see exactly where the comments were.  One can remove these
   using Unix sed:

   set asterisk = '*'
   fpcfix < commented.p |\
   sed -e 's/{}//g' | \
   sed -e "s/(\$asterisk\$asterisk)//g" | \
   cat > commentless.p

   Since most of the time one doesn't want the extra empty, the
   program was changed to remove the nibbons.

*)
(* end module describe.fpcfix *)
{This manual page was created by makman 1.45}


{created by htmlink 1.62}