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

Function gen_database_data

src/gpre/languages/ftn.cpp:1363–1402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1361//
1362
1363static void gen_database_data() //(const act* action)
1364{
1365 Firebird::PathName include_buffer;
1366
1367 include_buffer = fb_utils::getPrefix(Firebird::IConfigManager::DIR_INC, INCLUDE_FTN_FILE);
1368 sprintf(output_buffer, INCLUDE_ISC_FTN, include_buffer.c_str());
1369
1370 FTN_print_buffer(output_buffer);
1371
1372 bool any_extern = false;
1373 for (const gpre_dbb* db = gpreGlob.isc_databases; db; db = db->dbb_next)
1374 {
1375#ifndef FTN_BLK_DATA
1376 if (db->dbb_scope != DBB_EXTERN)
1377 fprintf(gpreGlob.out_file, "%sDATA %s /0/ %s{ init database handle }\n",
1378 COLUMN, db->dbb_name->sym_string, INLINE_COMMENT);
1379 else
1380 any_extern = true;
1381#endif
1382 for (const tpb* tpb_iterator = db->dbb_tpbs;
1383 tpb_iterator;
1384 tpb_iterator = tpb_iterator->tpb_dbb_next)
1385 {
1386 gen_tpb_data(tpb_iterator);
1387 }
1388 }
1389
1390 fprintf(gpreGlob.out_file, "%sDATA ISC_NULL /0/ %s{ init null vector }\n",
1391 COLUMN, INLINE_COMMENT);
1392 fprintf(gpreGlob.out_file, "%sDATA ISC_BLOB_NULL /0,0/ %s{ init null blob }\n",
1393 COLUMN, INLINE_COMMENT);
1394#ifndef FTN_BLK_DATA
1395 if (!any_extern)
1396 fprintf(gpreGlob.out_file, "%sDATA GDS__TRANS /0/ %s{ init trans handle }\n",
1397 COLUMN, INLINE_COMMENT);
1398#endif
1399
1400 for (const gpre_req* request = gpreGlob.requests; request; request = request->req_next)
1401 gen_request_data(request);
1402}
1403
1404
1405//____________________________________________________________

Callers 1

gen_databaseFunction · 0.85

Calls 5

getPrefixFunction · 0.85
FTN_print_bufferFunction · 0.85
gen_tpb_dataFunction · 0.85
gen_request_dataFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected