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

dev/e/AmigaLib.lha

Mirror:Random
Showing: ppc-amigaos icongeneric icon
No screenshot available
Short:Amiga.lib as E modules
Author: m88jrh at ecs.ox.ac.uk (Jason R. Hulance)
Uploader:m88jrh ecs ox ac uk (Jason R Hulance)
Type:dev/e
Architecture:m68k-amigaos
Date:1995-04-12
Download:dev/e/AmigaLib.lha - View contents
Readme:dev/e/AmigaLib.readme
Downloads:733

AmigaLib
========

Amiga E modules of many of the amiga.lib functions.
These translations are Copyright (C) 1995, Jason R. Hulance.
The original amiga.lib is Copyright (C) 1985-1992, Commodore-Amiga Inc.

You are free to use these modules in your programs, whether they are freeware
or commercial.  However, if you want to distribute any of this archive you
must include it all, unmodified, together with this file.


Contents
--------

  argarray.m:
    PROC argArrayInit(str=0)
    PROC argArrayDone()
    PROC argInt(tt,entry,defaultval)
    PROC argString(tt,entry,defaultstring)

  boopsi.m:
    PROC callHookA(h,obj,msg)
    PROC coerceMethodA(cl,obj,msg)
    PROC doMethodA(obj,msg)
    PROC doSuperMethodA(cl,obj,msg)
    PROC setSuperAttrsA(cl,obj,msg)

  cx.m:
    PROC freeIEvents(events)
    PROC hotKey(description,port,id)
    PROC invertString(str,km)
    PROC invertStringRev(str,km)
    PROC userFilter(tt,action_name,default_descr)

  interrupts.m:
    PROC addTOF(i,p,a)
    PROC remTOF(i)
    PROC waitbeam(pos)

  io.m:
    PROC beginIO(ioreq)
    PROC createExtIO(port,ioSize)
    PROC deleteExtIO(ioReq)
    PROC createStdIO(port)
    PROC deleteStdIO(ioReq)

  lists.m:
    PROC newList(mlh)

  ports.m:
    PROC createPort(name,pri)
    PROC deletePort(port)

  random.m:
    PROC fastRand(num)
    PROC rangeRand(num)

  tasks.m:
    PROC createTask(name,pri,initPC,stackSize)
    PROC deleteTask(tc)

  time.m:
    PROC timeDelay(unit,seconds,micros)

There are also a number of test programs, which show how to use many of
the functions.


Documentation
-------------

The documentation on amiga.lib serves as adequate documentation of these
functions, with the following observations:

  argarray.m:
    o   argArrayInit() takes only an optional string.  This can be a string
      of arguments like the E global "arg" (which is the default).  This
      string is only used if "wbmessage" is NIL, and is *altered* if used
      (i.e., the result is a manipulation of the string, and so by default
      "arg" will be affected).  If you don't like this, pass this function
      a copy of your arguments string (and be careful not to free it until
      you've finished with the result of this function).

  boopsi.m:
    o   callHookA() is like CallHookPkt() from utility.library except it does
      not require the utility.library to be open!
    o   setSuperAttrsA() replaces the stack-based (varargs) function
      SetSuperAttrs().  setSuperAttrsA() takes a pointer to a Boopsi message
      as its third argument (so you would usually use a typed list).

  cx.m:
    o   invertStringRev() is like InvertString() except it does not require
      you to reverse the string to be inverted.  See testcx.e.
    o   userFilter(tt, action_name, default_descr) creates a CxFilter object
      with a description string taken from the tooltype defined by
      "action_name" in the tooltypes array "tt" (which is usually the result
      of a call to argArrayInit()).  If the tooltype is not found then the
      "default_descr" is used instead.

  interrupts.m:
    o  waitbeam(pos) waits until the VBeam position is at least "pos".

  tasks.m:
    o   createTask() can has slightly enhanced error checking if you are
      running V37+.

The main reason for the creation of these modules was my translations of the
RKRM examples.  These should provide even more useful documentation.


Contents of dev/e/AmigaLib.lha
 PERMSSN    UID  GID    PACKED    SIZE  RATIO     CRC       STAMP          NAME
---------- ----------- ------- ------- ------ ---------- ------------ -------------
[generic]                 1518    3553  42.7% -lh5- 4152 Apr  8  1995 AmigaLib.readme
[generic]                  490     820  59.8% -lh5- c1e9 Mar 30  1995 Modules/AmigaLib/argarray.m
[generic]                  297     572  51.9% -lh5- 1192 Mar 30  1995 Modules/AmigaLib/boopsi.m
[generic]                  946    1970  48.0% -lh5- 2c76 Mar 30  1995 Modules/AmigaLib/cx.m
[generic]                  201     282  71.3% -lh5- 9eb9 Apr  1  1995 Modules/AmigaLib/interrupts.m
[generic]                  332     522  63.6% -lh5- d0a6 Mar 30  1995 Modules/AmigaLib/io.m
[generic]                   85     112  75.9% -lh5- 7b92 Mar 30  1995 Modules/AmigaLib/lists.m
[generic]                  406     608  66.8% -lh5- fd1c Mar 30  1995 Modules/AmigaLib/ports.m
[generic]                  242     366  66.1% -lh5- 1965 Mar 30  1995 Modules/AmigaLib/random.m
[generic]                  419     614  68.2% -lh5- a517 Apr  3  1995 Modules/AmigaLib/tasks.m
[generic]                  292     444  65.8% -lh5- ee34 Mar 30  1995 Modules/AmigaLib/time.m
[generic]                 1438    2304  62.4% -lh5- 797e Mar 30  1995 Src/AmigaLib/testargarray
[generic]                  396     689  57.5% -lh5- 3343 Mar 19  1995 Src/AmigaLib/testargarray.e
[generic]                  331     537  61.6% -lh5- f9b0 Apr  8  1995 Src/AmigaLib/testargarray.info
[generic]                 2014    3804  52.9% -lh5- 2740 Mar 30  1995 Src/AmigaLib/testcx
[generic]                 1052    2670  39.4% -lh5- c93a Apr  1  1995 Src/AmigaLib/testcx.e
[generic]                  684    1012  67.6% -lh5- 4af9 Apr  1  1995 Src/AmigaLib/testinterrupts
[generic]                  208     342  60.8% -lh5- ca9a Apr  1  1995 Src/AmigaLib/testinterrupts.e
[generic]                  831    1192  69.7% -lh5- 9f07 Apr  1  1995 Src/AmigaLib/testinterrupts2
[generic]                  451     798  56.5% -lh5- 1828 Apr  4  1995 Src/AmigaLib/testinterrupts2.e
[generic]                 1197    1920  62.3% -lh5- 93d6 Mar 30  1995 Src/AmigaLib/testtime
[generic]                  163     204  79.9% -lh5- 273e Mar 27  1995 Src/AmigaLib/testtime.e
---------- ----------- ------- ------- ------ ---------- ------------ -------------
 Total        22 files   13993   25335  55.2%            Apr 12  1995
Page generated in 0.02 seconds
Aminet © 1992-2024 Urban Müller and the Aminet team. Aminet contact address: <aminetaminet net>