MCPcopy Create free account
hub / github.com/boostorg/build / glob1

Function glob1

src/engine/builtins.cpp:825–851  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

823
824
825LIST * glob1( OBJECT * dirname, OBJECT * pattern )
826{
827 LIST * const plist = list_new( object_copy( pattern ) );
828 struct globbing globbing;
829
830 globbing.results = L0;
831 globbing.patterns = plist;
832
833 globbing.case_insensitive
834# if defined( OS_NT ) || defined( OS_CYGWIN ) || defined( OS_VMS )
835 = plist; /* always case-insensitive if any files can be found */
836# else
837 = L0;
838# endif
839
840 if ( globbing.case_insensitive )
841 globbing.patterns = downcase_list( plist );
842
843 file_dirscan( dirname, builtin_glob_back, &globbing );
844
845 if ( globbing.case_insensitive )
846 list_free( globbing.patterns );
847
848 list_free( plist );
849
850 return globbing.results;
851}
852
853
854LIST * glob_recursive( char const * pattern )

Callers 1

glob_recursiveFunction · 0.85

Calls 5

list_newFunction · 0.85
object_copyFunction · 0.85
downcase_listFunction · 0.85
file_dirscanFunction · 0.85
list_freeFunction · 0.85

Tested by

no test coverage detected