Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Plugins development => Topic started by: MortenMacFly on July 22, 2008, 08:48:17 am

Title: Bug in headerguard plugin
Post by: MortenMacFly on July 22, 2008, 08:48:17 am
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...?!
Title: Re: Bug in headerguard plugin
Post by: thomas on July 22, 2008, 09:18:48 am
Works fine here? What exactly is the matter?
Title: Re: Bug in headerguard plugin
Post by: MortenMacFly on July 22, 2008, 11:52:23 am
...it's gone after updating to trunk. :oops:
Title: Re: Bug in headerguard plugin
Post by: styggentorsken on December 11, 2008, 03:44:35 pm
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
Title: Re: Bug in headerguard plugin
Post by: thomas on December 11, 2008, 07:30:20 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.