Lines Matching defs:vroot_data

54 static vroot_datat	vroot_data= {
111 return(vroot_data.vroot.env_var);
117 return(vroot_data.path.env_var);
123 vroot_data.path.init= 0;
129 vroot_data.vroot.init= 0;
135 vroot_data.scan_vroot_first= 0;
141 vroot_data.scan_vroot_first= 1;
147 vroot_data.cpp_style_path= style;
154 if ((*vroot= vroot_data.vroot_start) == NULL)
155 if ((*vroot= vroot_data.path_start) == NULL)
156 *vroot= vroot_data.filename_start;};
158 if ((*path= vroot_data.path_start) == NULL)
159 *path= vroot_data.filename_start;};
161 *filename= vroot_data.filename_start;
162 return(vroot_data.full_path);
179 if (!vroot_data.path.init) {
180 vroot_data.path.init= 1;
181 vroot_data.path.vector= parse_path_string(getenv(vroot_data.path.env_var), 0);};
182 path_vector= vroot_data.path.vector;};
187 if (!vroot_data.vroot.init) {
188 vroot_data.vroot.init= 1;
189 vroot_data.vroot.vector= parse_path_string(getenv(vroot_data.vroot.env_var), 1);};
190 vroot_vector= vroot_data.vroot.vector;};
194 vroot_data.vroot_start= NULL;
195 vroot_data.path_start= NULL;
196 vroot_data.filename_start= NULL;
207 (void)strcpy(vroot_data.full_path, filename);
208 vroot_data.filename_start= vroot_data.full_path;
209 (void)(*thunk)(vroot_data.full_path);
218 p= vroot_data.full_path;
219 (void)strcpy(vroot_data.vroot_start= p, vp->path);
221 (void)strcpy(vroot_data.filename_start= p, filename);
222 if ((*thunk)(vroot_data.full_path)) return;};
223 (void)strcpy(vroot_data.full_path, filename);
226 if (vroot_data.cpp_style_path) {
232 p= vroot_data.full_path;
237 if (vroot_data.cpp_style_path) {
238 (void)strcpy(vroot_data.path_start= p, pp1->path);
243 (void)strcpy(vroot_data.path_start= p,
249 (void)strcpy(vroot_data.filename_start= p, filename);
250 if ((*thunk)(vroot_data.full_path)) return;};
251 (void)strcpy(vroot_data.full_path, filename);
255 if (vroot_data.scan_vroot_first == 0) {
264 p= vroot_data.full_path;
270 (void)strcpy(vroot_data.vroot_start= p, vp->path); p+= vp->length;
273 if (vroot_data.cpp_style_path) {
279 (void)strcpy(vroot_data.path_start= p, pp->path); p+= pp->length;
290 (void)strcpy(vroot_data.path_start= p,
298 (void)strcpy(vroot_data.filename_start= p, filename);
299 if ((*thunk)(vroot_data.full_path)) return;};}
304 p= vroot_data.full_path;
310 (void)strcpy(vroot_data.vroot_start= p, vp->path); p+= vp->length;
313 if (vroot_data.cpp_style_path) {
319 (void)strcpy(vroot_data.path_start= p, pp->path); p+= pp->length;
329 (void)strcpy(vroot_data.path_start= p, pp->path); p+= pp->length;
334 (void)strcpy(vroot_data.filename_start= p, filename);
335 if ((*thunk)(vroot_data.full_path)) return;};};
336 (void)strcpy(vroot_data.full_path, filename);