1
0
mirror of https://github.com/weiju/amiga-stuff synced 2025-12-08 14:58:33 +00:00

moved dontshout from separate repository to here

This commit is contained in:
Wei-ju Wu
2016-01-16 14:00:10 -08:00
parent 5759ab2658
commit 943c6f9373
10 changed files with 1048 additions and 0 deletions

16
dontshout/args.h Normal file
View File

@ -0,0 +1,16 @@
#ifndef __ARGS_H__
#define __ARGS_H__
/*
* These are replacement functions for ArgArrayInit(), ...
* which are usually provided in amiga.lib, but can not be expected
* to be available in AmigaOS 4.x.
* These parse parameters of the form <SETTING>=<VALUE> regardless
* whether the tool was started from command line or workbench.
*/
extern STRPTR *ArgArrayInit2(int argc, char **argv);
extern void ArgArrayDone2(void);
extern STRPTR ArgString2(UBYTE **tt, STRPTR entry, STRPTR defaultstr);
extern LONG ArgInt2(UBYTE **tt, STRPTR entry, LONG defaultval);
#endif