[INTERPRETER]
* NEW: Relative paths beginning with ".../" always refer to files stored in the main project archive. git-svn-id: svn://localhost/gambas/trunk@7346 867c0c6c-44f3-4631-809d-bfa615b0a4ec
This commit is contained in:
parent
0a9262a2d8
commit
647c900268
1 changed files with 30 additions and 22 deletions
|
@ -333,6 +333,13 @@ bool ARCHIVE_find_from_path(ARCHIVE **parch, const char **ppath)
|
||||||
|
|
||||||
//fprintf(stderr, "ARCHIVE_find_from_path: %s (%s)\n", *ppath, *parch ? (*parch)->name : "NULL");
|
//fprintf(stderr, "ARCHIVE_find_from_path: %s (%s)\n", *ppath, *parch ? (*parch)->name : "NULL");
|
||||||
|
|
||||||
|
if (strncmp(*ppath, ".../", 4) == 0)
|
||||||
|
{
|
||||||
|
*ppath += 4;
|
||||||
|
*parch = NULL;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
i = 0;
|
i = 0;
|
||||||
while (strncmp(*ppath, "../", 3) == 0)
|
while (strncmp(*ppath, "../", 3) == 0)
|
||||||
{
|
{
|
||||||
|
@ -364,6 +371,7 @@ bool ARCHIVE_find_from_path(ARCHIVE **parch, const char **ppath)
|
||||||
if (i == STACK_frame_count)
|
if (i == STACK_frame_count)
|
||||||
*parch = NULL;
|
*parch = NULL;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (*parch == NULL && EXEC_arch)
|
if (*parch == NULL && EXEC_arch)
|
||||||
*parch = ARCHIVE_main;
|
*parch = ARCHIVE_main;
|
||||||
|
|
Loading…
Reference in a new issue