Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
| SHA1 Hash: | ff5c97e3ff1f12ade0a1d45b1ba9578bc6f3dda0 |
|---|---|
| Date: | 2009-06-08 20:55:22 |
| User: | stephan |
| Comment: | removed an old debuggering artefact (bogus GC listener added to each pegc parser) |
Tags And Properties
- branch=trunk inherited from [a870fea998]
- sym-trunk inherited from [a870fea998]
Changes
Changes to src/pegc.c
| Old (babbfdd3c6dfed9f) | New (7aa7dfa99bae10b5) | |||
|---|---|---|---|---|
| 1 | #include <stdio.h> | 1 | #include <stdio.h> | |
| 2 | #include <stdlib.h> | 2 | #include <stdlib.h> | |
| 3 | #include <string.h> | 3 | #include <string.h> | |
| 4 | #include <ctype.h> | 4 | #include <ctype.h> | |
| 5 | 5 | |||
| 251 hidden lines | ||||
| 257 | if( ! st || !key ) return false; | 257 | if( ! st || !key ) return false; | |
| 258 | if( ! st->gc ) | 258 | if( ! st->gc ) | |
| 259 | { | 259 | { | |
| 260 | st->gc = whgc_create_context(st); | 260 | st->gc = whgc_create_context(st); | |
| 261 | if( ! st->gc ) return false; | 261 | if( ! st->gc ) return false; | |
| 262 | whgc_add_listener( st->gc, pegc_gc_test_listener ); | | | 262 | //whgc_add_listener( st->gc, pegc_gc_test_listener ); |
| 263 | } | 263 | } | |
| 264 | if( ! whgc_register( st->gc, key, keyDtor, value, valDtor ) ) | 264 | if( ! whgc_register( st->gc, key, keyDtor, value, valDtor ) ) | |
| 265 | { | 265 | { | |
| 266 | return false; | 266 | return false; | |
| 267 | } | 267 | } | |
| 2103 hidden lines | ||||
| 2371 | #undef PEGCACTION_INIT | 2371 | #undef PEGCACTION_INIT | |
| 2372 | 2372 | |||
| 2373 | #if defined(__cplusplus) | 2373 | #if defined(__cplusplus) | |
| 2374 | } /* extern "C" */ | 2374 | } /* extern "C" */ | |
| 2375 | #endif | 2375 | #endif | |