Jun. 7th, 2005

sawyl: (Default)
For the first time in like weeks, I've woken up feeling less tired than when I went to bed. A miracle. Since I was watching the Mothman Prophercies just before going to sleep, maybe I should write to the Vatican in an attempt to like get [livejournal.com profile] doctor_squale's good friend Richard Gere canonised.
sawyl: (Default)
Today's source of immense irritation: people who use C++ reserved keywords in system header files. For example:

struct florp { int foo; int bar; int using; int baz; } florp_t;

Spot the problem yet?

Luckily, there's a dark and nasty hack to get around the problem. Take a copy of the broken header file, modify it to remove the annoying clash, then add an '#include "florp.h"' at the very start of the source file, so that overloads the broken system header file (assuming that the developers didn't mess up the whole idempotent header file thing as well as the keyword thing). Of course, anything that actually uses the variable is going to fail, but hey, that's tough.

Profile

sawyl: (Default)
sawyl

August 2018

S M T W T F S
   123 4
5 6 7 8910 11
12131415161718
192021222324 25
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 24th, 2026 05:29 am
Powered by Dreamwidth Studios