Make all #includes relative to the including file
This allows <Lib$Dir>.tboxlibint to be removed from our command line include path. Henceforth, clients of this library also won't need to put it (or C:tboxlibint) in their command line include paths either. It also means that when building the library, only local copies of header files are used (as opposed to a mixture of local and exported copies, as previously).
mentioned in merge request ColourDbox!2 (merged)
mentioned in merge request ColourMenu!1 (merged)
mentioned in merge request DCS!1 (merged)
mentioned in merge request FileInfo!1 (merged)
mentioned in merge request FontDbox!1 (merged)
mentioned in merge request FontMenu!1 (merged)
mentioned in merge request Gadgets!2 (merged)
mentioned in merge request IconBar!1 (merged)
mentioned in merge request Menu!2 (merged)
mentioned in merge request PrintDbox!1 (merged)
mentioned in merge request ProgInfo!1 (merged)
mentioned in merge request SaveAs!2 (merged)
mentioned in merge request Scale!3 (merged)
mentioned in merge request TinyStubs!1 (merged)
mentioned in merge request ToolAction!2 (merged)
mentioned in merge request Toolbox!2 (merged)
mentioned in merge request Window!1 (merged)
mentioned in merge request RiscOS/Sources/Apps/Toolbox/ResTest!1 (merged)
- Resolved by Jeffrey Lee
I'm confused - why do all the #includes here need updating? When resolving quoted includes, don't compilers generally start by treating it as a relative path, relative to the containing file? So prefixing all of tboxlib's includes with tboxlibint shouldn't be necessary, because regardless of whether
C:tboxlibint
is on the include path or not the files should always be able to find each other.Prefixing the paths with tboxlibint means it'll always be using the exported versions of the files, which could be annoying if you're in the middle of working on some changes and want to make sure the code still builds or passes (hypothetical) unit tests.
- Last reply by Jeffrey Lee
added 1 commit
- acce4a72 - Make all #includes relative to the including file