
contents of amigainibase.m

the main amigaini object / structure

(----) OBJECT amigaini
(   0)   filename:PTR TO CHAR   ; String with the filename
(   4)   error:INT              ; error value is set after commands
(   6)   list:PTR TO LONG       ; array of strings (the whole file)
(  10)   length:INT             ; number of strings in the file
(  12)   groupstart:INT         ; position of 1st item in a group
(  14)   groupend:INT           ; position of last item
(  16)   paramstr:PTR TO CHAR   ; string with seperator for settings
                                  ie. for 'arg1=5' it should be "="
(  20)   arraystr:PTR TO CHAR   ; array seperator
(  24)   arraytype:INT          ; numeric array or string array
(  26)   casesense:INT          ; case sensitivity
(----) ENDOBJECT     /* SIZEOF=28 */


/* amigaini.error values: */

      INIE_Ok=0,          ; No error
      INIE_File=1         ; File not found
      INIE_Length=2,      ; File Length is zero
      INIE_Open=3,        ; Can't open file
      INIE_Header=4,      ; header not found
      INIE_Item=5,        ; Item was not found
      INIE_Mem=6,         ; Ran out of memory
      INIE_Added=7        ; Item was not found and Auto Added
      INIE_Command=8      ; Your Error (eg, forgot to supply INIA_Name)
      INIE_UnKnown=9      ; UnKnown error
		INIE_GotHeader=10   ; Group name was already found
		INIE_ErrorTextNum=11; wrong number of items in a new Msg array
		                     INIV_NumOfErrorTexts is the correct amount
		                     (including trailing null)



      AMIGAINI_VMIN=6    ; Minimum version for library


/* Preset values */
      INIV_AutoAdd_Off=0 ;
      INIV_AutoAdd_On=1  ;

      INIV_Case_Ignore=0 ;
      INIV_Case_Sense=1  ;

      INIV_Type_Blank    ; for Ini_AddItem() , adds a blank line
      INIV_Type_Array=2  ;
      INIV_Type_Int=0    ;
      INIV_Type_Str=1    ;

      INIV_NomOfErrorTexts =13 ; length that ai.errortexts should be


AMIGAINI_NAME = "amigaini.library"

