//////////////
-static hoople_service *_global_hoople_service = NIL;
+static hoople_service *_global_hoople_service = NULL_POINTER;
// this static object is set by the setup() method. it should only come
// into existence once during a program's lifetime.
// zap all of them using our signal.
for (int i = 0; i < pids.length(); i++) {
-//would linux be better served with sigterm also?
-#ifdef __UNIX__
+//hmmm: would linux be better served with sigterm instead, like we used to do for windoze?
+//#ifndef _MSC_VER
kill(pids[i], SIGHUP);
-#endif
-#ifdef __WIN32__
-//lame--goes to whole program.
- raise(SIGTERM);
-#endif
+//#else
+////lame--goes to whole program.
+// raise(SIGTERM);
+//#endif
//hmmm: check results...
}
// setup signal handler for HUP signal. this is the one used to tell us
// to leave.
-#ifdef __UNIX__
+//#ifndef _MSC_VER
signal(SIGHUP, handle_OS_signal);
-#endif
+//#endif
// setup a handler for interrupt (e.g. ctrl-C) also.
signal(SIGINT, handle_OS_signal);
-#ifdef __WIN32__
- signal(SIGBREAK, handle_OS_signal);
-#endif
+//#ifdef _MSC_VER
+// signal(SIGBREAK, handle_OS_signal);
+//#endif
return true;
}
MSG msg;
msg.hwnd = 0; msg.message = 0; msg.wParam = 0; msg.lParam = 0;
- while (!alert.is_defunct() && (GetMessage(&msg, NIL, 0, 0)) {
+ while (!alert.is_defunct() && (GetMessage(&msg, NULL_POINTER, 0, 0)) {
TranslateMessage(&msg);
DispatchMessage(&msg);
}