home *** CD-ROM | disk | FTP | other *** search
/ ARM Club 3 / TheARMClub_PDCD3.iso / hensa / programming / oslib / oslib_1 / OSLib / ChangeLog next >
Encoding:
Text File  |  1995-09-07  |  18.9 KB  |  547 lines

  1. OSLib release 5.1
  2. ----- ------- ---
  3.  * Moved Service_RedrawingWindow from Window to Toolbox, and got the
  4. number right.
  5.  
  6.  * Draw_Tag is a byte, not a word.
  7.  
  8.  * CD_ControlBlock is 5 words, not 4.
  9.  
  10.  * Numberrange_set_bounds(), radiobutton_get_state() arguments corrected.
  11.  
  12.  * Help text on abstract types now transmitted into the C header.
  13.  
  14.  * |NULL| is now |0| in C (was |((void *) 0)|).
  15.  
  16.  * Some symbols defined in "drawfile.h" had the prefix |draw_|; changed
  17. to |drawfile_|.
  18.  
  19.  * Better definition of calibration table in ColourTrans.
  20.  
  21.  * Added |pdriver_draw_flags|.
  22.  
  23.  * Added class_PRINT_DBOX, adjuster_DECREMENT changed to
  24. adjuster_INCREMENT, popup_CLASS and stringset_CLASS corrected,
  25. numberrange gadget flags corrected.
  26.  
  27.  * Make sure the largest components of unions are at the end, to keep
  28. the ObjAsm header files correct. Not done for NetFS file server protocol
  29. blocks, so these should be reserved by giving the actual size needed in
  30. each case.
  31.  
  32.  * Systematic incorporation of PRM vol 5a material.
  33.  
  34.  * Hourglass_Smash has no argument.
  35.  
  36.  * Changed various |char *| components in toolbox objects to
  37. |toolbox_msg_reference| (which is a typedef for |char *| anyway), etc,
  38. in an attempt to represent their relocation behaviour. Deleted
  39. Gadget_Header, renamed |body| field as |gadget| and all gadget structure
  40. ending in 'object' to 'gadget.' Used Window_Window and Window_IconData
  41. instead of Wimp_Window and Wimp_IconData, since they are slightly
  42. different. Toolbox_Class now a short.
  43.  
  44.  * Use StrongHelp version 2.
  45.  
  46.  * Added obsolete OS_Byte and OS_Word calls (why?).
  47.  
  48. OSLib release 5.0
  49. ----- ------- ---
  50.  * Added PaletteV_BlankScreen, PaletteV_DimLCD, PaletteV_InvertLCD.
  51.  
  52. OSLib release 4.8
  53. ----- ------- ---
  54.  * Added the capability for more help text. Help text will be slowly
  55. added as it becomes apparent how best to do it.
  56.  
  57.  * Added Toolbox SWI's. Now there are (well) over 77 headers, split the
  58. lot into 4 parts and added SetVars to the distribution. After running
  59. it, use -IOS: on the cc command to pick up the headers, and link with
  60. OSLib:o.OSLib.
  61.  
  62.  * Added CD, CDFS, thanks to Simon Middleton of Uniqueway.
  63.  
  64.  * Fixed many Toolbox files based on an extensive going-over by Simon
  65. Middleton.
  66.  
  67.  * Added SCSI, SCSIFS.
  68.  
  69.  * Added WindowSupportExternal, fixed some faults in Window, Toolbox
  70. (thanks to that Simon again).
  71.  
  72.  * Corrected OSArgs_SetAllocation.
  73.  
  74.  * Added some help text.
  75.  
  76. OSLib release 4.7
  77. ----- ------- ---
  78.  * Added Freeway and ShareFS.
  79.  
  80.  * Added *lots* of new type names, most of which are defined as |int| or
  81. |bits|, and added 'Values:' section to StrongHelp on types. (See, e g,
  82. |wimp_colour|.) In most cases, this allows you in a single click to see
  83. all the values that are allowed in a given argument position. For
  84. example, given the prototype for os_read_mode_variable(), you can find out
  85. the names of the legal mode variables. Moved some filing system contants
  86. into FileSwitch to support this.
  87.  
  88.  * Turned more output arguments into return values, for efficiency
  89. reasons (mostly in OS, ColourTrans).
  90.  
  91.  * Added socket SWI's.
  92.  
  93.  * Added 16-bit Sound SWI's.
  94.  
  95.  * Added osbyte(), osbyte1(), osbyte2() for the useful special cases of
  96. OS_Bytes that take 3 arguments and return no result, or a result in R1
  97. or R2.
  98.  
  99.  * Added ColourTrans_ReturnWideEntries, OSSpriteOp_GivenWideEntries.
  100.  
  101.  * Corrected dosfs_layout_structure(), added dosfs_layout_structure_-
  102. given_size().
  103.  
  104.  * Name change for 2 OSSpriteOp flags words, which were confusing (now
  105. osspriteop_DESTINATION_COORDS, osspriteop_SOURCE_RECTANGLE).
  106.  
  107.  * Removed more spaces around # in C headers.
  108.  
  109.  * Buffer_InternalId returned by Buffer_InternalInfo.
  110.  
  111.  * ADFSDiscOp_FormatTrack takes a FileCore_TrackFormat, not a
  112. FileCore_Format.
  113.  
  114.  * Fixed bug in NetFS_SetObject types (operation type was not present).
  115.  
  116. OSLib release 4.6
  117. ----- ------- ---
  118.  
  119.  * Add |const| qualifiers in places where they are valid, i e, where the
  120. function takes a pointer to an object which it does not use to modify
  121. the object.
  122.  
  123.  * Made |filecore_disc_record| 4 bytes longer, since filecore_describe_-
  124. disc() fills in 64 bytes.
  125.  
  126.  * Changed int to char [4] in NetFS to avoid alignment problems.
  127.  
  128.  * Added OS_ChangedBoxState constants.
  129.  
  130.  * Moved most of the macros in "types.h" into a new "macros.h."
  131.  
  132.  * Added mode flags bits.
  133.  
  134.  * Corrected name of ColourTrans_ReadPalette's output argument: |spare|
  135. not |used|.
  136.  
  137.  * At this point, the RISC O S interface provided by OSLib consists of
  138.  
  139.        2122 symbolic constants
  140.         461 error numbers
  141.          16 event functions
  142.          78 message numbers
  143.         103 service call functions
  144.         983 swi functions (each in x and non-x form)
  145.         355 types
  146.          25 upcall functions
  147.          36 vector functions
  148.  
  149. in 68 header files.
  150.  
  151.  * Changed workspace from |byte *| to |void *| (for consistency) in
  152. ColourPicker and CompressJPEG. (|Buffer| should never be |const|;
  153. |workspace| should always be |void *|; |handle| should always be |int|.)
  154.  
  155.  * PaletteV_{Read,Write}Entries argument changed to |os_colour_number *|
  156. from |int *|.
  157.  
  158. OSLib release 4.5
  159. ----- ------- ---
  160.  
  161.  * Added SWI's MessageTrans_Dictionary, Joystick_ReadHalfWord,
  162. Joystick_CalibrateTopLeft, Joystick_CalibrateBottomRight, PDriver_JPEGSWI.
  163.  
  164.  * Added modules JPEG, CompressJPEG, Portable.
  165.  
  166.  * Corrected WimpTextOp flags.
  167.  
  168.  * Added type OSFile_InfoWords, useful for converting load and exec
  169. addresses into date and time.
  170.  
  171.  * Corrected NetFS_DoFSOpToGivenFS.
  172.  
  173.  * Added Wimp_GivenWindowAndIcon for Wimp_GetMenuState.
  174.  
  175.  * Added ColourPicker_DialogueIgnoreKeyPressed and
  176. ColourPicker_UpdateIgnoreKeyPressed.
  177.  
  178. OSLib release 4.4 (RISC O S 3.6 compatible)
  179. ----- ------- --- ----- - - --- -----------
  180.  
  181.  * Added |pdriver_FEATURE_DRAW_PAGE_FLAGS| and changed type of
  182. |pdriver_draw_page| first argument to |bits| for JPEG support.
  183.  
  184.  * Added osspriteop_verify_area().
  185.  
  186.  * (*Experimental*) Use inline SWI's where possible: 252 out of 2429 SWI
  187. veneers happen to be A P C S-conformant, and may be replaced by single
  188. SWI instructions in the caller. Only supported by Norcroft C release 5,
  189. but enabled by default: IF YOU ARE NOT USING NORCROFT C RELEASE 5 OR
  190. LATER, you must disable the feature by using the -D__swi option on the
  191. compiler command line (e g, 
  192.  
  193.       cc -D__swi c.progfile
  194.  
  195. with a hyphen, a capital 'D', 2 underscores, and 'swi' in lower case).
  196. You must also do this when using C++ via CFront (which doesn't
  197. understand it either). The reason this feature is experimental is that
  198. the relevant flavour of A P C S requires that function calls should
  199. preserve flags, which is not guaranteed (an inlinable SWI will always be
  200. an x-clear SWI, and will therefore definitely clear V). If this is a
  201. problem in practice, the feature will be reviewed.
  202.  
  203.  * Added new serial baud rates for RO 3.5 to "osserialop.h."
  204.  
  205.  * Changed copyright notice and deleted OS-specific references (e g, to
  206. P R M) to make DefMod more applicable to 3rd party modules.
  207.  
  208.  * Corrected output argument of OS_GSTrans.
  209.  
  210.  * upcall_sleep() returns |claimed| as its result, not in an output
  211. argument.
  212.  
  213.  * Change nested-inclusion method in assembler headers to allow faster
  214. assembly.
  215.  
  216.  * Added more wimp version symbols. Recommended use is
  217.  
  218.       if ((e = xwimpreadsysinfo_version (&version)) != NULL)
  219.       {  if (e->errnum == error_WIMP_BAD_SYS_INFO)
  220.             version = wimp_VERSION_RO2;
  221.          else
  222.             os_generate_error (e);
  223.       }
  224.  
  225.       if (version >= wimp_VERSION_RO35)
  226.          version = wimp_VERSION_RO35;
  227.                /*or any larger version you "know" about*/
  228.       else if (version >= wimp_VERSION_RO3)
  229.          version = wimp_VERSION_RO3;
  230.       else if (version >= wimp_VERSION_RO30)
  231.          version = wimp_VERSION_RO30;
  232.  
  233.       wimp_initialise (version, programme, messages, NULL, &task);
  234.  
  235. or the equivalent. This is the result of past bugs: versions of the Wimp
  236. after 350 will accept all versions numbers quite happily.
  237.  
  238.  * Added type |os_error_handler_buffer|.
  239.  
  240. OSLib release 4.3
  241. ----- ------- ---
  242.  
  243.  * Added dependency of "dragasprite.h" on "osspriteop.h."
  244.  
  245.  * |#Undef|fed each SWI name and SWI reason code before |#define|ing it.
  246.  
  247.  * Removed spurious ')' in comment for OS_SetPalette.
  248.  
  249.  * Changed names of arguments to Wimp_SetIconState.
  250.  
  251.  * SWI Wimp_Extend given the right number (but it's reserved anyway).
  252.  
  253.  * Added os_read_line_given_echo(), os_read_line_suppress_invalid(),
  254. os_read_line_given_echo_suppress_invalid().
  255.  
  256.  * Changed filetypes, load addrs, exec addrs and attrs to |bits| from |int|
  257. (to avoid undefined behaviour when shifting bits in and out of load and
  258. exec addrs). Affects "filecore.h," "filer.h," "fileraction.h,"
  259. "netfs.h," "osfile.h," "osfscontrol.h," "osgbpb.h," "osmodule.h,"
  260. "pdriver.h," "resourcefs.h," "squash.h," "wimp.h."
  261.  
  262.  * Corrected osfile_TYPE and osfile_TYPE_SHIFT.
  263.  
  264.  * Changed ColourPicker button types to |bits| from |int|.
  265.  
  266.  * Added OSFile attribute values.
  267.  
  268.  * Do not truncate file names at 10 characters in nested includes (as
  269. recommended in my own documentation!). Affects "pdriver.h" only.
  270.  
  271.  * Avoid C++ reserved words (asm, template in "os.h," delete in "netfs.h").
  272.  
  273.  * Remove accidentally duplicated parameter names ("dosfs.h,"
  274. "filecore.h," "font.h," "osspriteop.h," "pdriver.h," "ramfs.h,"
  275. "sharedclibrary.h") to avoid GCC errors.
  276.  
  277.  * Added flags values for osspriteop_set_pointer_shape().
  278.  
  279.  * Output argument of wimpreadsysinfo_tool_sprites() corrected (was
  280. |osspriteop_area *|, should be |osspriteop_area **|).
  281.  
  282.  * Various changes to ReadMe, including description of "abstract types."
  283.  
  284.  * Changed definition of |os_date_and_time| from 
  285.  
  286.       typdef struct {byte b [5];} os_date_and_time;
  287.  
  288. to 
  289.  
  290.       typedef byte os_date_and_time [5];
  291.  
  292. and the same for |netfs_date_and_time|. This may break code, but it is
  293. necessary to ensure that the alignment of structures that use it (e g,
  294. |osgbpb_system_info|) are correct in Norcroft C (which aligns
  295. structures, but not arrays, to word boundaries).
  296.  
  297.  * Added chip-type symbols to "osreadsysinfo.h."
  298.  
  299.  * Fixed minor typos in "devicefs.h," "netfs.h," "osfscontrol.h."
  300.  
  301.  * Added CMOS byte numbers for current year and alarm flags ("osbyte.h")
  302. and also recoded the macros in there to make it totally complete and
  303. consistent for all CMOS locations.
  304.  
  305.  * Corrected SWI numbers for FSLock, added error numbers.
  306.  
  307. OSLib release 4.2
  308. ----- ------- ---
  309.  
  310.  * Fixed bug in ADFS_DiscOp, FileCore_DiscOp, RamFS_DiscOp: first argument
  311. was being passed in R0, not R1.
  312.  
  313.  * Provided 3 functions for Territory_ReadSymbols, so you can call the right
  314. one for the type of result expected.
  315.  
  316.  * Changed the tag used for "abstract" typedefs so that it is different from
  317. the typedef name, for better interworking with GCC and C++ systems. Affects
  318. "buffer.h," "colourpicker.h," "devicefs.h," "dma.h," "econet.h," "os.h,"
  319. "osfscontrol.h," "osspriteop.h," "wimp.h."
  320.  
  321.  * Added wimp_CLOSE_MENU (to be used as an argument to wimp_create_menu())
  322. and wimp_NO_FONTS (to be used as an argument to wimp_load_template()) to
  323. "wimp.h."
  324.  
  325.  * Fixed bug in Filer_MessageOpenDirAt: display field was bits, not byte.
  326.  
  327. OSLib release 4.1
  328. ----- ------- ---
  329.  
  330.  * Wimpreadsysinfo_wimp_mode() returns |os_mode| rather than |int|.
  331.  
  332.  * Fix bug: some byte-wide entities were being written as whole words. This
  333. affects: xcolourtrans_return_gcol(), xcolourtrans_set_gcol(), xcolourtrans_-
  334. return_gcol_for_mode(), xcolourtrans_return_opp_gcol(), xcolourtrans_set_-
  335. opp_gcol(), xcolourtrans_return_opp_gcol_for_mode(), xcolourtrans_colour_-
  336. number_to_gcol(), xcolourtrans_set_text_colour(), xcolourtrans_set_opp_-
  337. text_colour(), xfont_find_font(), xfont_current_font(), font_current_-
  338. font(), xfont_future_font(), font_future_font(), xfont_current_rgb(), xfont_-
  339. future_rgb(), xos_read_point(), os_read_point(), xos_change_redirection(),
  340. os_change_redirection(), xosfind_openin(), xosfind_openout(), xosfind_-
  341. openup(), xosspriteop_read_pixel_colour(), osspriteop_read_pixel_colour(),
  342. xpdriver_select_job(), xpdriver_current_job(), xpdriver_select_-
  343. illustration(), xwimpreadsysinfo_font(), wimpreadsysinfo_font(),
  344. xwimpspriteop_read_pixel_colour(), wimpspriteop_read_pixel_colour().
  345.  
  346.  * Add note to ReadMe file about using NULL pointers as output arguments.
  347.  
  348.  * Duplicate NOP macro deleted from Hdr.Types.
  349.  
  350.  * Added OS_VartypeLiteralString, os_VARTYPE_LITERAL_STRING to OS headers.
  351.  
  352.  * Corrected Wimp error numbers (most were 1 off), added Error_WimpBadSlot,
  353. Error_WimpBadConfFont, Error_WimpNoSprites, Error_WimpBadPalFile2,
  354. Error_WimpBadSprites from RO 3.5, and 2 now-obsolete numbers (too many
  355. windows, division by 0).
  356.  
  357. OSLib release 4
  358. ----- ------- -
  359.  
  360.  * Second public release
  361.  
  362.  * Changed 'allpication' to 'application' in os.h (!).
  363.  
  364.  * Os_change_environment() now returns the old handler.
  365.  
  366.  * Error_SQUASH_BADPARAMETERS gains an underscore.
  367.  
  368.  * In osmodule.h, "context" arguments given more meaningful names
  369. (|module_no|, |instance_no|). Various osmodule_enumerate() calls return
  370. |module_no_out| as the result.
  371.  
  372.  * Added help files for StrongHelp, available on F1 in StrongEd (by
  373. default), and also in Zap C Mode if you bind MJE_HELPCONTEXT to F1 in the
  374. keys file.
  375.  
  376.  * Added OS_PlotVDU, changed argument types of OS_ChangeRedirection.
  377.  
  378.  * Fix bug: size of unions was being specified as 0 in assembler headers.
  379.  
  380.  * Added stuff about "types.h" in ReadMe.
  381.  
  382.  * Restructured: OSLib now contains only ChangeLog, ReadMe, h, Hdr and o.
  383. Separate archives contain Examples (PRM example code in C), CStrong
  384. (StrongHelp for the C interface) and CHelp (SrcEdit help for the C
  385. interface). A future release will contain AsmStrong and AsmHelp (for the
  386. assembler interface).
  387.  
  388. OSLib release 3
  389. ----- ------- -
  390.  
  391.  * Provide ReadMe and this file with the release.
  392.  
  393.  * Added descriptive text to each function.
  394.  
  395.  * "Abstract" types supported: used for Wimp_W, Wimp_T, Econet_RxCB,
  396. Econet_TxCB, etc.
  397.  
  398.  * IIC_Control, OS_Byte, OS_ClaimScreenMemory, Wimp_ClaimFreeMemory now
  399. classified as "reason codes."
  400.  
  401.  * Incorporated suggestions from Jonathan Roach for filecore.h.
  402.  
  403.  * Fix bug: bad code generated for Font_CacheAddr, Font_ReadDefn,
  404. Font_ReadScaleFactor, OSFSControl_ReadFileType, PDriver_PageSize,
  405. WimpSpriteOp_ReadPaletteSize and WimpSpriteOp_ReadSpriteSize.
  406.  
  407.  * Use |void| (instead of |byte|) for generic pointers, where appropriate.
  408.  
  409.  * Added more error numbers.
  410.  
  411.  * Renamed International as ServiceInternational.
  412.  
  413.  * Upgrade to RISC OS 3.5.
  414.  
  415.  * Added more message types to filer.h.
  416.  
  417.  * If there is a reasonable |context_out| argument, return it from the non-X
  418. form.
  419.  
  420.  * Moved "main" SWI's to their own headers (OS_Byte to osbyte.h, etc), InsV,
  421. RemV, CnpV to Buffer.
  422.  
  423.  * Sorted all OS SWI's into one of these groups: the CLI; communications;
  424. conversions; the environment; errors; input; interrupts; memory management;
  425. output; time and date; VDU drivers; vectors; and the rest of the kernel.
  426. Maybe os.h, which is somewhat monolithic, should be split up along these
  427. lines?
  428.  
  429.  * Added RemV, CnpV, but not properly yet.
  430.  
  431. OSLib release 2
  432. ----- ------- -
  433.  
  434.  * Now complete. All calls up to RISC OS 3.10 are included. (Medusa
  435. extensions will have to wait until the next release.)
  436.  
  437.  * In the header files, registers which are assigned fixed values in a
  438. function veneer (e g, reason codes) are listed in an 'Other notes'
  439. paragraph.
  440.  
  441.  * The section header (e g, for 'Constant definitions,' etc) is absent if the
  442. section is absent. The section headers are more eye-catching. (Suggested by
  443. James Bye.)
  444.  
  445.  * More SWI's return results in their non-X form.
  446.  
  447.  * Result registers are no longer in the argument list. In the previous
  448. OSLib, the prototype for |osmodule_alloc()| (which allocates memory from the
  449. R M A) was
  450.  
  451.       void osmodule_alloc (int size, byte **ptr);
  452.  
  453. now it is
  454.  
  455.       byte *osmodule_alloc (int size);
  456.  
  457. Also: OSFile functions return the object type; functions that create an
  458. object or open a file return the handle; SWI's that do a read operation
  459. return the flags, so you can write
  460.  
  461.       while ((os_bget (f, &c) & _C) == NONE)
  462.       {  ... code to do something with character |c| ...;
  463.       }
  464.       ... now at end of file ...;
  465.  
  466. Econet SWI's return the control block created, or the status of the operation
  467. performed; WIMP and PDriver SWI's that are called to loop through rectangles
  468. return the continuation status, so you can write a redraw loop as
  469.  
  470.       for (more = wimp_redraw_window (&r); more;
  471.             more = wimp_get_rectangle (&r))
  472.       {  ... redraw code here ...;
  473.       }
  474.  
  475.  * More consistent terminology: SWI's that fill buffers have two arguments,
  476. usually called |buffer| and |size|, and may return one of: a pointer to the
  477. next free byte (always called |end|); a number of bytes written (called
  478. |used|); or a count of buffer bytes not used (called |spare|). More
  479. consistency could only be derived by changing the OS, or doing some bizarre
  480. things in the veneer.
  481.  
  482.  * More of the module interface described: vectors, upcalls and events
  483. added, with prefix |os_...v|, |upcall_| and |event_| respectively. Error
  484. prefix changed to |error_|. Message prefix still |message_|, service call
  485. prefix |service_|. All other symbols defined in a module begin with the
  486. module prefix. Service calls and all the above now at the end. (These are
  487. only provided from the implementor's side, as it were: functions to generate
  488. the event, call the vector, make the service call, rather than to act on the
  489. event, claim the vector, or catch the service call.)
  490.  
  491.  * In the header files, C syntax is used for hexadecimal in comments.
  492.  
  493.  * In the header files, brackets removed from pointer declarations.
  494. (Suggested by James Bye.)
  495.  
  496.  * Spurious blank lines removed from header files.
  497.  
  498.  * To get -1 into a register Rx, used to generate the stupid MOV Rx, #&FF:
  499. ORR Rx, Rx, #&FF00: ORR Rx, Rx, #&FF0000: ORR Rx, Rx, #&FF00000. Now
  500. generates MVN Rx, #0 instead, and similarly for similar constants.
  501.  
  502.  * Assumes that a non-X SWI will never be called in SVC mode. This means that
  503. LR is preserved over the SWI instruction and reduces quite a lot of veneers
  504. to 2 instructions.
  505.  
  506.  * Uses that fact that registers not corrupted or returned by the SWI are
  507. preserved, to avoid stacking output addresses where possible. This also
  508. reduces the lengths and memory accesses of a lot of veneers. (Suggested by
  509. James Bye.)
  510.  
  511.  * OSFind changed: instead of (e g) 
  512.  
  513.       xosfind_openout_path (flags, file_name, path, file);
  514.  
  515. use
  516.  
  517.       xosfind_openout (osfind_PATH | flags, file_name, path, file);
  518.  
  519. In other words, the choice between {default path, no path, given path, path
  520. variable} is moved from the function name to the flags argument. (Suggested
  521. by Ian Johnson) Sadly, this cannot be done with the OSFile SWI's, because
  522. they are not related in a systematic way.
  523.  
  524.  * One library (o.OSLib) instead of lots. (Suggested by Kevin Welton.)
  525.  
  526.  * All code examples from the PRM (except volume 4) included in C versions.
  527.  
  528. OSLib release 1
  529. ----- ------- -
  530.  
  531.  * Name changed from SWILib. DefMod written to provide an automatic
  532. translator and veneer generator from module definition files.
  533.  
  534.  * Macros changed to functions. Original macro SWILib now only used to make
  535. DefMod (without this, you would have a circular build process with nowhere to
  536. start).
  537.  
  538.  * Many extra SWI's covered.
  539.  
  540.  * Wimp_Message structures now divided into two sorts: "system messages", in
  541. the union Wimp_Message, and others which may be provided by other modules
  542. (the WIMP also provides some of these).
  543.  
  544.  * X and non-X forms provided.
  545.  
  546.  * OS_F, Font_F instead of OS_Handle, Font_Handle.
  547.