Changeset 4408

Show
Ignore:
Timestamp:
10/03/06 10:22:11 (2 years ago)
Author:
morris
Message:

Disable globbing on Linux for now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • wire/trunk/wire/files.c

    r4399 r4408  
    3232#include <stdio.h> 
    3333#include <stdlib.h> 
     34 
     35#ifndef __GLIBC__ 
    3436#include <dirent.h> 
    3537#include <glob.h> 
     38#endif 
     39 
    3640#include <readline/readline.h> 
    3741#include <wired/wired.h> 
     
    5357}; 
    5458 
     59#ifndef __GLIBC__ 
    5560struct _wr_files_glob_dir { 
    5661        wi_string_t                                             *path; 
     
    5964}; 
    6065typedef struct _wr_files_glob_dir       wr_files_glob_dir_t; 
     66#endif 
    6167 
    6268 
    6369static wi_array_t *                                     wr_files_glob(wi_string_t *); 
     70#ifndef __GLIBC__ 
    6471static void *                                           wr_files_glob_opendir(const char *); 
    6572static struct dirent *                          wr_files_glob_readdir(void *); 
    6673static void                                                     wr_files_glob_closedir(void *); 
    6774static int                                                      wr_files_glob_stat(const char *, struct stat *); 
     75#endif 
    6876 
    6977static void                                                     wr_file_dealloc(wi_runtime_instance_t *); 
     
    249257 
    250258static wi_array_t * wr_files_glob(wi_string_t *pattern) { 
     259#ifdef __GLIBC__ 
     260        return wi_autorelease(wi_array_init_with_data(wi_array_alloc(), pattern, NULL)); 
     261#else 
    251262        wi_array_t              *array; 
    252263        glob_t                  gl; 
     
    273284         
    274285        return wi_autorelease(array); 
    275 
    276  
    277  
    278  
     286#endif 
     287
     288 
     289 
     290 
     291#ifndef __GLIBC__ 
    279292static void * wr_files_glob_opendir(const char *path) { 
    280293        wr_files_glob_dir_t             *dir; 
     
    338351        return 0; 
    339352} 
     353#endif 
    340354 
    341355