test.c File Reference

#include "scb.h"
Include dependency graph for test.c:

Go to the source code of this file.

Defines

#define TRACE   trace_empty

Functions

void trace_empty (const char *format,...)
void testDoc ()
int main (int argc, char *argv[])

Define Documentation

#define TRACE   trace_empty

Definition at line 34 of file test.c.


Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 72 of file test.c.

References testDoc().

00073 {
00074     testDoc();
00075     return 0;
00076 }

Here is the call graph for this function:

void testDoc (  ) 

Definition at line 42 of file test.c.

References id, and TRACE.

Referenced by main().

00043 {
00044     // doc
00045     ScbDocPtr doc = scb_doc_new();
00046     if (NULL == doc)
00047     {
00048         TRACE("Could not construct a scribble document!");
00049         return;
00050     }
00051 
00052     // page list
00053     ScbPagesPtr pages = scb_doc_get_pages(doc);
00054 
00055     // add some pages
00056     {
00057         ScbPageId id;
00058         ScbPagePtr page = NULL;
00059         int i = 0; 
00060         for(; i < 5; ++i)
00061         {
00062             scb_page_id_from_int(&id, i);
00063             page = scb_page_new(&id);
00064             scb_pages_add_page(pages, page);
00065         }
00066         scb_pages_dump(pages);
00067     }
00068 
00069     scb_doc_free(doc);
00070 }

Here is the caller graph for this function:

void trace_empty ( const char *  format,
  ... 
)

Copyright (C) 2008 iRex Technologies B.V. All rights reserved.

Definition at line 29 of file test.c.

00030 {
00031 }

Generated by  doxygen 1.6.2-20100208