AminetAminet
Search:
84782 packages online
About
Recent
Browse
Search
Upload
Setup
Services

dev/basic/const.lha

Mirror:Random
Showing: ppc-morphos icongeneric icon
No screenshot available
Short:Enum style, lists to constants
Author: Braneloc at mirex.demon.co.uk
Uploader:Braneloc mirex demon co uk
Type:dev/basic
Architecture:m68k-amigaos
Date:1996-04-04
Download:dev/basic/const.lha - View contents
Readme:dev/basic/const.readme
Downloads:670

Ultra small program for converting lists of things into constant lists for
HiSoft Basic 2, a bit like enums, but const is much nicer :-)

First make a nice list of anything you want to turn into a list of stuff.
This list can contain anything, but make sure it is all valid as variable
names.  You do not need to include any nasty '%' signs.  I really hate
typing them.

Then run 'constant-ize <filename>' and a few seconds later you will suddenly
have a couple of new files in the same directory.

'<filename>_h.bas' is the real file of usefullness.  It contains the list of
constants you want to include in your program.  You can then do stuff
without remembering tedious stuff like offsets.

'<filename>_sub.bas' is a quick subroutine that may come in handy.  I like
loading a string array with the same contents as the constants so I can
print what it is without doing a million 'if' statements.

 _   _   _        _     _   _     |  Ferengi Rule of Acquisition #202
|_> |_| |_| |\ | |_ |  | | /   |  |  
|_> | \ | | | \| |_ |_ |_| \_  .  |  The justification for profit is profit.
                                  |  
Please email me at: Braneloc@mirex.demon.co.uk
                               
Alternative email: Braneloc@draught.demon.co.uk (DraughtFlow BBS,
01707 328484, free internet email, 16 CD's online, no download limit..)


Contents of dev/basic/const.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                  269     628  42.8% -lh5- d00e Jan 25  1996 const.info
[generic]                  742    1469  50.5% -lh5- b84d Mar  2  1996 const.readme
[generic]                   89     101  88.1% -lh5- 03b6 Jan 25  1996 const/cars
[generic]                  142     247  57.5% -lh5- 5c99 Jan 25  1996 const/cars_h.bas
[generic]                  119     156  76.3% -lh5- e1a0 Jan 25  1996 const/cars_sub.bas
[generic]                 4339   10792  40.2% -lh5- d056 Jan 25  1996 const/Constant-ize
[generic]                 1049    2048  51.2% -lh5- 19d8 Dec 19  1995 const/constant-ize.doc
[generic]                  225     468  48.1% -lh5- 1541 Jan 25  1996 const/constant-ize.doc.info
[generic]                 4339   10792  40.2% -lh5- d056 Jan 25  1996 const/Constantize
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total         9 files   11313   26701  42.4%            Apr  3  1996
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>