Must have missed a make clean before I comitted.
Header file ordering and dependancies are a nightmare in modules. Sooner
I get that cleaned up to only need ctdl_module.h the better.
#include "msgbase.h"
#include "threads.h"
#include "citadel_dirs.h"
#include "msgbase.h"
#include "threads.h"
#include "citadel_dirs.h"
/*
* define macros for module init stuff
*/
/*
* define macros for module init stuff
*/
-t_context *find_context(char **unstr)
+CitContext *find_context(char **unstr)
- t_context *t_cc, *found_cc = NULL;
+ CitContext *t_cc, *found_cc = NULL;
char *name, *tptr;
if ((!*unstr) || (!unstr))
char *name, *tptr;
if ((!*unstr) || (!unstr))
+#include "ctdl_module.h"
+
void ChatUnloadingTest(void);
void allwrite (char *cmdbuf, int flag, char *username);
void ChatUnloadingTest(void);
void allwrite (char *cmdbuf, int flag, char *username);
-t_context *find_context (char **unstr);
+CitContext *find_context (char **unstr);
void do_chat_listing (int allflag);
void cmd_chat (char *argbuf);
void cmd_pexp (char *argbuf); /* arg unused */
void do_chat_listing (int allflag);
void cmd_chat (char *argbuf);
void cmd_pexp (char *argbuf); /* arg unused */
char buf[SIZ];
long msgnum;
int count = 0;
char buf[SIZ];
long msgnum;
int count = 0;
Ctx = CC;
migr_global_message_list = fopen(migr_tempfilename1, "r");
Ctx = CC;
migr_global_message_list = fopen(migr_tempfilename1, "r");
void migr_do_export(void) {
struct config *buf;
buf = &config;
void migr_do_export(void) {
struct config *buf;
buf = &config;
Ctx = CC;
cprintf("%d Exporting all Citadel databases.\n", LISTING_FOLLOWS);
Ctx = CC;
cprintf("%d Exporting all Citadel databases.\n", LISTING_FOLLOWS);
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
#include <sys/wait.h>
#include <string.h>
#include <limits.h>
+
+#include "ctdl_module.h"
+
#include "citadel.h"
#include "server.h"
#include "citserver.h"
#include "citadel.h"
#include "server.h"
#include "citserver.h"
-#include "ctdl_module.h"
-
-extern struct CitContext *ContextList;