| 157 | } |
| 158 | |
| 159 | static LIST * debug_list_read( FILE * in ) |
| 160 | { |
| 161 | int len; |
| 162 | int i; |
| 163 | LIST * result = L0; |
| 164 | int ret = fscanf( in, "%d", &len ); |
| 165 | if (ret == 1) |
| 166 | { |
| 167 | int ch = fgetc( in ); |
| 168 | if (ch > 0) assert( ch == '\n' ); |
| 169 | for ( i = 0; i < len; ++i ) |
| 170 | { |
| 171 | result = list_push_back( result, debug_object_read( in ) ); |
| 172 | } |
| 173 | } |
| 174 | return result; |
| 175 | } |
| 176 | |
| 177 | static void debug_lol_write( FILE * out, LOL * lol ) |
| 178 | { |
no test coverage detected