| OLD | NEW |
| 1 /* | 1 /* |
| 2 ** This file contains all sources (including headers) to the LEMON | 2 ** This file contains all sources (including headers) to the LEMON |
| 3 ** LALR(1) parser generator. The sources have been combined into a | 3 ** LALR(1) parser generator. The sources have been combined into a |
| 4 ** single file to make it easy to include LEMON in the source tree | 4 ** single file to make it easy to include LEMON in the source tree |
| 5 ** and Makefile of another program. | 5 ** and Makefile of another program. |
| 6 ** | 6 ** |
| 7 ** The author of this program disclaims copyright. | 7 ** The author of this program disclaims copyright. |
| 8 */ | 8 */ |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <stdarg.h> | 10 #include <stdarg.h> |
| (...skipping 4908 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4919 ** as it is removed. ("f" may be null to avoid this step.) */ | 4919 ** as it is removed. ("f" may be null to avoid this step.) */ |
| 4920 void Configtable_clear(int(*f)(struct config *)) | 4920 void Configtable_clear(int(*f)(struct config *)) |
| 4921 { | 4921 { |
| 4922 int i; | 4922 int i; |
| 4923 if( x4a==0 || x4a->count==0 ) return; | 4923 if( x4a==0 || x4a->count==0 ) return; |
| 4924 if( f ) for(i=0; i<x4a->count; i++) (*f)(x4a->tbl[i].data); | 4924 if( f ) for(i=0; i<x4a->count; i++) (*f)(x4a->tbl[i].data); |
| 4925 for(i=0; i<x4a->size; i++) x4a->ht[i] = 0; | 4925 for(i=0; i<x4a->size; i++) x4a->ht[i] = 0; |
| 4926 x4a->count = 0; | 4926 x4a->count = 0; |
| 4927 return; | 4927 return; |
| 4928 } | 4928 } |
| OLD | NEW |