From 739b113f57915fbcb6c3bb10c97cc443b7fce4aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antonio=20Ni=C3=B1o=20D=C3=ADaz?= Date: Mon, 17 Apr 2017 20:27:58 +0100 Subject: [PATCH] Print dependencies of all included files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Files that weren't found with the absolute path weren't added as dependencies even if they were found after considering the list of include directories. This patch makes rgbasm print the complete path (including the include directory path) in these cases. Signed-off-by: Antonio Niño Díaz --- src/asm/fstack.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/asm/fstack.c b/src/asm/fstack.c index 73391668..c15c0eb1 100644 --- a/src/asm/fstack.c +++ b/src/asm/fstack.c @@ -217,6 +217,9 @@ fstk_FindFile(char *fname) } if ((f = fopen(path, "rb")) != NULL || errno != ENOENT) { + if (dependfile) { + fprintf(dependfile, "%s: %s\n", tzObjectname, path); + } return f; } }