Skip to content

[Bug 224412] [tcf][agent] Simplify agent includes by providing master tcf.h

Bugzilla Link 224412
Status NEW
Importance P3 enhancement
Reported Mar 27, 2008 12:37 EDT
Modified Apr 28, 2011 00:14 EDT
Reporter Martin Oberhuber

Description

Most agent files have includes like this:

#include "mdep.h" #include "config.h" #include <assert.h> #include "channel.h" #include "protocol.h" #include "json.h" #include "errors.h"

I think it would simplify development for extenders if we'd put the most basic core includes needed most frequently into a master "tcf.h" include that loads the others as needed.

That would probably also help backward compatibility as more required includes and/or dependencies between includes (that require a particular ordering of includes) are added in the future, or we choose to rename any includes for any reason like name clashes ("config.h" seems to be a very generic name).