X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=src%2Fcommon%2Fsearchpath.h;h=f9f8705634e8bc69a22b7cf8a386f66e70b4058e;hb=0d8e8a95338560a1e0d96258d6def311cf2ad368;hp=6c4745e59acda44ea2037474a99b3dc60d483a07;hpb=ebd679dd57319ad3524e1f2dd176cf87a97a4274;p=cc65 diff --git a/src/common/searchpath.h b/src/common/searchpath.h index 6c4745e59..f9f870563 100644 --- a/src/common/searchpath.h +++ b/src/common/searchpath.h @@ -75,8 +75,11 @@ void AddSubSearchPathFromEnv (SearchPath* P, const char* EnvVar, const char* Sub * the environment variable value. */ -void PushSearchPath (SearchPath* P, const char* NewPath); -/* Add a new search path to the head of an existing search path list */ +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 */