mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 17:30:50 +00:00
Allow to supply searchpath defines as simple values instead of escaped C strings.
This commit is contained in:
parent
9d6ab944b8
commit
ede72d78b2
@ -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 */
|
||||
|
@ -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 */
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user