fpc/utils/fprcp
joost 66b0f3d9fb * Added fpmake.pp files for utilities
git-svn-id: trunk@20752 -
2012-04-07 20:06:14 +00:00
..
comments.pp * old logs removed and tabs fixed 2002-09-07 15:40:30 +00:00
demo.h
demo.pp * log truncated 2000-02-09 16:44:14 +00:00
demo.rc
expr.pp *avoid negative value for big const 2006-01-13 08:35:05 +00:00
fpmake.pp * Added fpmake.pp files for utilities 2012-04-07 20:06:14 +00:00
fprcp.pp *preprocessor can't read files with proc/func declaration 2005-12-29 16:07:01 +00:00
Makefile Add x86_64-openbsd target in Makefiles 2012-04-06 16:49:08 +00:00
Makefile.fpc * forgot to commit 2007-01-27 11:44:02 +00:00
pasprep.pp *preprocessor can't read files with proc/func declaration 2005-12-29 16:07:01 +00:00
Readme.txt *preprocessor can't read files with proc/func declaration 2005-12-29 16:07:01 +00:00
use_demo.bat * old logs removed and tabs fixed 2002-09-07 15:40:30 +00:00

This binary with source code is released to public domain.
The utility can be compiled by Turbo Pascal (but 16-bit version
cannot handle files greather than 64K!), Delphi or Free Pascal.
fprcp.exe extracts from C header and Pascal files included into
resource scripts numerical constants and replaces these constants
to its values in resource script. Modified resource script is writing
to stdout.

fprcp.exe can be used as preprocessor by windres GNU-win32 utility.
It was tested with windres 2.9.4 successfully.
syntax: 
windres --preprocessor fprcp.exe [another switches].

Notes:
1) current fprcp does not support typecasting and operations with
non-numeric constants;
2) Old versions of windres cannot create .res files;
3) in fprcp also source code written by Lars Fosdal 1987 and
   released to the public domain 1993 was used
4) updated to accept defines.inc
   parser was expecting body for procedure/function declaration

files:
readme.txt   - this file

USE_DEMO.BAT |
DEMO.RC      |
DEMO.PP      - demo files
DEMO.H       |

COMMENTS.PP  |
PASPREP.PP   |
FPRCP.PP      - source code
EXPR.PP      |

fprcp.exe     - executable