blob: 5bc4f8bdf3732f42670ba220b5babc4b07678867 [file] [log] [blame]
Benny Prijono4766ffe2005-11-01 17:56:59 +00001/* $Id$
2 *
3 */
Benny Prijono0a749f12005-10-31 21:02:30 +00004#include <pjlib++.hpp>
5
6
7#if 0
8struct MyNode
9{
10 PJ_DECL_LIST_MEMBER(struct MyNode)
11 int data;
12};
13
14int test()
15{
16 typedef PJ_List<MyNode> MyList;
17 MyList list;
18 MyList::iterator it, end = list.end();
19
20 for (it=list.begin(); it!=end; ++it) {
21 MyNode *n = *it;
22 }
23
24 return 0;
25}
26
27int test_scan()
28{
29 PJ_Scanner scan;
30 PJ_String s;
31 PJ_CharSpec cs;
32
33 scan.get(&cs, &s);
34 return 0;
35}
36
37int test_scan_c()
38{
39 pj_scanner scan;
40 pj_str_t s;
41 pj_char_spec cs;
42
43 pj_scan_get(&scan, cs, &s);
44 return 0;
45}
46#endif