public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87bc89b
)
cc: temporaries in current directory
author
Alan Cox
<alan@linux.intel.com>
Thu, 16 Nov 2017 17:14:36 +0000
(17:14 +0000)
committer
Alan Cox
<alan@linux.intel.com>
Thu, 16 Nov 2017 17:14:36 +0000
(17:14 +0000)
Applications/SmallC/frontend.c
patch
|
blob
|
history
diff --git
a/Applications/SmallC/frontend.c
b/Applications/SmallC/frontend.c
index
61224b2
..
bee3b65
100644
(file)
--- a/
Applications/SmallC/frontend.c
+++ b/
Applications/SmallC/frontend.c
@@
-169,7
+169,12
@@
static char *pathmod(char *p, char *f, char *t, int rmif)
if (*rmptr++ == NULL)
memory();
}
- return p;
+ /* Traditionally compilers dump the work files in the current dir
+ even if the source is /foo/bar/baz.c - follow this */
+ x = strrchr(p,'/');
+ if (x == NULL)
+ return p;
+ return x+1;
}
static void add_argument(char *p)