home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
544b.lha
/
Chemesthetics_v2.06
/
Source
/
SrcReadMe!
< prev
next >
Wrap
Text File
|
1991-09-06
|
4KB
|
99 lines
Hints for programmers: (updated 18-Jun-91)
---------------------
First, all source files have been compressed into an archive (Source.LZH)
using Lharc V1.30 (AmigaLibDisk 404). I have included Lharc V1.30 on my
distribution disk. However I don't know if all PD-distributors leave it
there, so you may be have to get elsewhere. All other (older) versions of
Lharc should also work, though I have not tested them.
All source files have been compiled with the SAS/Lattice C 5.10a Compiler.
All files use 32-bit-integer variables so I hope there is no problem in
this aspect.
Besides source-file-specific headerfiles (*.h) which are located in the
source root directory (on the same level as the *.c files they belong to),
I provide all the needed header files for the req.library, the arp.library
and the iff-reader (ilbmw.c). Because I don't want to bother you with my
filesystem-structure, I compressed them into the source archive
(Source.LZH) *WITHOUT* pathnames. After extracting them, they are all
located in the source root directory. This causes problems when you compile
certain files (for example ilbmw.c), because the include files are supposed
to be located in a subdirectory (in this case iff/). You may either change
the #include lines in the problem files or you may create a subdirectory
INCLUDE below the source root directory and include the -i option in the
lmkfile at the CFLAGS. If you do so I recommend to organize the include
files as follows:
source/
*.c source-files
*.h other header files
include/
clib/
req_protos.h
libraries/
reqbase.h
arpbase.h
iff/
compiler.h
gio.h
iff.h
ilbm.h
packer.h
req.h
A lmkfile is provided, so Lattice users could simply type LMK and the
compile process will run automatically.
Be careful in changing rev.c, as it has a special format that is needed by
other files.
All source files come with German comments and (partly) German names for
routines and variables. If you would like to know what they mean, well, try
learning German, it's a fascinating language.
The newer files are ANSI-C compatible and they are compiled with the -ca
option of the compiler. The current version is a mixture of ANSI and
non-ANSI files, I intend to make ALL files ANSI compatible in the future.
After purchasing the SAS/Lattice compiler I read something called #pragmas.
It is said that it reduces the code and time for calling Amiga library
routines. I built in these pragmas in the newer files using the proto/
includes. I didn't have time to do this everywhere, so may be later
versions will be smaller and faster. Let's see...
I have some problems in writing a convenient message-receiving routine.
Sometimes the GURU will visit you if you select a menu or close a window. I
reduced the frequency of the Guru's appearance by using ARP's
CloseWindowSafely() instead of Intuition's CloseWindow(), but it still
happens sometimes. PLEASE: If anyone has a solution for this please let me
know. I looked thru lots of computer magazines but I didn't find anything
else than my Nachricht() (-> Message) routine.
I use my own (well actually it comes from QuickReq.c from AmigaLibDisk457)
_main() routine to get rid of that f***ing console window that is opened by
all files compiled with the Lattice compiler (take that away Lattice, it
must be up to the programmer to include this!). The console window that is
now opened is my own (see OpenRevWin in extra.c) and I need it to display
certain messages.
I intended to provide a makefile for Aztec C users and to embedd Lattice
specific things in #ifdefs but I didn't have the time yet. If somebody does
this, I would like to get a copy of this. If nobody does I may do it on my
own somewhere in time... Let's wait'n'see!
Have fun!
Joerg
P.S. None of the files may be touched, changed, deleted or distributed on
own series of Stefan Ossowski PD-Versand, Rainer Wolf PD-Versand
(OASE), Markt & Technik Verlag AG and Karstadt AG!
Greetinx to Bernstein Softworks (Risk, Dragon Cave) for their RIGHT
attitude concerning some kind of PD distributors.