1
0
mirror of https://github.com/cc65/cc65.git synced 2024-10-01 00:57:11 +00:00

Allow to supply searchpath defines as simple values instead of escaped C strings.

This commit is contained in:
Oliver Schmidt 2013-04-27 16:54:09 +02:00
parent 9d6ab944b8
commit ede72d78b2
4 changed files with 9 additions and 5 deletions

View File

@ -73,7 +73,7 @@ void InitIncludePaths (void)
/* Add some compiled in search paths if defined at compile time */
#ifdef CA65_INC
AddSearchPath (IncSearchPath, CA65_INC);
AddSearchPath (IncSearchPath, STRINGIZE (CA65_INC));
#endif
/* Add specific paths from the environment */

View File

@ -73,7 +73,7 @@ void InitIncludePaths (void)
/* Add some compiled in search paths if defined at compile time */
#ifdef CC65_INC
AddSearchPath (SysIncSearchPath, CC65_INC);
AddSearchPath (SysIncSearchPath, STRINGIZE (CC65_INC));
#endif
/* Add specific paths from the environment */

View File

@ -48,6 +48,10 @@
/* Convert argument to C string */
#define _STRINGIZE(arg) #arg
#define STRINGIZE(arg) _STRINGIZE(arg)
/* A search path is a pointer to the list */
typedef struct Collection SearchPath;

View File

@ -71,13 +71,13 @@ void InitSearchPaths (void)
/* Add some compiled in search paths if defined at compile time */
#if defined(LD65_LIB)
AddSearchPath (LibSearchPath, LD65_LIB);
AddSearchPath (LibSearchPath, STRINGIZE (LD65_LIB));
#endif
#if defined(LD65_OBJ)
AddSearchPath (ObjSearchPath, LD65_OBJ);
AddSearchPath (ObjSearchPath, STRINGIZE (LD65_OBJ));
#endif
#if defined(LD65_CFG)
AddSearchPath (CfgSearchPath, LD65_CFG);
AddSearchPath (CfgSearchPath, STRINGIZE (LD65_CFG));
#endif
/* Add specific paths from the environment */