Adding upstream version 0.5.2
This commit is contained in:
44
fm.h
44
fm.h
@@ -1,4 +1,4 @@
|
||||
/* $Id: fm.h,v 1.125 2004/04/16 18:47:19 ukai Exp $ */
|
||||
/* $Id: fm.h,v 1.138 2007/05/30 04:47:24 inu Exp $ */
|
||||
/*
|
||||
* w3m: WWW wo Miru utility
|
||||
*
|
||||
@@ -53,7 +53,7 @@ typedef int wc_ces; /* XXX: not used */
|
||||
#define setlocale(category, locale) /* empty */
|
||||
#endif
|
||||
|
||||
#if ENABLE_NLS
|
||||
#ifdef ENABLE_NLS
|
||||
#include <libintl.h>
|
||||
#define _(String) gettext (String)
|
||||
#define N_(String) (String)
|
||||
@@ -166,6 +166,15 @@ void bzero(void *, int);
|
||||
#define PE_ACTIVE 0x80
|
||||
#define PE_VISITED 0x4000
|
||||
|
||||
/* Extra effect */
|
||||
#define PE_EX_ITALIC 0x01
|
||||
#define PE_EX_INSERT 0x02
|
||||
#define PE_EX_STRIKE 0x04
|
||||
|
||||
#define PE_EX_ITALIC_E PE_UNDER
|
||||
#define PE_EX_INSERT_E PE_UNDER
|
||||
#define PE_EX_STRIKE_E PE_STAND
|
||||
|
||||
#define CharType(c) ((c)&P_CHARTYPE)
|
||||
#define CharEffect(c) ((c)&(P_EFFECT|PC_SYMBOL))
|
||||
#define SetCharType(v,c) ((v)=(((v)&~P_CHARTYPE)|(c)))
|
||||
@@ -336,6 +345,7 @@ typedef struct _Line {
|
||||
typedef struct {
|
||||
int line;
|
||||
int pos;
|
||||
int invalid;
|
||||
} BufferPoint;
|
||||
|
||||
#ifdef USE_IMAGE
|
||||
@@ -513,6 +523,13 @@ typedef struct _DownloadList {
|
||||
} DownloadList;
|
||||
#define DOWNLOAD_LIST_TITLE "Download List Panel"
|
||||
|
||||
#define COPY_BUFROOT(dstbuf, srcbuf) {\
|
||||
(dstbuf)->rootX = (srcbuf)->rootX; \
|
||||
(dstbuf)->rootY = (srcbuf)->rootY; \
|
||||
(dstbuf)->COLS = (srcbuf)->COLS; \
|
||||
(dstbuf)->LINES = (srcbuf)->LINES; \
|
||||
}
|
||||
|
||||
#define COPY_BUFPOSITION(dstbuf, srcbuf) {\
|
||||
(dstbuf)->topLine = (srcbuf)->topLine; \
|
||||
(dstbuf)->currentLine = (srcbuf)->currentLine; \
|
||||
@@ -535,7 +552,7 @@ typedef struct _DownloadList {
|
||||
|
||||
#define FONT_STACK_SIZE 5
|
||||
|
||||
#define FONTSTAT_SIZE 4
|
||||
#define FONTSTAT_SIZE 7
|
||||
|
||||
#define _INIT_BUFFER_WIDTH (COLS - (showLineNum ? 6 : 1))
|
||||
#define INIT_BUFFER_WIDTH ((_INIT_BUFFER_WIDTH > 0) ? _INIT_BUFFER_WIDTH : 0)
|
||||
@@ -583,7 +600,10 @@ struct readbuffer {
|
||||
|
||||
#define in_bold fontstat[0]
|
||||
#define in_under fontstat[1]
|
||||
#define in_stand fontstat[2]
|
||||
#define in_italic fontstat[2]
|
||||
#define in_strike fontstat[3]
|
||||
#define in_ins fontstat[4]
|
||||
#define in_stand fontstat[5]
|
||||
|
||||
#define RB_PRE 0x01
|
||||
#define RB_SCRIPT 0x02
|
||||
@@ -759,11 +779,11 @@ typedef struct http_request {
|
||||
*/
|
||||
|
||||
extern int LINES, COLS;
|
||||
#if defined(__CYGWIN__) && LANG == JA
|
||||
#if defined(__CYGWIN__)
|
||||
extern int LASTLINE;
|
||||
#else /* not defined(__CYGWIN__) || LANG != JA */
|
||||
#else /* not defined(__CYGWIN__) */
|
||||
#define LASTLINE (LINES-1)
|
||||
#endif /* not defined(__CYGWIN__) || LANG != JA */
|
||||
#endif /* not defined(__CYGWIN__) */
|
||||
|
||||
global int Tabstop init(8);
|
||||
global int IndentIncr init(4);
|
||||
@@ -776,6 +796,7 @@ global char RenderFrame init(FALSE);
|
||||
global char TargetSelf init(FALSE);
|
||||
global char PermitSaveToPipe init(FALSE);
|
||||
global char DecodeCTE init(FALSE);
|
||||
global char AutoUncompress init(FALSE);
|
||||
global char PreserveTimestamp init(TRUE);
|
||||
global char ArgvIsURL init(FALSE);
|
||||
global char MetaRefresh init(FALSE);
|
||||
@@ -869,7 +890,7 @@ global DownloadList *LastDL init(NULL);
|
||||
global int CurrentKey;
|
||||
global char *CurrentKeyData;
|
||||
global char *CurrentCmdData;
|
||||
|
||||
global char *w3m_reqlog;
|
||||
extern char *w3m_version;
|
||||
|
||||
#define DUMP_BUFFER 0x01
|
||||
@@ -964,7 +985,10 @@ global int UseDictCommand init(FALSE);
|
||||
global char *DictCommand init("file:///$LIB/w3mdict" CGI_EXTENSION);
|
||||
#endif /* USE_DICT */
|
||||
global int ignore_null_img_alt init(TRUE);
|
||||
global int displayInsDel init(TRUE);
|
||||
#define DISPLAY_INS_DEL_SIMPLE 0
|
||||
#define DISPLAY_INS_DEL_NORMAL 1
|
||||
#define DISPLAY_INS_DEL_FONTIFY 2
|
||||
global int displayInsDel init(DISPLAY_INS_DEL_NORMAL);
|
||||
global int FoldTextarea init(FALSE);
|
||||
global int FoldLine init(FALSE);
|
||||
#define DEFAULT_URL_EMPTY 0
|
||||
@@ -1009,6 +1033,7 @@ global wc_ces InnerCharset init(WC_CES_WTF); /* Don't change */
|
||||
global wc_ces DisplayCharset init(DISPLAY_CHARSET);
|
||||
global wc_ces DocumentCharset init(DOCUMENT_CHARSET);
|
||||
global wc_ces SystemCharset init(SYSTEM_CHARSET);
|
||||
global wc_ces BookmarkCharset init(SYSTEM_CHARSET);
|
||||
global char ExtHalfdump init(FALSE);
|
||||
global char FollowLocale init(TRUE);
|
||||
global char UseContentCharset init(TRUE);
|
||||
@@ -1075,6 +1100,7 @@ global MouseAction mouse_action;
|
||||
#ifdef USE_COOKIE
|
||||
global int default_use_cookie init(TRUE);
|
||||
global int use_cookie init(FALSE);
|
||||
global int show_cookie init(TRUE);
|
||||
global int accept_cookie init(FALSE);
|
||||
#define ACCEPT_BAD_COOKIE_DISCARD 0
|
||||
#define ACCEPT_BAD_COOKIE_ACCEPT 1
|
||||
|
Reference in New Issue
Block a user