Crossfire Server, Trunk
check_readable.cpp File Reference
#include <stdlib.h>
#include <check.h>
#include <global.h>
#include <assert.h>
#include <spells.h>
#include <toolkit_common.h>
+ Include dependency graph for check_readable.cpp:

Go to the source code of this file.

Macros

#define C(w, e)
 

Functions

int main (void)
 
static END_TEST Suite * readable_suite (void)
 
static void setup (void)
 
 START_TEST (test_strtoktolin)
 
static void teardown (void)
 

Macro Definition Documentation

◆ C

#define C (   w,
 
)
Value:
strtoktolin(w, ",", buf, sizeof(buf)); \
FAIL_UNLESS(strcmp(buf, e) == 0, "got %s instead of %s", buf, e);

Function Documentation

◆ main()

int main ( void  )

Definition at line 78 of file check_readable.cpp.

References readable_suite().

+ Here is the call graph for this function:

◆ readable_suite()

static END_TEST Suite* readable_suite ( void  )
static

Definition at line 65 of file check_readable.cpp.

References setup(), and teardown().

Referenced by main().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setup()

static void setup ( void  )
static

Definition at line 40 of file check_readable.cpp.

References cctk_init_std_archetypes(), cctk_setdatadir(), cctk_setlog(), and init_gods().

Referenced by readable_suite().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ START_TEST()

START_TEST ( test_strtoktolin  )

Definition at line 52 of file check_readable.cpp.

References buf, C, and MAX_BUF.

◆ teardown()

static void teardown ( void  )
static

Definition at line 48 of file check_readable.cpp.

Referenced by readable_suite().

+ Here is the caller graph for this function:
strtoktolin
char * strtoktolin(const char *buf1, const char *buf2, char *retbuf, size_t size)
Definition: readable.cpp:684
buf
StringBuffer * buf
Definition: readable.cpp:1565