• Re: 2023-12-16 19:00 UTC+0100 Enrico Maria Giordano

    From Enrico Maria Giordano@21:1/5 to All on Sat Dec 16 22:58:53 2023
    Il 16/12/2023 22:35, Reynaldo Henrique ha scritto:

    Enrico, could you fix the errors bellow:

    contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    Tomorrow I will review and try to fix them.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Reynaldo Henrique@21:1/5 to All on Sat Dec 16 18:35:43 2023
    Enrico,

    Em 16/12/2023 15:19, Enrico Maria Giordano escreveu:
    2023-12-16 19:00 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>
      * source\rtl\zlib\gzread.c
      * contrib\tiff\tif_config.h
      * contrib\tiff\tif_compress.c
        ! fixed compiler warnings


    Enrico, could you fix the errors bellow:

    contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    ** error 2 ** deleting obj\b32\hpdf_utils.obj

    Regards,

    Reynaldo Henrique

    --
    O software antivírus AVG realizou uma checagem de vírus neste e-mail. www.avg.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Sun Dec 17 11:35:15 2023
    Il 16/12/2023 22:35, Reynaldo Henrique ha scritto:

    Enrico, could you fix the errors bellow:

    contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    Try after this commit and let me know:

    2023-12-17 11:27 UTC+0100 Enrico Maria Giordano
    <e.m.giordano@emagsoftware.it>

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Reynaldo Henrique@21:1/5 to All on Sun Dec 17 23:49:21 2023
    Enrico,

    Enrico, could you fix the errors bellow:

    contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function
    'modff' with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function
    'modff' with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef
    'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ;
    in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in
    function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in
    function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to
    clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    Try after this commit and let me know:

    2023-12-17 11:27 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>


    Now everything is ok! great job!

    Reynaldo Henrique


    --
    O software antivírus AVG realizou uma checagem de vírus neste e-mail. www.avg.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Mon Dec 18 21:51:38 2023
    Enrico Maria Giordano wrote:


    Il 16/12/2023 22:35, Reynaldo Henrique ha scritto:

    Enrico, could you fix the errors bellow:

    contrib\hbhpdf\hpdf_utils.c:
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff' with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff' with no prototype in function HPDF_FToA
    Error E2108 contrib\hbhpdf\hpdf_utils.c 235: Improper use of typedef 'HPDF_UINT32' in function HPDF_FToA
    Error E2378 contrib\hbhpdf\hpdf_utils.c 235: For statement missing ; in function HPDF_FToA
    Error E2451 contrib\hbhpdf\hpdf_utils.c 235: Undefined symbol 'i' in function HPDF_FToA
    Error E2379 contrib\hbhpdf\hpdf_utils.c 235: Statement missing ; in function HPDF_FToA
    Warning W8084 contrib\hbhpdf\hpdf_utils.c 451: Suggest parentheses to clarify precedence in function HPDF_UInt16Swap
    *** 4 errors in Compile ***

    Try after this commit and let me know:

    2023-12-17 11:27 UTC+0100 Enrico Maria Giordano <e.m.giordano@emagsoftware.it>


    Many thanks Enrico. This code is copied from a 3rd party (https://github.com/libharu/libharu) so we should be very careful with making any modifications - on the system I tested (AL2023) it compiled without any issue. Which compiler had a problem with
    the code? I strongly suggest reviewing these changes and considering a sollution that avoid changess these sources directlly. Or else if we are sure the code is wrong we should instead report and suggest fixes to the original project.

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 11:02:40 2023
    Il 19/12/2023 03:51, Ron Pinkas ha scritto:

    Many thanks Enrico. This code is copied from a 3rd party (https://github.com/libharu/libharu) so we should be very careful with making any modifications - on the system I tested (AL2023) it compiled without any issue. Which compiler had a problem with
    the code?

    MSC

    I strongly suggest reviewing these changes and considering a sollution that avoid changess these sources directlly. Or else if we are sure the code is wrong we should instead report and suggest fixes to the original project.

    Please, feel free to make any changes. But test with MSC too.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 11:41:49 2023
    Il 19/12/2023 11:23, Enrico Maria Giordano ha scritto:

    Sorry, BCC32 and BCC64. They doesn't have modff(), only modf(). The
    other changes are merely casts.

    Sorry, again: only BCC32. Works fine with BCC64.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 11:23:21 2023
    Il 19/12/2023 11:02, Enrico Maria Giordano ha scritto:

    Many thanks Enrico. This code is copied from a 3rd party
    (https://github.com/libharu/libharu) so we should be very careful with
    making any modifications - on the system I tested (AL2023) it compiled
    without any issue. Which compiler had a problem with the code?

    MSC

    Sorry, BCC32 and BCC64. They doesn't have modff(), only modf(). The
    other changes are merely casts.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 13:06:28 2023
    Il 19/12/2023 12:44, Enrico Maria Giordano ha scritto:

    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA

    Ok, I stopped fixing the warnings for now, but the two above are errors because BCC32 does not have the function modff in any of its libraries.

    Do I have to revert my changes to hbhpdf directory?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 12:44:09 2023
    Il 19/12/2023 03:51, Ron Pinkas ha scritto:

    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff'
    with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff'
    with no prototype in function HPDF_FToA

    Ok, I stopped fixing the warnings for now, but the two above are errors
    because BCC32 does not have the function modff in any of its libraries.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 13:15:15 2023
    Il 19/12/2023 12:44, Enrico Maria Giordano ha scritto:
    Ok, I stopped fixing the warnings for now, but the two above are errors because BCC32 does not have the function modff in any of its libraries.

    This is the declarations of the two functions modf() and modff():

    double modf( double x, double * intptr );
    float modff( float x, float * intptr );

    I can't see the problem in using modf() instead of modff(), can you?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 14:59:46 2023
    Il 19/12/2023 13:58, Dlzc ha scritto:

    This is the declarations of the two functions modf() and modff():

    double modf( double x, double * intptr );
    float modff( float x, float * intptr );

    I'm dumb as far as this goes, but can you define modff() in your compiler script to point to modf(), just for BCC32? He wants to avoid altering the code, so...

    What do you mean with "compiler script"?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Tue Dec 19 10:29:14 2023
    Enrico Maria Giordano wrote:


    Il 19/12/2023 13:58, Dlzc ha scritto:

    This is the declarations of the two functions modf() and modff():

    double modf( double x, double * intptr );
    float modff( float x, float * intptr );

    I'm dumb as far as this goes, but can you define modff() in your compiler script to point to modf(), just for BCC32? He wants to avoid altering the code, so...

    What do you mean with "compiler script"?

    Enrico look at include/hbdefs.h

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Tue Dec 19 10:48:57 2023
    Enrico Maria Giordano wrote:

    Il 19/12/2023 12:44, Enrico Maria Giordano ha scritto:

    Warning W8065 contrib\hbhpdf\hpdf_utils.c 219: Call to function 'modff' with no prototype in function HPDF_FToA
    Warning W8065 contrib\hbhpdf\hpdf_utils.c 223: Call to function 'modff' with no prototype in function HPDF_FToA

    Ok, I stopped fixing the warnings for now, but the two above are errors because BCC32 does not have the function modff in any of its libraries.

    Do I have to revert my changes to hbhpdf directory?


    Yes we should revert, but it may be easier to simply copy again the
    unmodified soources from the original project, its basically all

    include/*.h and src/*.c from:

    https://github.com/libharu/libharu

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 16:57:41 2023
    Il 19/12/2023 16:29, Ron Pinkas ha scritto:

    Enrico look at include/hbdefs.h

    Ok, are there special requirements or I can just add the new code at the
    end (before #endif /* HB_DEFS_H_ */, of course)?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Tue Dec 19 11:01:51 2023
    Enrico Maria Giordano wrote:


    Il 19/12/2023 16:29, Ron Pinkas ha scritto:

    Enrico look at include/hbdefs.h

    Ok, are there special requirements or I can just add the new code at the
    end (before #endif /* HB_DEFS_H_ */, of course)?


    You can ADD the needed new defines at the end of the respective compiler section, following the example of existing code.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 16:59:53 2023
    Il 19/12/2023 16:48, Ron Pinkas ha scritto:

    Do I have to revert my changes to hbhpdf directory?

    Yes we should revert, but it may be easier to simply copy again the unmodified soources from the original project, its basically all

    include/*.h and src/*.c from:

    https://github.com/libharu/libharu

    Ok, I will do it.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 20:02:08 2023
    Il 19/12/2023 17:01, Ron Pinkas ha scritto:

    Ok, are there special requirements or I can just add the new code at the
    end (before #endif /* HB_DEFS_H_ */, of course)?

    You can ADD the needed new defines at the end of the respective compiler section, following the example of existing code.

    How long you don't read that file? :-) There is nothing similar to a
    "section" in there. Please have a look at it and tell me where I have to
    put the new function definition for BCC32.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Tue Dec 19 14:24:59 2023
    Enrico Maria Giordano wrote:


    Il 19/12/2023 17:01, Ron Pinkas ha scritto:

    Ok, are there special requirements or I can just add the new code at the end (before #endif /* HB_DEFS_H_ */, of course)?

    You can ADD the needed new defines at the end of the respective compiler section, following the example of existing code.

    How long you don't read that file? :-) There is nothing similar to a "section" in there. Please have a look at it and tell me where I have to
    put the new function definition for BCC32.


    Enrico,

    Here is an example of a "compiler secttion":

    #if defined( _MSC_VER )
    # if defined( _MSC_VER ) && _MSC_VER >= 1400
    # include <intrin.h>
    # endif
    #undef HAVE_INTTYPES_H
    #define HAVE_INTTYPES_H 0
    #if ( _MSC_VER >= 1600 )
    #undef HAVE_STDINT_H
    #define HAVE_STDINT_H 1
    #else
    #undef HAVE_STDINT_H
    #define HAVE_STDINT_H 0
    #if ( _MSC_VER > 1400 )
    #define HAVE_INTSAFE_H 1
    #endif
    #endif
    #else

    ---

    Also:

    /* workaround for BCC 5.8 bug */
    #if ( defined( __BORLANDC__ ) && __BORLANDC__ >= 0x582 )
    #undef INT32_MIN
    #define INT32_MIN ((int32_t) (-INT32_MAX-1))
    #undef INT64_MIN
    #define INT64_MIN (9223372036854775807i64-1)
    #undef INT64_MAX
    #define INT64_MAX 9223372036854775807i64
    #endif

    ----

    We typically use it to #define functtion replacement etc..

    Also in the rare case where we musst make some more source specific modifications we sometime may use an #include "config.h" with a comment
    that it is xHarbour addition.

    Ron

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 20:45:59 2023
    Il 19/12/2023 20:24, Ron Pinkas ha scritto:

    How long you don't read that file? :-) There is nothing similar to a
    "section" in there. Please have a look at it and tell me where I have to
    put the new function definition for BCC32.

    Enrico,

    Here is an example of a "compiler secttion":

    #if defined( _MSC_VER )
    # if defined( _MSC_VER ) && _MSC_VER >= 1400
    # include <intrin.h>
    # endif
    #undef HAVE_INTTYPES_H
    #define HAVE_INTTYPES_H 0
    #if ( _MSC_VER >= 1600 )
    #undef HAVE_STDINT_H
    #define HAVE_STDINT_H 1
    #else
    #undef HAVE_STDINT_H
    #define HAVE_STDINT_H 0
    #if ( _MSC_VER > 1400 )
    #define HAVE_INTSAFE_H 1
    #endif
    #endif
    #else

    Yes, but there are many of them scattered through the file. So, I ask
    again: can I add the new code at the end of the file? I took for granted
    the use of #ifdef. Please confirm.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Tue Dec 19 15:40:12 2023
    Enrico Maria Giordano wrote:


    Il 19/12/2023 20:24, Ron Pinkas ha scritto:

    How long you don't read that file? :-) There is nothing similar to a "section" in there. Please have a look at it and tell me where I have to put the new function definition for BCC32.

    Enrico,

    Here is an example of a "compiler secttion":

    #if defined( _MSC_VER )
    # if defined( _MSC_VER ) && _MSC_VER >= 1400
    # include <intrin.h>
    # endif
    #undef HAVE_INTTYPES_H
    #define HAVE_INTTYPES_H 0
    #if ( _MSC_VER >= 1600 )
    #undef HAVE_STDINT_H
    #define HAVE_STDINT_H 1
    #else
    #undef HAVE_STDINT_H
    #define HAVE_STDINT_H 0
    #if ( _MSC_VER > 1400 )
    #define HAVE_INTSAFE_H 1
    #endif
    #endif
    #else

    Yes, but there are many of them scattered through the file. So, I ask
    again: can I add the new code at the end of the file? I took for granted
    the use of #ifdef. Please confirm.


    MY preference is for ALL rulles related to a given compiler to be in
    just ONE secxtion except when broken placement order is required due to reliance on other code, bu in general yes, adding a section at the end
    is valid.

    In the specific case of libharu we might not be able to use this
    approach if given compilation unit does NOT #include our core #includes.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Tue Dec 19 23:42:37 2023
    Il 19/12/2023 21:40, Ron Pinkas ha scritto:

    Yes, but there are many of them scattered through the file. So, I ask
    again: can I add the new code at the end of the file? I took for granted
    the use of #ifdef. Please confirm.

    MY preference is for ALL rulles related to a given compiler to be in
    just ONE secxtion except when broken placement order is required due to reliance on other code, bu in general yes, adding a section at the end
    is valid.

    In the specific case of libharu we might not be able to use this
    approach if given compilation unit does NOT #include our core #includes.

    Right! OK, option cancelled. Can't we just define the missing modff()
    function in one of the rtl modules, guarded by #ifdef __BORLANDC__ etc.?

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ron Pinkas@21:1/5 to Enrico Maria Giordano on Wed Dec 20 11:42:25 2023
    Enrico Maria Giordano wrote:


    Il 19/12/2023 21:40, Ron Pinkas ha scritto:

    Yes, but there are many of them scattered through the file. So, I ask again: can I add the new code at the end of the file? I took for granted the use of #ifdef. Please confirm.

    MY preference is for ALL rulles related to a given compiler to be in
    just ONE secxtion except when broken placement order is required due to reliance on other code, bu in general yes, adding a section at the end
    is valid.

    In the specific case of libharu we might not be able to use this
    approach if given compilation unit does NOT #include our core #includes.

    Right! OK, option cancelled. Can't we just define the missing modff() function in one of the rtl modules, guarded by #ifdef __BORLANDC__ etc.?


    I am currently working on trying to fix MSVC, later we can review BCC
    and others.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Enrico Maria Giordano@21:1/5 to All on Wed Dec 20 18:46:37 2023
    Il 20/12/2023 17:42, Ron Pinkas ha scritto:

    Right! OK, option cancelled. Can't we just define the missing modff()
    function in one of the rtl modules, guarded by #ifdef __BORLANDC__ etc.?

    I am currently working on trying to fix MSVC, later we can review BCC
    and others.

    Ok, thank you. Keep us informed about the progress.

    --
    Enrico Maria Giordano

    http://www.emagsoftware.it
    http://www.emagsoftware.it/emgmusic
    http://www.emagsoftware.it/spectrum
    http://www.emagsoftware.it/tbosg

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)