  | 85180 packages online |
|
 |
| dev/c/focs.lha | | | | No screenshot available |
|
This is a little tool I made for all programmers who need to call SetFunction()
from C (or C++). It is intended to make life easier and to make source files
more
readable.
Usually, when one want to use SetFunction(), he/she must look in .fd files or
#pragma statements to find the LVO of each function he/she want to patch (*).
This
leads to source files difficult to understand and maintain, since each call to
SetFunction() looks like:
oldfunction=SetFunction(Execbase,-690,myfunction);
where you can't understand very well which function is being patched, unless you
add tons of comment lines to each call.
(*)= All the system libraries offsets exist through amiga.lib, but 3rd party
libraries don't. This is why I made FOCS!
FOCS (that stands for Function Offset Creator for SetFunction() ), takes a file
with LVOs and creates nice C header (.h) files, with a symbol definition for
each
function found in the LVO file.
So the example above will look like:
oldfunction=SetFunction( Execbase, FOS_FreeVec, myfunction );
Nice, isn't it ?
FOCS version 1.0 support the following file formats:
- SAS C #pragma files
- StormC #pragma files (similar but not the same stuff).
- FD files (those who started it all).
- GCC inline's (hopefully... only the new, preprocessor based format is
supported).
|
Contents of dev/c/focs.lha PERMSSN UID GID PACKED SIZE RATIO CRC STAMP NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic] 17855 33516 53.3% -lh5- 53bc Oct 26 1997 focs
[generic] 1971 4009 49.2% -lh5- 2288 Oct 26 1997 focs.doc
[generic] 4910 7144 68.7% -lh5- 5351 Oct 26 1997 focs.pch
[generic] 778 1483 52.5% -lh5- 5e29 Oct 26 1997 focs.readme
---------- ----------- ------- ------- ------ ---------- ------------ -------------
Total 4 files 25514 46152 55.3% Oct 27 1997
|
|
|
 |
| Page generated in 0.01 seconds |
Aminet © 1992-2026 Urban
Müller and
the Aminet team.
Aminet contact address: <aminet aminet net> |
| Try new and exciting server! |