Hi, I've noticed that Alexander has fixed a few compatibility problems in the patches I've been sending in, like moving #directives to the beginning on the line, removing the odd C++ style comment and moving declarations to the top of a function/ code block.
Does anyone have or know of something that can check my code before I send it to wine patches?
I've egreped out all the #directives's already.
Send instant messages to your online friends http://uk.messenger.yahoo.com
On Thu, 03 Mar 2005 15:49:20 +0000, Oliver Stieber wrote:
Does anyone have or know of something that can check my code before I send it to wine patches?
I've egreped out all the #directives's already.
Heya,
It's basically old-style C conformance + a few random bits for non-GNU compilers. In short:
1) No C++ style comments 2) No inline variable declarations (in the middle of a block) 3) Can't use L"" string syntax 4) No space between # and directive
Hmm, a few others that I am probably forgetting. There aren't that many rules.
You might want to jump on #winehackers if you haven't already, we can answer your questions faster there.
thanls -mike
On Thu, 3 Mar 2005, Mike Hearn wrote: [...]
- No space between # and directive
Actually it's 'No space before # for preprocessor directives'. Spaces between the '#' and the directive are ok.