37 #define NewString(str) \
38 ((str) != NULL ? (strcpy((char*)malloc((unsigned)strlen(str) + 1), str)) : NULL)
46 ,secondaryLoopEnabled(
TRUE)
47 ,alreadyInSecondaryLoop(
FALSE)
49 ,parentInteractor(NULL)
50 ,createdInteractor(NULL)
64 if(
argv[argi]!=NULL) free(
argv[argi]);
89 if(
argv[argi]!=NULL) free(
argv[argi]);
97 argv = (
char**)malloc(a_argc *
sizeof(
char*));
100 for(
G4int argi=0;argi<a_argc;argi++) {
113 if(a_argc!=NULL) *a_argc =
argc;
156 if(a_dispatcher==NULL)
return;
167 std::vector<G4DispatchFunction>::iterator
it;
169 if (*it == a_dispatcher) {
184 for(
G4int count=0;count<dispatchern;count++) {
187 if(
func(a_event)==
true)
return;
198 if(a_preAction==NULL)
return;
209 for(
G4int count=0;count<preActionn;count++) {
220 if(a_postAction==NULL)
return;
231 for(
G4int count=0;count<postActionn;count++) {
246 G4cout <<
"------------------------------------------" <<
G4endl;
247 G4cout <<
"You have entered a viewer secondary X event loop." <<
G4endl;
248 G4cout <<
"Quit it with an 'Escape' viewer button" <<
G4endl;
256 if(event==NULL)
break;
272 if(a_code==0) a_code = 1;
293 if(a_shell==NULL)
return;
295 shells.push_back(a_shell);
304 std::vector<G4Interactor>::iterator
it;
306 if (*it == a_shell) {