home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lynx2.8.1dev.10.tar.gz / lynx2.8.1dev.10.tar / lynx2-8 / src / LYGlobalDefs.h < prev    next >
C/C++ Source or Header  |  1998-05-10  |  13KB  |  343 lines

  1. /* global variable definitions */
  2.  
  3. #ifndef LYGLOBALDEFS_H
  4. #define LYGLOBALDEFS_H
  5.  
  6. #ifndef USERDEFS_H
  7. #include <userdefs.h>
  8. #endif /* USERDEFS_H */
  9.  
  10. #ifndef HTUTILS_H
  11. #include <HTUtils.h>
  12. #endif /* HTUTILS_H */
  13.  
  14. #ifndef LYSTRUCTS_H
  15. #include <LYStructs.h>
  16. #endif /* LYSTRUCTS_H */
  17.  
  18. #ifdef SOCKS
  19. extern BOOLEAN socks_flag;
  20. #endif /* SOCKS */
  21.  
  22. #ifdef IGNORE_CTRL_C
  23. extern BOOLEAN sigint;
  24. #endif /* IGNORE_CTRL_C */
  25.  
  26. #ifdef VMS
  27. extern char *mail_adrs;
  28. extern BOOLEAN UseFixedRecords; /* convert binary files to FIXED 512 records */
  29. #endif /* VMS */
  30.  
  31. #ifndef VMS
  32. extern char *NNTPSERVER_putenv_cmd;
  33. extern char *http_proxy_putenv_cmd;
  34. extern char *https_proxy_putenv_cmd;
  35. extern char *ftp_proxy_putenv_cmd;
  36. extern char *gopher_proxy_putenv_cmd;
  37. extern char *cso_proxy_putenv_cmd;
  38. extern char *news_proxy_putenv_cmd;
  39. extern char *newspost_proxy_putenv_cmd;
  40. extern char *newsreply_proxy_putenv_cmd;
  41. extern char *snews_proxy_putenv_cmd;
  42. extern char *snewspost_proxy_putenv_cmd;
  43. extern char *snewsreply_proxy_putenv_cmd;
  44. extern char *nntp_proxy_putenv_cmd;
  45. extern char *wais_proxy_putenv_cmd;
  46. extern char *finger_proxy_putenv_cmd;
  47. extern char *no_proxy_putenv_cmd;
  48. extern char *list_format;
  49. #endif /* !VMS */
  50.  
  51. #ifdef VMS
  52. extern char *LYCSwingPath;
  53. #endif /* VMS */
  54.  
  55. #ifdef DIRED_SUPPORT
  56. extern BOOLEAN lynx_edit_mode;
  57. extern BOOLEAN no_dired_support;
  58. extern BOOLEAN dir_list_style;
  59. extern HTList *tagged;
  60. #define FILES_FIRST 1
  61. #define MIXED_STYLE 2
  62. #ifdef OK_OVERRIDE
  63. extern BOOLEAN prev_lynx_edit_mode;
  64. #endif /* OK_OVERRIDE */
  65. #ifdef OK_PERMIT
  66. extern BOOLEAN no_change_exec_perms;
  67. #endif /* OK_PERMIT */
  68. #endif /* DIRED_SUPPORT */
  69.  
  70. extern int HTCacheSize;  /* the number of documents cached in memory */
  71. #if defined(VMS) && defined(VAXC) && !defined(__DECC)
  72. extern int HTVirtualMemorySize; /* bytes allocated and not yet freed  */
  73. #endif /* VMS && VAXC && !__DECC */
  74.  
  75. #if defined(EXEC_LINKS) || defined(EXEC_SCRIPTS)
  76. extern BOOLEAN local_exec;  /* TRUE to enable local program execution */
  77. extern BOOLEAN local_exec_on_local_files; /* TRUE to enable local program  *
  78.                        * execution in local files only */
  79. #endif /* defined(EXEC_LINKS) || defined(EXEC_SCRIPTS) */
  80.  
  81. #if defined(LYNXCGI_LINKS) && !defined(VMS)  /* WebSter Mods -jkt */
  82. extern char *LYCgiDocumentRoot;  /* DOCUMENT_ROOT in the lynxcgi env */
  83. #endif /* LYNXCGI_LINKS */
  84.  
  85. /* Values to which keypad_mode can be set */
  86. #define NUMBERS_AS_ARROWS 0
  87. #define LINKS_ARE_NUMBERED 1
  88. #define LINKS_AND_FORM_FIELDS_ARE_NUMBERED 2
  89.  
  90. #define HIDDENLINKS_MERGE    0
  91. #define HIDDENLINKS_SEPARATE    1
  92. #define HIDDENLINKS_IGNORE    2
  93.  
  94. #define NOVICE_MODE       0
  95. #define INTERMEDIATE_MODE 1
  96. #define ADVANCED_MODE       2
  97. extern BOOLEAN LYUseNoviceLineTwo;  /* True if TOGGLE_HELP is not mapped */
  98.  
  99. #define MAX_LINE 1024    /* Hope that no window is larger than this */
  100. extern char star_string[MAX_LINE + 1]; /* from GridText.c */
  101. #define STARS(n) \
  102.  ((n) >= MAX_LINE ? star_string : &star_string[(MAX_LINE-1)] - (n))
  103. #define DIRNAMESIZE 256
  104.  
  105. #define SHOW_COLOR_UNKNOWN    (-1)
  106. #define SHOW_COLOR_NEVER  0
  107. #define SHOW_COLOR_OFF      1
  108. #define SHOW_COLOR_ON      2
  109. #define SHOW_COLOR_ALWAYS 3
  110. extern int LYShowColor;        /* Show color or monochrome?        */
  111. extern int LYChosenShowColor;    /* extended color/monochrome choice */
  112. extern int LYrcShowColor;    /* ... as read or last written        */
  113.  
  114. extern BOOLEAN LYShowCursor;    /* Show the cursor or hide it?        */
  115. extern BOOLEAN verbose_img;    /* display filenames of images?     */     
  116. extern BOOLEAN LYUseDefShoCur;    /* Command line -show_cursor toggle */
  117. extern BOOLEAN LYCursesON;  /* start_curses()->TRUE, stop_curses()->FALSE */
  118. extern BOOLEAN LYUserSpecifiedURL;  /* URL from a goto or document? */
  119. extern BOOLEAN LYJumpFileURL;   /* URL from the jump file shortcuts? */
  120. extern BOOLEAN jump_buffer;     /* TRUE if offering default shortcut */
  121. extern BOOLEAN goto_buffer;     /* TRUE if offering default goto URL */
  122. extern char *LYRequestTitle;    /* newdoc.title in calls to getfile() */
  123. extern char *jumpprompt;        /* The default jump statusline prompt */
  124. extern int Newline;        /* HText_pageDisplay() requires it */
  125. extern int more;  /* is there more document to display? */
  126. extern int display_lines; /* number of lines in the display */
  127. extern int www_search_result;
  128. extern char *checked_box;  /* form boxes */
  129. extern char *unchecked_box;  /* form boxes */
  130. extern char *checked_radio;  /* form radio buttons */
  131. extern char *unchecked_radio;  /* form radio buttons */
  132. extern char *empty_string;
  133. extern char *LynxHome;
  134. extern char *startfile;
  135. extern char *helpfile;
  136. extern char *helpfilepath;
  137. extern char *lynxjumpfile;
  138. extern char *lynxlistfile;
  139. extern char *lynxlinksfile;
  140. extern char *display;
  141. extern char *language;
  142. extern char *pref_charset;    /* Lynx's preferred character set - MM */
  143. extern BOOLEAN LYNewsPosting;    /* News posting supported if TRUE */
  144. extern char *LynxSigFile;    /* Signature file, in or off home */
  145. extern char *system_mail;
  146. extern char *system_mail_flags;
  147. extern char *lynx_temp_space;
  148. extern char *lynx_save_space;
  149. extern BOOLEAN LYforce_HTML_mode;
  150. extern BOOLEAN LYforce_no_cache;
  151. extern BOOLEAN LYoverride_no_cache;  /* don't need fresh copy, from history */
  152. extern BOOLEAN LYinternal_flag; /* don't need fresh copy, was internal link */
  153. extern BOOLEAN LYresubmit_posts;
  154. extern BOOLEAN user_mode; /* novice or advanced */
  155. extern BOOLEAN is_www_index;
  156. extern BOOLEAN dump_output_immediately;
  157. extern int dump_output_width;
  158. extern BOOLEAN lynx_mode;
  159. extern BOOLEAN bold_headers;
  160. extern BOOLEAN bold_H1;
  161. extern BOOLEAN bold_name_anchors;
  162. extern BOOLEAN recent_sizechange;
  163. extern BOOLEAN telnet_ok;
  164. extern BOOLEAN news_ok;
  165. extern BOOLEAN ftp_ok;
  166. extern BOOLEAN rlogin_ok;
  167. extern BOOLEAN no_print;    /* TRUE to disable printing */
  168. extern BOOLEAN system_editor; /* True if locked-down editor */
  169. extern BOOLEAN child_lynx;      /* TRUE to exit with an arrow */
  170. extern BOOLEAN error_logging;     /* TRUE to mail error messages */
  171. extern BOOLEAN check_mail;        /* TRUE to report unread/new mail messages */
  172. extern BOOLEAN vi_keys;           /* TRUE to turn on vi-like key movement */
  173. extern BOOLEAN emacs_keys;        /* TRUE to turn on emacs-like key movement */
  174. extern BOOLEAN keypad_mode;       /* is set to either NUMBERS_AS_ARROWS *
  175.                    * or LINKS_ARE_NUMBERED         */
  176. extern BOOLEAN case_sensitive;    /* TRUE to turn on case sensitive search */
  177. extern BOOLEAN no_inside_telnet;  /* this and following are restrictions */
  178. extern BOOLEAN no_outside_telnet;
  179. extern BOOLEAN no_telnet_port;
  180. extern BOOLEAN no_inside_news;  
  181. extern BOOLEAN no_outside_news;
  182. extern BOOLEAN no_inside_ftp;
  183. extern BOOLEAN no_outside_ftp;
  184. extern BOOLEAN no_inside_rlogin;
  185. extern BOOLEAN no_outside_rlogin;
  186. extern BOOLEAN no_suspend;
  187. extern BOOLEAN no_editor;
  188. extern BOOLEAN no_shell;
  189. extern BOOLEAN no_bookmark;
  190. extern BOOLEAN no_multibook;
  191. extern BOOLEAN no_bookmark_exec;
  192. extern BOOLEAN no_option_save;
  193. extern BOOLEAN no_print;
  194. extern BOOLEAN no_download;
  195. extern BOOLEAN no_disk_save;
  196. extern BOOLEAN no_exec;
  197. extern BOOLEAN no_lynxcgi;
  198. extern BOOLEAN exec_frozen;
  199. extern BOOLEAN no_goto;
  200. extern BOOLEAN no_goto_cso;
  201. extern BOOLEAN no_goto_file;
  202. extern BOOLEAN no_goto_finger;
  203. extern BOOLEAN no_goto_ftp;
  204. extern BOOLEAN no_goto_gopher;
  205. extern BOOLEAN no_goto_http;
  206. extern BOOLEAN no_goto_https;
  207. extern BOOLEAN no_goto_lynxcgi;
  208. extern BOOLEAN no_goto_lynxexec;
  209. extern BOOLEAN no_goto_lynxprog;
  210. extern BOOLEAN no_goto_mailto;
  211. extern BOOLEAN no_goto_news;
  212. extern BOOLEAN no_goto_nntp;
  213. extern BOOLEAN no_goto_rlogin;
  214. extern BOOLEAN no_goto_snews;
  215. extern BOOLEAN no_goto_telnet;
  216. extern BOOLEAN no_goto_tn3270;
  217. extern BOOLEAN no_goto_wais;
  218. extern BOOLEAN no_jump;
  219. extern BOOLEAN no_file_url;
  220. extern BOOLEAN no_newspost;
  221. extern BOOLEAN no_mail;
  222. extern BOOLEAN no_dotfiles;
  223. extern BOOLEAN no_useragent;
  224. extern BOOLEAN no_statusline;
  225. extern BOOLEAN no_filereferer;
  226. extern BOOLEAN local_host_only;
  227. extern BOOLEAN override_no_download;
  228. extern BOOLEAN show_dotfiles;    /* From rcfile if no_dotfiles is false */
  229. extern char *indexfile;
  230. extern char *personal_mail_address;
  231. extern char *homepage;          /* startfile or command line argument */
  232. extern char *editor;          /* if non empty it enables edit mode with
  233.                    * the editor that is named */
  234. extern char *jumpfile;
  235. extern char *bookmark_page;
  236. extern char *BookmarkPage;
  237. extern char *personal_type_map;
  238. extern char *global_type_map;
  239. extern char *global_extension_map;
  240. extern char *personal_extension_map;
  241. extern char *LYHostName;
  242. extern char *LYLocalDomain;
  243. extern BOOLEAN use_underscore;
  244. extern BOOLEAN nolist;
  245. extern BOOLEAN historical_comments;
  246. extern BOOLEAN minimal_comments;
  247. extern BOOLEAN soft_dquotes;
  248. extern BOOLEAN LYCancelDownload;
  249. extern BOOLEAN LYValidate;
  250. extern BOOLEAN LYPermitURL;
  251. extern BOOLEAN enable_scrollback; /* Clear screen before displaying new page */
  252. extern BOOLEAN keep_mime_headers; /* Include mime headers and *
  253.                    * force source dump          */
  254. extern BOOLEAN no_url_redirection;   /* Don't follow URL redirections */
  255. extern BOOLEAN display_partial;      /* Display document during download */
  256. extern char *form_post_data;         /* User data for post form */
  257. extern char *form_get_data;          /* User data for get form */
  258. extern char *http_error_file;        /* Place HTTP status code in this file */
  259. extern char *authentication_info[2]; /* Id:Password for protected documents */
  260. extern char *proxyauth_info[2];      /* Id:Password for protected proxy server */
  261. extern BOOLEAN HEAD_request;         /* Do a HEAD request */
  262. extern BOOLEAN scan_for_buried_news_references;
  263. extern BOOLEAN bookmark_start;      /* Use bookmarks as startfile */
  264. extern BOOLEAN clickable_images;
  265. extern BOOLEAN pseudo_inline_alts;
  266. extern BOOLEAN crawl;
  267. extern BOOLEAN traversal;
  268. extern BOOLEAN check_realm;
  269. extern char * startrealm;
  270. extern BOOLEAN more_links;
  271. extern int     ccount;
  272. extern BOOLEAN LYCancelledFetch;
  273. extern char * LYToolbarName;
  274. extern int InfoSecs;
  275. extern int MessageSecs;
  276. extern int AlertSecs;
  277. extern char * LYUserAgent;        /* Lynx User-Agent header */
  278. extern char * LYUserAgentDefault;    /* Lynx default User-Agent header */
  279. extern BOOLEAN LYNoRefererHeader;    /* Never send Referer header? */
  280. extern BOOLEAN LYNoRefererForThis;    /* No Referer header for this URL? */
  281. extern BOOLEAN LYNoFromHeader;        /* Never send From header?    */
  282. extern BOOLEAN LYListNewsNumbers;
  283. extern BOOLEAN LYUseMouse;
  284. extern BOOLEAN LYListNewsDates;
  285. extern BOOLEAN LYRawMode;
  286. extern BOOLEAN LYDefaultRawMode;
  287. extern BOOLEAN LYUseDefaultRawMode;
  288. extern char *UCAssume_MIMEcharset;
  289. extern char *UCAssume_localMIMEcharset;
  290. extern char *UCAssume_unrecMIMEcharset;
  291. extern BOOLEAN LYisConfiguredForX;
  292. extern char *URLDomainPrefixes;
  293. extern char *URLDomainSuffixes;
  294. extern BOOLEAN startfile_ok;
  295. extern BOOLEAN LYSelectPopups;        /* Cast popups to radio buttons? */
  296. extern BOOLEAN LYUseDefSelPop;        /* Command line -popup toggle    */
  297. extern BOOLEAN LYMultiBookmarks;        /* Multi bookmark support on?     */
  298. extern BOOLEAN LYMBMBlocked;        /* Force MBM support off?     */
  299. extern BOOLEAN LYMBMAdvanced;        /* MBM statusline for ADVANCED?     */
  300. extern int LYStatusLine;        /* Line for statusline() or -1   */
  301. extern BOOLEAN LYCollapseBRs;        /* Collapse serial BRs?         */
  302. extern BOOLEAN LYSetCookies;        /* Process Set-Cookie headers?     */
  303. extern char *XLoadImageCommand;        /* Default image viewer for X     */
  304. #ifdef USE_EXTERNALS
  305. extern BOOLEAN no_externals; /* don't allow the use of externals */
  306. #endif
  307. extern BOOLEAN LYNoISMAPifUSEMAP;    /* Omit ISMAP link if MAP present? */
  308. extern int LYHiddenLinks;
  309.  
  310. extern BOOL New_DTD; 
  311.  
  312. #define BOOKMARK_TITLE "Bookmark file"
  313. #define MOSAIC_BOOKMARK_TITLE "Converted Mosaic Hotlist"
  314. #define MBM_V_MAXFILES  25    /* Max number of sub-bookmark files */
  315. /*
  316.  *  Arrays that holds the names of sub-bookmark files
  317.  *  and their descriptions.
  318.  */
  319. extern char *MBM_A_subbookmark[MBM_V_MAXFILES+1];
  320. extern char *MBM_A_subdescript[MBM_V_MAXFILES+1];
  321. extern FILE *LYTraceLogFP;        /* Pointer for TRACE log     */
  322. extern char *LYTraceLogPath;        /* Path for TRACE log         */
  323. extern BOOLEAN LYUseTraceLog;        /* Use a TRACE log?         */
  324. extern BOOLEAN LYSeekFragMAPinCur;
  325. extern BOOLEAN LYSeekFragAREAinCur;
  326. extern BOOLEAN LYStripDotDotURLs;    /* Try to fix ../ in some URLs?  */
  327. extern BOOLEAN LYForceSSLCookiesSecure;
  328. extern BOOLEAN LYNoCc;
  329. extern BOOLEAN LYPreparsedSource;    /* Show source as preparsed?     */
  330. extern BOOLEAN LYPrependBaseToSource;
  331. extern BOOLEAN LYPrependCharsetToSource;
  332. extern BOOLEAN LYQuitDefaultYes;
  333.  
  334. #ifdef RAWDOSKEYHACK
  335. extern BOOLEAN raw_dos_key_hack; /* Turn on and off DOS key hack */
  336. #endif /* RAWDOSKEYHACK */
  337.  
  338. #ifndef VMS
  339. extern BOOLEAN LYNoCore;
  340. #endif /* !VMS */
  341.  
  342. #endif /* LYGLOBALDEFS_H */
  343.