Apache HTTPD
Macros | Functions
structdata.c File Reference
#include "expat_config.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "structdata.h"
#include "minicheck.h"

Go to the source code of this file.

Macros

#define STRUCT_EXTENSION_COUNT   8
 
#define XML_FMT_STR   "s"
 
#define xcstrlen(s)   strlen(s)
 
#define xcstrcmp(s, t)   strcmp((s), (t))
 

Functions

static XML_Charxmlstrdup (const XML_Char *s)
 
void StructData_Init (StructData *storage)
 
void StructData_AddItem (StructData *storage, const XML_Char *s, int data0, int data1, int data2)
 
void StructData_CheckItems (StructData *storage, const StructDataEntry *expected, int count)
 
void StructData_Dispose (StructData *storage)
 

Macro Definition Documentation

◆ STRUCT_EXTENSION_COUNT

#define STRUCT_EXTENSION_COUNT   8

Definition at line 48 of file structdata.c.

◆ xcstrcmp

#define xcstrcmp (   s,
  t 
)    strcmp((s), (t))

Definition at line 58 of file structdata.c.

◆ xcstrlen

#define xcstrlen (   s)    strlen(s)

Definition at line 57 of file structdata.c.

◆ XML_FMT_STR

#define XML_FMT_STR   "s"

Definition at line 56 of file structdata.c.

Function Documentation

◆ StructData_AddItem()

void StructData_AddItem ( StructData storage,
const XML_Char s,
int  data0,
int  data1,
int  data2 
)

Definition at line 80 of file structdata.c.

◆ StructData_CheckItems()

void StructData_CheckItems ( StructData storage,
const StructDataEntry expected,
int  count 
)

Definition at line 108 of file structdata.c.

◆ StructData_Dispose()

void StructData_Dispose ( StructData storage)

Definition at line 148 of file structdata.c.

◆ StructData_Init()

void StructData_Init ( StructData storage)

Definition at line 72 of file structdata.c.

◆ xmlstrdup()

static XML_Char * xmlstrdup ( const XML_Char s)
static

Definition at line 62 of file structdata.c.