| 5273 | // |
| 5274 | |
| 5275 | static gpre_file* define_log_file() |
| 5276 | { |
| 5277 | gpre_file* file = (gpre_file*) MSC_alloc(FIL_LEN); |
| 5278 | if (isQuoted(gpreGlob.token_global.tok_type)) |
| 5279 | { |
| 5280 | TEXT* string = (TEXT*) MSC_alloc(gpreGlob.token_global.tok_length + 1); |
| 5281 | file->fil_name = string; |
| 5282 | MSC_copy(gpreGlob.token_global.tok_string, gpreGlob.token_global.tok_length, string); |
| 5283 | PAR_get_token(); |
| 5284 | } |
| 5285 | else |
| 5286 | CPR_s_error("<quoted filename>"); |
| 5287 | |
| 5288 | if (!check_filename(file->fil_name)) |
| 5289 | PAR_error("node name not permitted"); // A node name is not permitted in a shadow or secondary file name |
| 5290 | |
| 5291 | while (true) |
| 5292 | { |
| 5293 | if (MSC_match(KW_SIZE)) |
| 5294 | { |
| 5295 | MSC_match(KW_EQUALS); |
| 5296 | file->fil_length = EXP_ULONG_ordinal(true); |
| 5297 | } |
| 5298 | else |
| 5299 | break; |
| 5300 | } |
| 5301 | |
| 5302 | return file; |
| 5303 | } |
| 5304 | |
| 5305 | |
| 5306 | static gpre_dbb* dup_dbb(const gpre_dbb* db) |
no test coverage detected