Menu

#668 macro produces code which won't compile

None
closed-fixed
5
2017-10-06
2006-04-21
No

1.3.27 ignored the following:

#define H_SUPPRESS_SCALING_MAGIC (('s'<<24) |
('u'<<16) | ('p'<<8) | ('p'))

1.3.29 produces code which won't compile

Reported by jason@techsoftamerica.com

Discussion

  • Olly Betts

    Olly Betts - 2006-09-24

    Logged In: YES
    user_id=14972

    I've committed a fix to CVS.

     
  • Olly Betts

    Olly Betts - 2006-09-24
    • status: open --> closed-fixed
     
  • Olly Betts

    Olly Betts - 2006-10-04

    Logged In: YES
    user_id=14972

    Sadly this patch causes worse regressions than the problem
    fixed, so I've backed it out.

     
  • Olly Betts

    Olly Betts - 2006-10-04
    • status: closed-fixed --> open
     
  • Olly Betts

    Olly Betts - 2017-10-06
    • status: open --> closed-fixed
    • Group: -->
     
  • Olly Betts

    Olly Betts - 2017-10-06

    This was finally fixed last year in 3.0.11:

    2016-10-23: jiulongw
                Patch #781 - Fix wrapping of C compound expressions containing char constants
                in quotes such as:
    
                  #define H_SUPPRESS_SCALING_MAGIC (('s'<<24) | ('u'<<16) | ('p'<<8) | 'p')
    
                  enum DifferentTypes {
                    typecharcompound='A'+1,
                    typecharcompound2='B' << 2
                  };
    
     

Log in to post a comment.

Auth0 Logo