MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / define_log_file

Function define_log_file

src/gpre/sql.cpp:5275–5303  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5273//
5274
5275static 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
5306static gpre_dbb* dup_dbb(const gpre_dbb* db)

Callers 2

act_alter_databaseFunction · 0.85
tail_databaseFunction · 0.85

Calls 9

MSC_allocFunction · 0.85
isQuotedFunction · 0.85
MSC_copyFunction · 0.85
PAR_get_tokenFunction · 0.85
CPR_s_errorFunction · 0.85
check_filenameFunction · 0.85
MSC_matchFunction · 0.85
EXP_ULONG_ordinalFunction · 0.85
PAR_errorFunction · 0.70

Tested by

no test coverage detected