• max/max.h problems under Watcom

    From Serguei Trouchelle@2:550/4077.101 to All on Sat Nov 15 21:35:34 2003
    [...] maximus\max\max.h(673): Error! E1009: Expecting ')' but found '('
    [...] maximus\max\max.h(673): Error! E1009: Expecting ',' but found '('
    [...] maximus\max\max.h(673): Error! E1094: Function cannot return a function [...] maximus\max\max.h(673): Error! E1044: Variable '__attribute__' has incomplete type
    [...] maximus\max\max.h(673): Error! E1026: Invalid declarator
    [...] maximus\max\max.h(673): Error! E1009: Expecting ',' but found ')'
    [...] maximus\max\max.h(673): Error! E1026: Invalid declarator
    [...] maximus\max\max.h(673): Error! E1009: Expecting ',' but found ')'
    [...] maximus\max\max.h(673): Error! E1026: Invalid declarator
    [...] maximus\max\max.h(681): Error! E1023: Storage class of parameter must be register or unspecified
    [...] maximus\max\max.h(681): Error! E1024: Declared symbol 'zstr' is not in parameter list
    [...] maximus\max\max.h(699): Error! E1009: Expecting ')' but found '('
    [...] maximus\max\max.h(699): Error! E1009: Expecting ',' but found '('
    [...] maximus\max\max.h(699): Error! E1094: Function cannot return a function [...] maximus\max\max.h(699): Error! E1024: Declared symbol '__attribute__' is not in parameter list
    [...] maximus\max\max.h(699): Error! E1009: Expecting ',' but found ')'
    [...] maximus\max\max.h(699): Error! E1026: Invalid declarator
    [...] maximus\max\max.h(699): Error! E1009: Expecting ',' but found ')'

    Changes from Scott's distribution are like this:

    674c673
    < };
    ---
    } __attribute__((packed, aligned(2)));

    etc.

    I think this must be something like

    #ifdef __GNUC__
    } __attribute__((packed, aligned(2)));
    #else
    };
    #endif


    Serguei Trouchelle
    --- timEd/386 1.10.y2k+
    * Origin: Send more complaints! (2:550/4077.101)
  • From Bo Simonsen@2:236/100 to Serguei Trouchelle on Sun Nov 16 03:22:26 2003
    Hello Serguei!

    Nov 15 21:35 03, Serguei Trouchelle wrote to All:

    674c673
    < };
    -+-
    } __attribute__((packed, aligned(2)));

    etc.

    I think this must be something like

    #ifdef __GNUC__
    } __attribute__((packed, aligned(2)));
    #else
    };
    #endif

    Absolutely right, gonna correct this..

    Regards,
    Bo

    --- Msged/LNX 6.1.2 (Linux/2.4.18-bf2.4 (i586))
    * Origin: The Night Express, Roennede Dk (2:236/100)
  • From Serguei Trouchelle@2:550/4077.101 to Bo Simonsen on Sun Nov 16 20:27:58 2003
    I think this must be something like

    #ifdef __GNUC__
    } __attribute__((packed, aligned(2)));
    #else
    };
    #endif

    Absolutely right, gonna correct this..

    This is not only in max/max.h really. I hope you'll find all occurences :)

    Serguei Trouchelle
    --- timEd/386 1.10.y2k+
    * Origin: Send more complaints! (2:550/4077.101)
  • From Bo Simonsen@2:236/100 to Serguei Trouchelle on Tue Nov 18 16:36:25 2003
    Hello Serguei!

    Nov 16 20:27 03, Serguei Trouchelle wrote to Bo Simonsen:

    Absolutely right, gonna correct this..

    This is not only in max/max.h really. I hope you'll find all
    occurences :)

    I know it's there very often..

    Regards,
    Bo

    --- Msged/LNX 6.1.2 (Linux/2.4.18-586tsc (i586))
    * Origin: The Night Express, Roennede Dk (2:236/100)
  • From Serguei Trouchelle@2:550/357.1 to Bo Simonsen on Tue Nov 18 20:39:47 2003
    Absolutely right, gonna correct this..

    This is not only in max/max.h really. I hope you'll find all
    occurences :)

    I know it's there very often..

    Will you change it? I can change it by myself and check in tomorrow in CVS.

    Serguei Trouchelle
    --- timEd/386 1.10.y2k+
    * Origin: Was sollen wir trinken Sieben Tage lang... (2:550/357.1)
  • From Bo Simonsen@2:236/100 to Serguei Trouchelle on Fri Nov 21 00:52:27 2003
    Hello Serguei!

    Nov 18 20:39 03, Serguei Trouchelle wrote to Bo Simonsen:

    Absolutely right, gonna correct this..

    This is not only in max/max.h really. I hope you'll find all
    occurences :)

    I know it's there very often..

    Will you change it? I can change it by myself and check in tomorrow
    in CVS.

    Yes I've asked Bob Jones to give you CVS access.

    Regards,
    Bo

    --- Msged/LNX 6.1.2 (Linux/2.4.18-586tsc (i586))
    * Origin: The Night Express, Roennede Dk (2:236/100)