int
main (int argc, char** argv)
{
p4_Session* session;
p4_Thread* thread;
int i;
session = p4_NewSessionOptions (500);
if (!session) return 1;
if ((i=p4_AddOptions (session, argc, argv))) return i-1;
# ifndef PFE_WITH_MODULES
{ extern p4Words P4WORDS(internal);
if ((i=p4_SetModules (session, &(P4WORDS(internal))))) return i-1;
}
# endif
# ifdef PFE_WITH_STATIC_DICT
session->total_size = P4_KB*1024;
p4_SetDictMem(thread, memory);
# endif
thread = p4_NewThreadOptions(session);
i = p4_Exec (thread);
p4_FreeThreadPtr (thread);
p4_FreeOptions (i, session);
p4_FreeSessionPtr (session);
return i;
} |