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

Function make_ready

src/gpre/languages/pas.cpp:3345–3372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3343//
3344
3345static void make_ready(const gpre_dbb* db,
3346 const TEXT* filename, const TEXT* vector, USHORT column,
3347 const gpre_req* request)
3348{
3349 TEXT s1[32], s2[32];
3350
3351 if (request)
3352 {
3353 sprintf(s1, "gds__%dL", request->req_ident);
3354 sprintf(s2, "gds__%d", request->req_ident);
3355 }
3356
3357 align(column);
3358 if (filename)
3359 {
3360 fprintf(gpreGlob.out_file, "GDS__ATTACH_DATABASE (%s, %s (%s), %s, %s, %s, %s);",
3361 vector, SIZEOF, filename, filename,
3362 db->dbb_name->sym_string, (request ? s1 : "0"),
3363 (request ? s2 : "0"));
3364 }
3365 else
3366 {
3367 fprintf(gpreGlob.out_file, "GDS__ATTACH_DATABASE (%s, %" SIZEFORMAT ", '%s', %s, %s, %s);",
3368 vector, strlen(db->dbb_filename), db->dbb_filename,
3369 db->dbb_name->sym_string, (request ? s1 : "0"),
3370 (request ? s2 : "0"));
3371 }
3372}
3373
3374
3375//____________________________________________________________

Callers 4

gen_compileFunction · 0.70
gen_readyFunction · 0.70
gen_t_startFunction · 0.70
t_start_autoFunction · 0.70

Calls 1

alignFunction · 0.70

Tested by

no test coverage detected