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

Function gen_raw

src/gpre/int_cxx.cpp:441–468  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

439//
440
441static void gen_raw( const gpre_req* request)
442{
443 TEXT buffer[80];
444
445 const UCHAR* blr = request->req_blr;
446 int blr_length = request->req_length;
447 TEXT* p = buffer;
448 align(0);
449
450 while (--blr_length)
451 {
452 const UCHAR c = *blr++;
453 if ((c >= 'A' && c <= 'Z') || c == '$' || c == '_')
454 sprintf(p, "'%c',", c);
455 else
456 sprintf(p, "%d,", c);
457 while (*p)
458 p++;
459 if (p - buffer > 60)
460 {
461 fprintf(gpreGlob.out_file, "%s\n", buffer);
462 p = buffer;
463 *p = 0;
464 }
465 }
466
467 fprintf(gpreGlob.out_file, "%s%d", buffer, blr_eoc);
468}
469
470
471//____________________________________________________________

Callers 1

gen_requestFunction · 0.70

Calls 1

alignFunction · 0.70

Tested by

no test coverage detected