MCPcopy Create free account
hub / github.com/boostorg/build / string_new

Function string_new

src/engine/jam_strings.cpp:48–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46
47
48void string_new( string * s )
49{
50 s->value = s->opt;
51 s->size = 0;
52 s->capacity = sizeof( s->opt );
53 s->opt[ 0 ] = 0;
54#ifndef NDEBUG
55 memset( s->magic, JAM_STRING_MAGIC, sizeof( s->magic ) );
56#endif
57 assert_invariants( s );
58}
59
60
61void string_free( string * s )

Callers 15

class_module_nameFunction · 0.85
import_base_ruleFunction · 0.85
builtin_system_registryFunction · 0.85
var_definesFunction · 0.85
module_statFunction · 0.85
class_module_statFunction · 0.85
lookup_ruleFunction · 0.85
translate_path_posix2vmsFunction · 0.85
exec_cmdFunction · 0.85
path_tmpdirFunction · 0.85
builtin_glob_backFunction · 0.85
downcase_listFunction · 0.85

Calls 1

assert_invariantsFunction · 0.85

Tested by

no test coverage detected