1. 17 May, 2022 16 commits
  2. 16 May, 2022 3 commits
    • Ben Avison's avatar
      Enable GitLab CI/CD · 0c546b02
      Ben Avison authored
      Detail:
      * Enable GitLab CI
      * Address issues identified by CI jobs, excluding those related to cppcheck
      * Enable GitLab CD for stubs (used implicitly when linker is invoked by cc)
      
      Version 6.12. Tagged as 'RISC_OSLib-6_12'
      0c546b02
    • Ben Avison's avatar
      Auto-create empty directories · 27fc5b5f
      Ben Avison authored
      Detail:
      * Remove empty directories and have the Makefiles create them
      * Consolidate and complete .gitignore
      27fc5b5f
    • Ben Avison's avatar
      Cross-compilation support · a3bda86e
      Ben Avison authored
      Detail:
      * GNUmakefile: add translation of Makefile to GNU make / cross-compilation
        requirements (this component is too non-standard to make much use of the
        shared makefiles)
      * Makefile: comment out rules for objects that aren't used for any targets,
        for clarity; don't clean files that are never created
      * Various: change to using OS-agnostic filename path syntax
      * Various: ensure case matches for filename paths (don't assume host filing
        system is case-agnostic)
      a3bda86e
  3. 22 Nov, 2021 1 commit
    • Stuart Swales's avatar
      [535] fminf(x,y) / fmaxf(x,y) corrupt result for equal non-zero parameters · ebee6f7d
      Stuart Swales authored
      Detail:
        fminf(x,y) / fmaxf(x,y) corrupted the result when x==y and x!=0.0 due to
        ANDing/ORRing a single precision register with the high word of a double
        precision register pair when fixing up signs for mixed +/- 0 parameters
        in an analogous fashion to fmax/fmin (which are correct).
      
      Version 6.11. Tagged as 'RISC_OSLib-6_11'
      ebee6f7d
  4. 13 Nov, 2021 2 commits
  5. 06 Feb, 2021 1 commit
  6. 05 Sep, 2020 1 commit
    • Ben Avison's avatar
      Enable modulewrapped applications to use ResGen · 073ebc25
      Ben Avison authored
      This utilises a weak symbol import so that if the symbol `Resources` resolves
      at link time, it is called to discover the address of the resource file data
      block(s) to be installed in ResourceFS. If this fails, it drops back to using
      the `s.ResFiles` source file as previously, thereby ensuring compatibility
      with components that have not yet been converted to use ResGen.
      
      Since `Resources` is the default area name (and thus discovery function name)
      used for ResGen in the shared makefiles, this makes it as simple as possible
      to utilise it.
      
      Version 6.08. Tagged as 'RISC_OSLib-6_08'
      073ebc25
  7. 06 Jul, 2020 1 commit
    • Jeffrey Lee's avatar
      Adjust 26 vs. 32 bit mode checks · fa89c230
      Jeffrey Lee authored
      As noted in https://www.riscosopen.org/forum/forums/9/topics/15359, MRS
      instructions which are executed in user mode may return unknown values
      for the CPSR E, A, I, F and M fields on ARMv8 CPUs. At the moment the
      only observed deviation from normal behaviour is that CPUs which lack
      AArch32 privileged-mode support may return zero for the fields. This was
      found to confuse some 26 vs. 32 bit mode checks in CLib.
      
      Clearly we're a long way away from having a version of RISC OS which can
      run on a CPU that lacks AArch32 privileged mode support, but we can
      still try and make sure user-mode applications are compatible with them.
      So this change adjusts the mode checks in the stubs and overlay manager
      so that programs linked with them should function correctly (TEQ is now
      used instead of MRS)
      
      Note that once we do start porting RISC OS to one of the troublesome
      CPUs, there are many more potentially troublesome MRS's within the
      module code that will need adjusting, especially if CPUs start returning
      values other than zero.
      
      Version 6.07. Tagged as 'RISC_OSLib-6_07'
      fa89c230
  8. 09 May, 2020 2 commits
    • Jeffrey Lee's avatar
      txtar: Support extended scroll requests · d3688b4c
      Jeffrey Lee authored
      Use extended scroll requests to handle mouse wheel scrolling, to avoid
      the "thumbing" code getting confused and thinking the user is dragging
      the scrollbar (the "thumbing" mode of scrolling isn't desirable for the
      mouse wheel, because it largely ignores the requested scroll distance)
      
      This change allows Edit & SrcEdit (and anything else using txtar) to
      handle the scroll wheel better, now that the WindowScroll module is
      controlling things.
      
      Version 6.06. Tagged as 'RISC_OSLib-6_06'
      d3688b4c
    • ROOL's avatar
      Extra rlib sprite function for ROM stubs · f41e4118
      ROOL authored
      Detail:
        Export sprite_put_mask_scaled when UROM.
        Also, delete sprite_put_greyscaled() which has been unimplemented in SpriteExtend since RISC OS 3.60.
      Admin:
        Required by Paint bounty.
      
      Version 6.05. Not tagged
      f41e4118
  9. 06 May, 2020 4 commits
    • ROOL's avatar
      Fix switch to wrong mode in AbortFindHandler · ae6fe48b
      ROOL authored
      Detail:
        Was (trying to) clear the M32 flag in {CONFIG}=32.
        Ref: https://www.riscosopen.org/forum/forums/1/topics/15080?page=1#posts-99441
        Makefile updated to only pass rlib's txt switch when building rlib.
      
      Version 6.05. Tagged as 'RISC_OSLib-6_05'
      ae6fe48b
    • ROOL's avatar
      Add C11/C18 library functions · eef62ec8
      ROOL authored
      Detail:
        alloc.c - Add aligned_alloc(). Since softloaded versions of the C library can't rely on OS_Module 24 being available there is a fallback implementation for older kernels.
        stdlib.c - Add quick_exit() and at_quick_exit(). Also fix bug in _Exit; a missing loop pre-decrement led to only checking a single (out of array bounds!) vector.
        time.c - Add timespec_get().
        cl_entry2 - 4 new functions added to the stubs.
        Reduce spare CLib static workspace to absorb the quick_exit() handlers, remove the unused words from armsys.c so they're all accounted for in one space.
      Admin:
        In order that the functions can be defined in the stubs now (despite not having a compiler to support C11/C18) they are enabled when 'DDE' is defined so that C library builds work.
      eef62ec8
    • ROOL's avatar
      CLib header updates · 948e0838
      ROOL authored
      Detail:
        assert.h - definition of static_assert
        complex.h - definition of CMPLX[F|L]
        float.h - various implementation defines
        stdio.h - hide gets() as it's been withdrawn
        wchar.h - guard mbstate_t as it can also be in uchar.h, fix missing __valist definition
      Admin:
        In order that the functions can be defined in the stubs now (despite not having a compiler to support C11/C18) they are enabled when 'DDE' is defined so that C library builds work.
      948e0838
    • ROOL's avatar
      Add fopen's exclusive mode · 68fc9d43
      ROOL authored
      Detail:
        Remove undocumented 't' mode which forcibly timestamped files, since other operating systems use this to denote a text file (as opposed to 'b' binary mode).
        Add 'x' mode per ISO9899:2018
        * only applies to 'w' mode files (not 'r' or 'a')
        * file must not exist prior to creation
        * beyond that we rely on RISC OS' policy of only allowing a file to be opened once for writing as our exclusivity
        Also fix bug in check for 'Protected disc' error, which only trigged for fsnumber_ADFS (8).
      Admin:
        Tested in a ROM build with a simple test harness.
      68fc9d43
  10. 22 Apr, 2020 1 commit
  11. 20 Jul, 2019 1 commit
  12. 29 Jun, 2019 2 commits
  13. 09 Jun, 2019 1 commit
    • ROOL's avatar
      Build fix · 20984a33
      ROOL authored
      Detail:
        Add missing function draw_create_diag() to the ROM version of RISC_OSLib, required by Paint-2_24 and later.
        To keep ROM footprint to a minimum, export only that function; this also avoids adding static workspace and needing to increase RlibSpace.
      
      Version 6.01. Tagged as 'RISC_OSLib-6_01'
      20984a33
  14. 17 Mar, 2019 1 commit
    • ROOL's avatar
      Build fix · 6982f5cc
      ROOL authored
      Detail:
        Add wimp_autoscroll to rlib entries.
      
      Version 6.00. Not tagged
      6982f5cc
  15. 16 Mar, 2019 1 commit
    • ROOL's avatar
      CLib and rlib header updates · 0c846685
      ROOL authored
      Detail:
        Export fenv.h (omitted in error).
        Add FP_FAST_FMAL and FP_FAST_FMA defines per C standard
        Submission for ARMv7 Compiler bounty.
      
        Add Wimp_AutoScroll supporting function to rlib.
        Export various related defines for autoscroll use.
        Submission for Clipboard Support bounty.
      
      Version 6.00. Tagged as 'RISC_OSLib-6_00'
      0c846685
  16. 09 Feb, 2019 1 commit
    • ROOL's avatar
      Fix to iconbar menu X offset · 2f520d7e
      ROOL authored
      Detail:
        The fix applied to all menus in event.c revision 4.6 didn't take into account the offset of -16 already applied to iconbar menus.
      Admin:
        Tested with Draw-1_31.
      
      Version 5.99. Tagged as 'RISC_OSLib-5_99'
      2f520d7e
  17. 26 Jan, 2019 1 commit
    • Robert Sprowson's avatar
      Various fixes · a8f233bb
      Robert Sprowson authored
      colourtran.c: Swap round arg names to colourtran_colournumbertoGCOL to match prototype.
      txtar.c: Avoid incorrect use of strncat buffer limit, and possible unterminated string after strncpy, by reexpressing using snprintf.
      txtedit.c: Avoid incorrect use of strncat buffer limit by reexpressing using snprintf. Avoid potential NULL pointer dereference by moving the filename copy inside the 'if' which confirms it's non-NULL.
      txtfind.c: Remove repeated check of repls being valid. Free repls on error. Free pat on error.
      xfersend.c: Fix potential out of bounds array access (of leaf[]) if the leafname length exceeds the space in the Wimp message.
      Found by cppcheck static analysis.
      
      txtopt.c/h: Sprinkle in some consts.
      event.c: Open menu at the Style Guide approved offset of 64.
      xfersend.c: Remove redundant check of xfersend__filename being NULL in xfersend__suggest_leaf() as all paths leading to it being called ensure the allocation exists (also, it would have strcpy'd garbage due to malloc not clear...
      a8f233bb