project-navigation
Personal tools

Author Topic: q_shared.h & structs/enums - small question.  (Read 4391 times)

Hoehrer

  • Guest
q_shared.h & structs/enums - small question.
« on: March 26, 2006, 01:12:49 pm »
Is there a reason that we have alot of definitions in q_shared.h and some of them in the header file of the same name as the code (e.g cl_basemanagement.h, etc..) ?

Here's why i ask:
I have a definition of researchType_s and researchStatus_s in q_shared.h (I just put it next to the other definitions, so no real reason), but they would probably be better placed in cl_research.h. Are there any resons to not do this?

Werner

oxyXen

  • Guest
q_shared.h & structs/enums - small question.
« Reply #1 on: March 26, 2006, 01:42:22 pm »
Hi

As the filename says, the qshared.h header contains definitions needed by (probably) all sourcefiles in the project.

If you need the funcs/structs etc only in cl_research.c then it would be better to use cl_research.h

ox

Hoehrer

  • Guest
q_shared.h & structs/enums - small question.
« Reply #2 on: March 26, 2006, 03:13:23 pm »
That's what i suspected.
Will move it to cl_research.h, since i use this stuff only in research.

Thanks, Werner