flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > path resolving for file directive

Author
Thread Post new topic Reply to topic
shoorick



Joined: 25 Feb 2005
Posts: 1605
Location: Ukraine
shoorick
is it possible to make file searching algorithm for "file" directive same like for "include" directive? i mean to search not only relative to current directory, but also relative to directory of currently processed file.

simple example:

A.
a\a.asm has:
Code:
include "..\b\b.inc"    

b\b.inc has:
Code:
include "c.inc"    

we have file:
b\c.inc
and it included ok

B.
a\a.asm has:
Code:
include "..\b\b.inc"    

b\b.inc has:
Code:
file "c.bin"    

we have file:
b\c.bin
and it will be not included - "file not found" error pops

currently i use full path in this situation, but do not like it
thanks

_________________
UNICODE forever!
Post 06 Dec 2007, 15:41
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.