59 if ( (pFile = fopen(
Vec_StrArray(vCommand),
"r" )) == NULL )
68 for ( i = 1; i < argc; i++ )
78 Abc_Print( -1,
"The following command has returned non-zero exit status:\n" );
97 #if defined(WIN32) && !defined(__cplusplus)
103 typedef unsigned long _fsize_t;
114 extern long _findfirst(
char *filespec,
struct _finddata_t *fileinfo );
115 extern int _findnext(
long handle,
struct _finddata_t *fileinfo );
116 extern int _findclose(
long handle );
135 struct _finddata_t c_file;
137 if( (hFile = _findfirst(
"*.exe", &c_file )) == -1L )
145 }
while( _findnext( hFile, &c_file ) == 0 );
185 char * pName, * pStop;
188 if ( vFileNames == NULL )
192 if (
strncmp( pName,
"abccmd_", 7 ) )
196 pStop =
strstr( pName + 7,
"." );
typedefABC_NAMESPACE_HEADER_START struct Vec_Ptr_t_ Vec_Ptr_t
INCLUDES ///.
ABC_NAMESPACE_IMPL_START int CmdCommandLoad(Abc_Frame_t *pAbc, int argc, char **argv)
DECLARATIONS ///.
static char * Vec_StrArray(Vec_Str_t *p)
void Load_End(Abc_Frame_t *pAbc)
static void Vec_PtrFreeFree(Vec_Ptr_t *p)
static void Vec_PtrPush(Vec_Ptr_t *p, void *Entry)
void Cmd_CommandAdd(Abc_Frame_t *pAbc, const char *sGroup, const char *sName, Cmd_CommandFuncType pFunc, int fChanges)
static Vec_Str_t * Vec_StrAlloc(int nCap)
static void Vec_StrPush(Vec_Str_t *p, char Entry)
static char Vec_StrPop(Vec_Str_t *p)
typedefABC_NAMESPACE_HEADER_START struct Abc_Frame_t_ Abc_Frame_t
INCLUDES ///.
static void Vec_StrAppend(Vec_Str_t *p, const char *pString)
static void Vec_StrFree(Vec_Str_t *p)
#define ABC_NAMESPACE_IMPL_END
static void Abc_Print(int level, const char *format,...)
#define ABC_NAMESPACE_IMPL_START
static Vec_Ptr_t * Vec_PtrAlloc(int nCap)
FUNCTION DEFINITIONS ///.
Vec_Ptr_t * CmdCollectFileNames()
ABC_NAMESPACE_IMPL_START int Util_SignalSystem(const char *cmd)
DECLARATIONS ///.
#define Vec_PtrForEachEntry(Type, vVec, pEntry, i)
MACRO DEFINITIONS ///.
void Load_Init(Abc_Frame_t *pAbc)