Benny Prijono | 4766ffe | 2005-11-01 17:56:59 +0000 | [diff] [blame^] | 1 | /* $Id$ |
| 2 | * |
| 3 | */
|
Benny Prijono | 0a749f1 | 2005-10-31 21:02:30 +0000 | [diff] [blame] | 4 | #include <pjlib++.hpp>
|
| 5 |
|
| 6 |
|
| 7 | #if 0
|
| 8 | struct MyNode
|
| 9 | {
|
| 10 | PJ_DECL_LIST_MEMBER(struct MyNode)
|
| 11 | int data;
|
| 12 | };
|
| 13 |
|
| 14 | int 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 |
|
| 27 | int 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 |
|
| 37 | int 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
|