1N/A/*********************************************************************** 1N/A* This software is part of the ast package * 1N/A* Copyright (c) 1985-2011 AT&T Intellectual Property * 1N/A* and is licensed under the * 1N/A* Common Public License, Version 1.0 * 1N/A* by AT&T Intellectual Property * 1N/A* A copy of the License is available at * 1N/A* (with md5 checksum 059e8cd6165cb4c31e351f2b69388fd9) * 1N/A* Information and Software Systems Research * 1N/A* Glenn Fowler <gsf@research.att.com> * 1N/A* David Korn <dgk@research.att.com> * 1N/A* Phong Vo <kpv@research.att.com> * 1N/A***********************************************************************/ 1N/A * include style search support 1N/Atypedef struct Dir_s /* directory list element */ 1N/A char dir[
1];
/* directory path */ 1N/Astatic struct /* directory list state */ 1N/A * append dir to pathfind() include list 1N/A * return path to name using pathinclude() list 1N/A * path placed in <buf,size> 1N/A * if lib!=0 then pathpath() attempted after include search 1N/A * if type!=0 and name has no '.' then file.type also attempted 1N/A * any *: prefix in lib is ignored (discipline library dictionary support) 1N/A * always check the unadorned path first 1N/A * this handles . and absolute paths 1N/A * check the directory of the including file 1N/A * on the assumption that error_info.file is properly stacked 1N/A * check the include dir list 1N/A * finally a lib related search on PATH