Author Topic: Conflicting meaning of "source" and "header"  (Read 4714 times)

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Conflicting meaning of "source" and "header"
« on: March 25, 2008, 05:06:09 pm »
Code::Blocks seems to have two different concepts of what "source" and "header" files are.

Is there a plan to unify these?

Namely, the project manager understands "file types & categories", using a user-defined set of masks with wildcards.  By default, it specifies particular extensions but the interface looks like it would allow any wildcard mask, such as "prefix*.*".  And out of the box, the project manager is aware of files that are "headers" and files that are "sources".

Elsewhere, there are hard-coded extensions in the C::B source that specify exactly what file extensions count as "header" and "source".  An example is "Swap header/source (F11)" in the edit menu, which does not know what the project manager thinks "headers" and "sources" are.


If there's a rough plan to unify these but it's sitting on the back burner, I'd be happy to cook up  some minimal patches and lob them over here.

Offline DrewBoo

  • Multiple posting newcomer
  • *
  • Posts: 110
Re: Conflicting meaning of "source" and "header"
« Reply #1 on: March 26, 2008, 12:02:13 am »
Hm... no opinions from anyone?

I don't usually work with non-standard file extensions, but when I must (currently, .C and .H capitalized) many features break, even though C::B acts like it can handle it.

Should I just submit some reports to berlios?  Patch it myself and share the changes?

Offline mandrav

  • Project Leader
  • Administrator
  • Lives here!
  • *****
  • Posts: 4315
    • Code::Blocks IDE
Re: Conflicting meaning of "source" and "header"
« Reply #2 on: March 26, 2008, 08:33:31 am »
Yes, this will change eventually although it's not top priority.
Be patient!
This bug will be fixed soon...

Offline joubertdj

  • Multiple posting newcomer
  • *
  • Posts: 120
Re: Conflicting meaning of "source" and "header"
« Reply #3 on: March 26, 2008, 11:42:46 am »
Should I just submit some reports to berlios?  Patch it myself and share the changes?

I would go this route. It may/may not actually be included in the SVN. If it doesn't break any plugins or C::B for that matter it will most probably be included if it is a desired feature! In other words... GO FOR IT !!!