Include path enhancements

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
tinman
PureBasic Expert
PureBasic Expert
Posts: 1102
Joined: Sat Apr 26, 2003 4:56 pm
Location: Level 5 of Robot Hell
Contact:

Include path enhancements

Post by tinman »

Simple version: make it like a C compiler (hey, I'm lazy and that's what I'm used to :).

Long version:
1) take include file paths relative to the current file that is being compiled/included, not the main source file
2) multiple include paths
3) perhaps a couple of different filename delimiters (like "" and <> in C) so that you can take a file from the working directory or the pre-defined include paths
4) Maybe even a third delimiter to implement point 1 and not annoy all users who would have to go and change all their include paths :)
If you paint your butt blue and glue the hole shut you just themed your ass but lost the functionality.
(WinXPhSP3 PB5.20b14)
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

2) +1
please...
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post by ts-soft »

+1

and if not found, search in

Code: Select all

#PB_Compiler_Home + "include\"
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Post Reply