|
| void | addwindow (void) |
| void | delwindow (void) |
| void | addmenu (void) |
| void | delmenu (void) |
| void | addicon (void) |
| void | addicon3 (void) |
| void | delicon (void) |
| void | appevent (void) |
| void | appeventcode (void) |
| void | appeventid (void) |
| void | appfile (void) |
| void | appfilemine (void) |
| void | appfiles (void) |
| void | applock (void) |
| void | appmessage (void) |
| void | appmsgport (void) |
| void | appeventidcmp (void) |
| | AppEventIDCMP: the value AppEvent returns for a message, $800000 (inline: MOVE.l $800000,d0; also in Blitz mode).
|
| void | riapplib_libinit (void) |
| void | riapplib_libfinit (void) |
| void | idchk (void) |
| void | winchk (void) |
| void | delwinchk (void) |
| static void | closelibs (void) |
| static void | libinit_c (void) |
| | init: workbench, dos and icon.library V37, then the message port and the block (768 bytes, MEMF_CLEAR).
|
| static void | delapp (ULONG *table, int kind) |
| static void | libfinit_c (void) |
| | finit: replies the messages, removes every App object, deletes the port, frees the block and closes the libraries.
|
| static ULONG | appmsgport_c (void) |
| | AppMsgPort: the library's message port.
|
| static ULONG | appmessage_c (void) |
| | AppMessage: the current AppMessage (of the last AppEvent).
|
| static ULONG | applock_c (void) |
| | AppLock: the lock of the current AppFile, the argument NextAppFile or AppFile read last (the first argument before any read).
|
| static ULONG | appevent_c (void) |
| | AppEvent: replies to the current message and gets the next one.
|
| static ULONG | appfiles_c (void) |
| | AppNumFiles: the number of arguments (am_NumArgs) of the current message.
|
| static ULONG | appeventid_c (void) |
| | AppEventID: the id (am_ID) of the current message.
|
| static ULONG | appeventcode_c (void) |
| | AppEventType: the kind of the current message.
|
| static ULONG | appfile_c (void) |
| | NextAppFile: the full path of the current message's next argument, at a3.
|
| static ULONG | appfilemine_c (LONG num) |
| | AppFile(num): the full path of argument num (1 = the first), as NextAppFile; NextAppFile's position stays.
|
| static BB_BOOL | delmenu_c (LONG id) |
| | DelAppMenu(id): removes the App menu item with this id.
|
| static BB_BOOL | addmenu_c (LONG id, STRPTR text) |
| | AddAppMenu(id,text$): adds an item to Workbench's Tools menu.
|
| static BB_BOOL | addicon_c (LONG id, STRPTR text, STRPTR name) |
| | AddAppIcon (after the libflag test): the icon from GetDiskObject(filename$) at iconx/icony, added as an App icon.
|
| static BB_BOOL | addicon2_c (LONG id, STRPTR text, STRPTR name) |
| | AddAppIcon(id,text$,filename$): an App icon at a position of Workbench's choice (NO_ICON_POSITION).
|
| static BB_BOOL | addicon3_c (LONG id, STRPTR text, STRPTR name, ULONG x, ULONG y) |
| | AddAppIcon(id,text$,filename$,x,y): an App icon at x,y.
|
| static BB_BOOL | delicon_c (LONG id) |
| | DelAppIcon(id): removes the App icon and frees its DiskObject.
|
| static BB_BOOL | addwindow_c (struct Window **wobj, const ULONG *args) |
| | AddAppWindow(windownumber): makes a window an App window (id = the window number).
|
| static BB_BOOL | delwindow_c (LONG n) |
| | DelAppWindow(windownumber): removes the App window.
|
| static void | idchk_c (ULONG id) |
| | The error check of the commands with an id (debugger only): AddAppMenu, DelAppMenu, AddAppIcon (both forms) and DelAppIcon.
|
| static void | winchk_c (const ULONG *args) |
| | The error check of AddAppWindow (debugger only): its window number is on the argument stack (push), -4(a2).
|
| static void | delwinchk_c (ULONG n) |
| | The error check of DelAppWindow (debugger only).
|
NextAppFile: the full path of the current message's next argument, at a3.
NameFromLock of the argument's lock, '/' unless the path ends with ':', then the name. Fixed (#521): the lock (Workbench's) stays in the message (the original unlocked and cleared it unless the path ended with ':'), and an empty path gets no '/' (the original's test read the byte before the string). a3 ends on the 0 (fixed, #519: the original left it behind the 0). The argument becomes AppLock's (fixed, #1103), also if NameFromLock fails.
- Returns
- d0: the length, 0 if there is no message, no argument left or NameFromLock fails
AppLock: the lock of the current AppFile, the argument NextAppFile or AppFile read last (the first argument before any read).
Fixed (#1103): the original returned the first argument's lock whatever NextAppFile or AppFile had read; RIAppLib.guide: "the lock
associated with the current AppFile". A read that finds no argument (none left, a number out of range) leaves it. Fixed (#522): a message without arguments has no lock (the original read the first WBArg without looking at am_NumArgs).
- Returns
- d0: the lock, 0 if there is no message or it has no arguments
The error check of the commands with an id (debugger only): AddAppMenu, DelAppMenu, AddAppIcon (both forms) and DelAppIcon.
Fixed (#1097), not in the original (riapplib had no error check area): the id indexes the tables of 16 entries without a check. The release code is unchanged (an invalid argument).
Errors: "App id must be 0 to 15".
- Parameters
-
finit: replies the messages, removes every App object, deletes the port, frees the block and closes the libraries.
Fixed (#525): the current message and then the whole queue are replied (the original replied to the queue only if a message was current). Fixed (#524): the slot of each object is cleared (the original cleared the long at byte offset index*4/4).
init: workbench, dos and icon.library V37, then the message port and the block (768 bytes, MEMF_CLEAR).
Sets libflag -1 when all is there, 0 otherwise (the commands then do nothing). Fixed (#1143): the port (CreateMsgPort, exec V36) is made only after the three V37 libraries opened, so on Kickstart 1.x init fails quietly (the original made the port first: behind exec's jump table, a crash at the program's start). Fixed (#526): on a failure the libraries opened before are closed and msgport is cleared (the original left them open and kept the deleted port for AppMsgPort). Fixed (#1099): no current message (the original kept the one of the run before, which its finit had replied to, for a second run from the editor).
| void winchk_c |
( |
const ULONG * | args | ) |
|
|
static |
The error check of AddAppWindow (debugger only): its window number is on the argument stack (push), -4(a2).
Fixed (#1097), not in the original: a window number of 16 or higher (a valid Blitz window with a larger Maximum) indexed past the AppWindow table into the AppIcon table. The release code is unchanged.
Errors: "App window number must be 0 to 15".
- Parameters
-
| args | a2: the argument stack, -4(a2) = the window number |