version 1.32, 1996/10/07 02:05:59
|
version 1.33, 1996/11/06 15:29:06
|
Line 21
|
Line 21
|
#include "HText.h" |
#include "HText.h" |
|
|
#include "HTRobot.h" /* Implemented here */ |
#include "HTRobot.h" /* Implemented here */ |
|
#include "HTWatch.h" |
|
|
#ifndef W3C_VERSION |
#ifndef W3C_VERSION |
#define W3C_VERSION "unspecified" |
#define W3C_VERSION "Unspecified" |
#endif |
#endif |
|
|
#define APP_NAME "W3CRobot" |
#define APP_NAME "W3CRobot" |
Line 97 PUBLIC HTStyleSheet * styleSheet = NULL;
|
Line 98 PUBLIC HTStyleSheet * styleSheet = NULL;
|
|
|
/* ------------------------------------------------------------------------- */ |
/* ------------------------------------------------------------------------- */ |
|
|
|
PUBLIC int HTWatch(int id, void * obj, const char * fmt, ...) |
|
{ |
|
va_list pArgs; |
|
va_start(pArgs, fmt); |
|
fprintf(stderr, "id: %x obj: %p: ", id, obj); |
|
return vfprintf(stderr, fmt, pArgs); |
|
} |
|
|
/* Standard (non-error) Output |
/* Standard (non-error) Output |
** --------------------------- |
** --------------------------- |
*/ |
*/ |
Line 579 int main (int argc, char ** argv)
|
Line 588 int main (int argc, char ** argv)
|
HTNet_addAfter(terminate_handler, NULL, NULL, HT_ALL, HT_FILTER_LAST); |
HTNet_addAfter(terminate_handler, NULL, NULL, HT_ALL, HT_FILTER_LAST); |
|
|
/* Set timeout on sockets */ |
/* Set timeout on sockets */ |
HTEventrg_registerTimeout(mr->tv, mr->timeout, timeout_handler, NO); |
HTEventList_registerTimeout(mr->tv, mr->timeout, timeout_handler, NO); |
|
|
/* Start the request */ |
/* Start the request */ |
if (keywords) /* Search */ |
if (keywords) /* Search */ |
Line 594 int main (int argc, char ** argv)
|
Line 603 int main (int argc, char ** argv)
|
} |
} |
|
|
/* Go into the event loop... */ |
/* Go into the event loop... */ |
HTEventrg_loop(mr->request); |
HTEventList_loop(mr->request); |
|
|
/* Only gets here if event loop fails */ |
/* Only gets here if event loop fails */ |
Cleanup(mr, 0); |
Cleanup(mr, 0); |