#include "scb.h"
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[]) |
int main | ( | int | argc, | |
char * | argv[] | |||
) |
void testDoc | ( | ) |
Definition at line 42 of file test.c.
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 }