Author Topic: Bug in headerguard plugin  (Read 6054 times)

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Bug in headerguard plugin
« 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...?!
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Bug in headerguard plugin
« Reply #1 on: July 22, 2008, 09:18:48 am »
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."

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9694
Re: Bug in headerguard plugin
« Reply #2 on: July 22, 2008, 11:52:23 am »
...it's gone after updating to trunk. :oops:
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: https://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: https://wiki.codeblocks.org/index.php?title=FAQ

styggentorsken

  • Guest
Re: Bug in headerguard plugin
« Reply #3 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

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Bug in headerguard plugin
« Reply #4 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."