X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Fsearchpath.h;h=f9f8705634e8bc69a22b7cf8a386f66e70b4058e;hb=0d8e8a95338560a1e0d96258d6def311cf2ad368;hp=fa833d1390bc385327056eff8bd6472018e9c259;hpb=05f72963695f843cca3fd3dac1be0175b470b179;p=cc65 diff --git a/src/common/searchpath.h b/src/common/searchpath.h index fa833d139..f9f870563 100644 --- a/src/common/searchpath.h +++ b/src/common/searchpath.h @@ -75,6 +75,15 @@ void AddSubSearchPathFromEnv (SearchPath* P, const char* EnvVar, const char* Sub * the environment variable value. */ +int PushSearchPath (SearchPath* P, const char* NewPath); +/* Add a new search path to the head of an existing search path list, provided + * that it's not already there. If the path is already at the first position, + * return zero, otherwise return a non zero value. + */ + +void PopSearchPath (SearchPath* P); +/* Remove a search path from the head of an existing search path list */ + void ForgetSearchPath (SearchPath* P); /* Forget all search paths in the given list */