bug 1083: Fix infinite loop in decompress_data
[elinks.git] / src / main / main.h
bloba4aa4fb6beffff065b67a32320491f52927743aa
1 #ifndef EL__MAIN_MAIN_H
2 #define EL__MAIN_MAIN_H
4 enum retval {
5 RET_OK, /* All is well */
6 RET_ERROR, /* Failed to fetch URL or write document when dumping */
7 RET_SIGNAL, /* Catched SIGTERM which forced program to stop */
8 RET_SYNTAX, /* Cmdline syntax error or bad or missing dump URL */
9 RET_FATAL, /* Fatal error occurred during initialization */
10 RET_PING, /* --remote "ping()" found no running ELinkses */
11 RET_REMOTE, /* --remote failed to connect to a running ELinks */
12 RET_COMMAND, /* Used internally for exiting from cmdline commands */
15 struct program {
16 int terminate;
17 enum retval retval;
18 unsigned char *path;
21 extern struct program program;
23 void shrink_memory(int);
25 #endif