Commit graph

8 commits

Author SHA1 Message Date
Peter Johnson
94ab1135a3 Remove $Id$ and RCSID() usage.
These are useless now that we're using git.
2011-08-19 10:43:16 -07:00
Peter Johnson
69fc913eec Clean up a number of obsolete autoconf-detected standard C things.
svn path=/trunk/yasm/; revision=1892
2007-07-13 20:56:28 +00:00
Peter Johnson
469e54fa4a Update all copyright dates.
svn path=/trunk/yasm/; revision=1827
2007-04-22 05:09:49 +00:00
Peter Johnson
00473ca981 Bite the bullet and convert tabs to spaces. Previously yasm's source has
been using a mix of tabs and 4 spaces to indent; this looks horrible if
tab size is ever not 8.  While I debated converting to tab-only indentation
that would have been a far higher impact to the source.

svn path=/trunk/yasm/; revision=1825
2007-04-22 03:32:46 +00:00
Peter Johnson
3268c5e367 Finally fix brokenness that was NASM imported preprocessor include path
handling.  The new way of doing things follows C compiler standard path
searching rules in terms of relative and absolute paths in relation to
source location and the current working directory.  There's probably some
latent bugs in this as I've not tested it on Windows yet.

This should make CodeView actually usable with included files.

* file.c (yasm__abspath_win, yasm__abspath_unix): Convert a relative path
into an absolute path.  Code moved from:
* cv-symline.c (cv_make_pathname): Here (deleted).
(cv_dbgfmt_add_file): Use yasm__abspath() instead.
* file.h (yasm__abspath_win, yasm__abspath_unix): Prototype.
(yasm__abspath): Macro pointing to right version.

* file.c (yasm__combpath_win, yasm__combpath_unix): Combine two possibly
relative paths (also handles absolute paths).
* file.h (yasm__combpath_win, yasm__combpath_unix): Prototype.
(yasm__combpath): Macro pointing to right version.

* file.c (yasm__fopen_include): Where the new include search magic happens,
using yasm__combpath heavily.
* file.h (yasm__fopen_include): Prototype.

* nasm-preproc.c: Update to use yasm__fopen_include().
* nasmlib.c (nasm_src_get_fname): Helper.
* nasmlib.h (nasm_src_get_fname): Helper prototype.
* nasm-preproc.c (nasm_preproc_add_dep): Don't free pointer, we need it.

* splitpath_test.c: Update.
* combpath_test.c: New test for yasm__combpath_*.

* Mkfiles: Update config.h for yasm__abspath and yasm__combpath.

svn path=/trunk/yasm/; revision=1436
2006-03-28 09:05:53 +00:00
Peter Johnson
f8541ca249 * splitpath_test.c: Include file.h not splitpath.c to match [1433].
svn path=/trunk/yasm/; revision=1434
2006-03-28 02:26:19 +00:00
Peter Johnson
cea67a24b2 * splitpath_test.c: Add no-filename cases.
svn path=/trunk/yasm/; revision=1347
2006-01-29 01:24:19 +00:00
Peter Johnson
000ba73a81 Add functions to split a path into a directory and base filename.
* splitpath.c (yasm__splitpath_unix, yasm__splitpath_win): New.
* coretype.h: Prototype above and alias yasm__splitpath.
* splitpath_test.c: New test for above.

svn path=/trunk/yasm/; revision=1345
2006-01-29 01:17:49 +00:00