github.com/gotranspile/cxgo@v0.3.8-0.20240118201721-29871598a6a2/libs/includes/glob.h (about) 1 #include <stddef.h> 2 3 const _cxgo_go_int GLOB_NOESCAPE = 1; 4 5 typedef struct { 6 size_t gl_pathc; /* Count of paths matched so far */ 7 char **gl_pathv; /* List of matched pathnames. */ 8 size_t gl_offs; /* Slots to reserve in gl_pathv. */ 9 _cxgo_sint32 (*Glob)(const char *pattern, _cxgo_sint32 flags, 10 _cxgo_sint32 (*errfunc) (const char *epath, _cxgo_sint32 eerrno)); 11 void (*Free)(void); 12 } glob_t; 13 #define glob(pattern, flags, errfunc, g) ((glob_t*)g)->Glob(pattern, flags, errfunc) 14 #define globfree(g) ((glob_t*)g)->Free()