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

Function parse_make

src/engine/parse.cpp:85–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83
84
85PARSE * parse_make(
86 int type,
87 PARSE * left,
88 PARSE * right,
89 PARSE * third,
90 OBJECT * string,
91 OBJECT * string1,
92 int num )
93{
94 PARSE * p = (PARSE *)BJAM_MALLOC( sizeof( PARSE ) );
95
96 p->type = type;
97 p->left = left;
98 p->right = right;
99 p->third = third;
100 p->string = string;
101 p->string1 = string1;
102 p->num = num;
103 p->refs = 1;
104 p->rulename = 0;
105
106 if ( left )
107 {
108 p->file = object_copy( left->file );
109 p->line = left->line;
110 }
111 else
112 {
113 yyinput_last_read_token( &p->file, &p->line );
114 p->file = object_copy( p->file );
115 }
116
117 return p;
118}
119
120
121void parse_refer( PARSE * p )

Callers

nothing calls this directly

Calls 2

object_copyFunction · 0.85
yyinput_last_read_tokenFunction · 0.85

Tested by

no test coverage detected