Subversion Repositories Kolibri OS

Rev

Rev 9840 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9840 Rev 9952
Line 4... Line 4...
4
#include 
4
#include 
5
#include 
5
#include 
6
#include 
6
#include 
7
#include 
7
#include 
8
#include 
8
#include 
-
 
9
#ifndef _KOLIBRI
9
#include 
10
#include 
-
 
11
#endif
10
#include 
12
#include 
11
#ifndef __MINGW32__
13
#ifndef __MINGW32__
12
#include 
14
#include 
13
#include 
15
#include 
14
#include 
16
#include 
Line 656... Line 658...
656
 * @param len Number of characters in "path" to match.
658
 * @param len Number of characters in "path" to match.
657
 * @return List of matching path names or NULL.
659
 * @return List of matching path names or NULL.
658
 */
660
 */
659
static char **complete_path_simple(const char *path, size_t len)
661
static char **complete_path_simple(const char *path, size_t len)
660
{
662
{
-
 
663
#ifndef _KOLIBRI
661
	size_t rlen;
664
	size_t rlen;
662
	const char *cpl;
665
	const char *cpl;
663
	char *root;
666
	char *root;
664
	struct dirent *dent;
667
	struct dirent *dent;
665
	DIR *dir;
668
	DIR *dir;
Line 740... Line 743...
740
	if (ret != NULL) {
743
	if (ret != NULL) {
741
		while (*ret != NULL)
744
		while (*ret != NULL)
742
			free(*(ret++));
745
			free(*(ret++));
743
		free(ret);
746
		free(ret);
744
	}
747
	}
-
 
748
#endif
745
	return NULL;
749
	return NULL;
746
}
750
}
Line 747... Line 751...
747
 
751
 
Line 748... Line 752...
748
#if defined(HAVE_GLOB_H) && !defined(__MINGW32__) && !defined(_KOLIBRI)
752
#if defined(HAVE_GLOB_H) && !defined(__MINGW32__)
749
 
753
 
750
#define COMPLETE_USERDIR_TILDE 0x01
754
#define COMPLETE_USERDIR_TILDE 0x01