int
main (int argc, char** argv)
{
p4_Thread* thread;
p4_Session session;
int i;
if ((i=p4_SetOptions (&session, 0, argc, argv))) return i-1;
# ifndef PFE_WITH_MODULES
{ extern p4Words P4WORDS(internal);
if ((i=p4_SetModules (&session, &(P4WORDS(internal))))) return i-1;
}
# endif
thread = (p4_Thread*) memory;
memset (thread, 0, sizeof(p4_Thread));
p4_SetDictMem(thread, memory+sizeof(p4_Thread));
thread->set = &session;
return p4_Exec (thread);
} |