16 Commits

Author SHA1 Message Date
Christoph Reiter
aa5852e6c4 pathtools: expose sanitise_path() again
this doesn't really work if the private headers aren't included since the
prototype is missing then
2023-10-30 21:01:44 +01:00
Christoph Reiter
e078916178 pathtools: some cleanup
* Merge msys2_relocate into pathtools, so there is only one header for everything
* Stop exposing unused split_path_list, strip_n_prefix_folders, pathlist_relocation,
  pathlist_relocation_lib, sanitise_path, malloc_copy_string
* Make the header usable with cpp
2023-10-27 10:37:48 +02:00
Christoph Reiter
8ea3f4181b pathtools: remove get_relocated_path
doesn't do anything it says it does and unused
2023-03-10 18:55:35 +01:00
Markus Mützel
bf1a60e7d7 pathtools: Add functions for relocation relative to dll path 2022-03-11 10:19:22 +01:00
Biswapriyo Nath
3f788969a9 pathtools: preserve UNC paths when normalizing/simplifying
This was added here https://github.com/msys2/MINGW-packages/pull/8992
2021-07-03 10:54:38 +05:30
Alexpux
0ca4b37072 pathtools: Add missing function declaration to header. 2014-10-19 12:49:27 +04:00
Alexpux
a1e6cd5075 pathtools: Add relocate function to path tools itself to get integrate it to programs more simply. 2014-10-04 16:14:48 +04:00
Ray Donnelly
9a2dde0b64 pathtools: Fix relocation for paths with '.' in them 2014-08-28 20:59:19 +01:00
Alexpux
b5206ea3c7 pathtools: Fix declaration. 2014-08-08 09:36:49 +04:00
Ray Donnelly
7fbc17fbd9 pathtools: Fix leaks in get_relocated_path_list
.. and reduce the (exclusive of callee) malloc count to 1.
2014-08-08 01:46:45 +01:00
Alexpux
18484dcd51 pathtools: Some fixes. 2014-08-07 17:38:15 +04:00
Alexpux
32c9b7a698 pathtools: Move MSYS2 specific functions to separate files. Check path separator when splitting path list. 2014-08-07 16:42:44 +04:00
Alexpux
d8907164da pathtools: Add function for relocation path list from base path 2014-08-07 13:23:59 +04:00
Ray Donnelly
c3b2eb64cb pathtools: Re-write split_paths()
.. since the old one wasn't my own code so I'm
not in a postition to decide the license. Also
the old version was inefficient and buggy.

I also renamed some of the MSYS2 specific hacky
functions as:
msys2_get_relocated_single_path()
and:
msys2_get_relocated_path_list()

.. because all the others are general purpose
and not hacks at all (if they were upstreamed
in any codebases I'd be fine with that.)
2014-08-05 20:18:07 +01:00
Alexpux
ae6e736aa2 pathtools: Move debug functions to main. 2014-08-04 15:54:04 +04:00
Alexpux
e2c1805d64 pathtools: Split sources. 2014-08-04 15:26:27 +04:00