News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Bug in headerguard plugin

Started by MortenMacFly, July 22, 2008, 08:48:17 AM

Previous topic - Next topic

MortenMacFly

Dear Thomas,
this plugin does not work if files are being created from a (project) wizard. In that case it seems a header guard is applied twice...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

thomas

Works fine here? What exactly is the matter?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

MortenMacFly

...it's gone after updating to trunk. :oops:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

styggentorsken

The headerguard plugin forces me to use the guard <FILENAME_IN_CAPS>_H_INCLUDED

Is there any way to change this default?
I could not find the script to modify either.
I would like it to be <FILENAME_IN_CAPS>_H

thomas

Quote from: styggentorsken on December 11, 2008, 03:44:35 PM
The headerguard plugin forces me to use the guard <FILENAME_IN_CAPS>_H_INCLUDED
No, it doesn't. It uses HEADER_<64 bit hexadecimal number>. The hexadecimal number is a hash of the full pathname. There are no configuration options to change the output.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."