SynSourceEdit: fix destroy (Highlighter may trigger event in destruction, and must be removed while other objects are still in place)

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41448 4005530d-fff6-0310-9dd1-cebe43e6787f
LazFileUtils: Fix CreateRelativePath function. Better fix for issue #0022603.


git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41449 4005530d-fff6-0310-9dd1-cebe43e6787f
tests: comments

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41450 4005530d-fff6-0310-9dd1-cebe43e6787f
LazFileUtils: Split some implementations into Windows and Unix specific include files.


git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41451 4005530d-fff6-0310-9dd1-cebe43e6787f
LazFileUtils: (Try)CreateRelativePath: implement option to control wether Dest and Source
must always share a common base folder (being not the root directory).
For CreateRelativePath it defaults to True for backwards compatibility.


git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@41452 4005530d-fff6-0310-9dd1-cebe43e6787f