forked from github/server
shrink nrmessage
This commit is contained in:
parent
810bf3b40a
commit
26dc593ddb
2 changed files with 7 additions and 18 deletions
|
@ -13,7 +13,6 @@
|
||||||
|
|
||||||
#include <platform.h>
|
#include <platform.h>
|
||||||
#include "nrmessage.h"
|
#include "nrmessage.h"
|
||||||
#include "nrmessage_struct.h"
|
|
||||||
|
|
||||||
/* util includes */
|
/* util includes */
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
|
@ -27,6 +26,13 @@
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
typedef struct nrmessage_type {
|
||||||
|
const struct message_type *mtype;
|
||||||
|
char *vars;
|
||||||
|
struct nrmessage_type *next;
|
||||||
|
const char *section;
|
||||||
|
} nrmessage_type;
|
||||||
|
|
||||||
#define NRT_MAXHASH 1021
|
#define NRT_MAXHASH 1021
|
||||||
static nrmessage_type *nrtypes[NRT_MAXHASH];
|
static nrmessage_type *nrtypes[NRT_MAXHASH];
|
||||||
|
|
||||||
|
|
|
@ -1,17 +0,0 @@
|
||||||
#ifndef CLASS_NRMESSAGE_STRUCT
|
|
||||||
#define CLASS_NRMESSAGE_STRUCT
|
|
||||||
|
|
||||||
/* This file should not be included by anything in the server. If you
|
|
||||||
* feel that you need to include it, it's a sure sign that you're trying to
|
|
||||||
* do something BAD. */
|
|
||||||
|
|
||||||
typedef struct nrmessage_type {
|
|
||||||
const struct message_type *mtype;
|
|
||||||
char *vars;
|
|
||||||
struct nrmessage_type *next;
|
|
||||||
const char *section;
|
|
||||||
} nrmessage_type;
|
|
||||||
|
|
||||||
extern nrmessage_type *get_nrmessagetypes(void);
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Reference in a new issue