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

Function gen_raw

src/gpre/languages/ada.cpp:2361–2385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2359//
2360
2361static void gen_raw(const UCHAR* blr, const int request_length)
2362{
2363 TEXT buffer[80];
2364
2365 TEXT* p = buffer;
2366 const TEXT* const limit = buffer + 60;
2367
2368 for (const UCHAR* const end = blr + request_length - 1; blr <= end; ++blr)
2369 {
2370 const UCHAR c = *blr;
2371 sprintf(p, "%d", c);
2372 while (*p)
2373 p++;
2374 if (blr != end)
2375 *p++ = ',';
2376 if (p < limit)
2377 continue;
2378 *p = 0;
2379 printa(INDENT, buffer);
2380 p = buffer;
2381 }
2382
2383 *p = 0;
2384 printa(INDENT, buffer);
2385}
2386
2387
2388//____________________________________________________________

Callers 1

gen_requestFunction · 0.70

Calls 1

printaFunction · 0.70

Tested by

no test coverage detected