aboutsummaryrefslogtreecommitdiffstats
path: root/indep.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2019-11-08entities: support ' entityKyle J. McKay1-1/+1
The XHTML standard encompasses the XML standard. From the beginning, the XML standard [1] has always included required support for five character entities: 1. the ampersand (&) as &amp; 2. the left angle bracket (<) as &lt; 3. the right angle bracket (>) as &gt; 4. the double-quote character (") as &quot; 5. the apostrophe or single-quote character (') as &apos; See section "2.4 Character Data and Markup" of the XML standard [1] for further details. Add support for the character single-quote character entity (&apos;) in order to fully support XHTML pages. [1]: https://www.w3.org/TR/REC-xml/ Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
2015-01-15Add overflow detectionScarlett1-6/+1
Origin: http://marc.info/?l=openbsd-ports&m=142090828929750&w=2 * main.c: Call exit(1) when out of memory to avoid dereferencing null pointers when gc's malloc fails. * alloc.h: Replacements for w3m's allocation macros which add overflow detection and concentrate the macros in one file. * indep.h, libwc/charset.c, libwc/status.c, matrix.c: Use the overflow-detecting allocation macros from alloc.h.
2013-10-14Workaround of GC crash on Cygwin64AIDA Shinra1-0/+23
Patch from <http://www.j10n.org/files/w3m-cvs-1.1055-win64gc.patch>, [w3m-dev:04469] on 2013-10-14.
2013-04-08Support the siteconf featureTatsuya Kinoshita1-0/+1
Patch to support the siteconf feature, from [w3m-dev 04463] on 2012-06-27, provided by AIDA Shinra.
2011-05-04Adding upstream version 0.5.1upstream/0.5.1Tatsuya Kinoshita1-0/+80
2003-09-22merge m17n patchFumitoshi UKAI1-2/+2
add libwc
2003-07-26[w3m-dev 03945] Re: application/xhtml+xml supportFumitoshi UKAI1-1/+2
* Makefile.in (ETC_DIR): added (CONF_DIR): added (DEFS): add CONF_DIR (MAKE_ARGS): add CONF_DIR * config.h.in (SYS_MAILCAP): use CONF_DIR (SYS_URIMETHODMAP): use CONF_DIR * func.c (sys_current_keymap_file): added (interpret_keymap): added (initKeymap): use interpret_keymap (interpret_mouse_action): added (initMouseAction): use interpret_mouse_action * indep.c (w3m_conf_dir): added * indep.h (w3m_conf_dir): added * menu.c (interpret_menu): added (initMenu): use interpret_menu * proto.h (confFile): added * rc.c (init_rc): read config file by interpret_rc (confFile): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-04-07[w3m-dev 03856] <gc.h>Fumitoshi UKAI1-2/+2
* backend.c entity.c fm.h hash.c indep.c indep.h matrix.c textlist.c: s/"gc.h"/<gc.h>/ From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-02-05[w3m-dev 03730] display decoded URLFumitoshi UKAI1-4/+18
* anchor.c (link_list_panel): support DecodeURL * display.c (make_lastline_link): support DecodeURL * etc.c (url_unquote_conv): added * fm.h (DecodeURL): added * history.c (historyBuffer): support DecodeURL * indep.c (QUOTE_MAP): added (HTML_QUOTE_MAP): added (html_quote_char): deleted (url_quote): use is_url_quote (file_quote): use is_file_quote (is_url_safe): deleted (Str_form_quote): use is_url_unsafe (Str_url_unquote): add safe args (is_shell_safe): delete (shell_quote): use is_shell_unsafe * indep.h (QUOTE_MAP): added (HTML_QUOTE_MAP): added (HTML_QUOTE_MASK): added (SHELL_UNSAFE_MASK): added (URL_QUOTE_MASK): added (FILE_QUOTE_MASK): added (URL_UNSAFE_MASK): added (GET_QUOTE_TYPE): added (is_html_quote): added (is_shell_unsafe): added (is_url_quote): added (is_file_quote): added (is_url_unsafe): added (html_quote_char): added (html_quote_char): deleted (Str_url_unquote): added safe (form_unquote): Str_url_unquote changes * linein.c (_prev): support DecodeURL (_next): ditto * main.c (goURL0): support DecodeURL (_peekURL): ditto (curURL): ditto * map.c (follow_map_panel): support DecodeURL (append_map_info): ditto (append_link_info): ditto (append_frame_info): ditto (page_info_panel): ditto * menu.c (initSelectMenu): delete SCM_LOCAL_CGI support DecodeURL (initSelTabMenu): delete SCM_LOCAL_CGI support DecodeURL (link_menu): support DecodeURL * parsetagx.c (parse_tag): is_html_quote * proto.h (url_unquote_conv): added * rc.c (CMT_DECODE_URL): added (params1): add decode_url * url.c (openURL): Str_url_unquote non safe From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15[w3m-dev 03640] Re: cleanup (don't close connection of news server)Fumitoshi UKAI1-4/+5
* anchor.c (_put_ahchor_news): always conv_str (_put_anchor_all): always conv_str * etc.c (close_all_fds): deleted (close_all_fds_except): added, except fd=f is left open * file.c (guess_filename): added (UFhalfclose): added (convertLine): cleanup_line if not raw mode check uf (readHeader): always convertLine (loadGeneralFile): rewrite (loadGopherDir): return Str, args change to ParsedURL and code rewrite (saveBuffer): always conv_str (_doFileCopy): close_all_fds (doFileSave): close_all_fds_except (uncompress_stream): dup, close_all_fds_except * form.c (form_fputs_decode): always conv_str (input_textarea): convertLine * frame.c (createFrameFile): convertLine * ftp.c (loadFTPDir): arg code rewrite (readFTPDir): convertLine * html.h (UFfileno): added * image.c (loadImage): close_all_fds * indep.h (RAW_MODE): added * local.c (loadLocalDir): return Str (dirBuffer): rewrite (localcgi_popen_r): close_all_fds * main.c (main): check SCM_LOCAL print err_msg * news.c (news_command): args cmd and arg (news_quit): news_command (openNewsStream): news_command (readNewsgroup): deleted (loadNewsgroup): added (closeNews): added * proto.h (loadGopherDir): update (conv_str): define for no JP_CHARSET (readFTPDir): deleted (loadFTPDir): added (readNewsgroup): deleted (loadNewsgroup): added (dirBuffer): deleted (loadLocalDir): added (close_all_fds): defined by close_all_fds_except (close_all_fds_except): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-08[w3m-dev 03616] Re: data: URL schemeFumitoshi UKAI1-3/+3
* file.c (loadGeneralFile): check SCM_DATA (loadImageBuffer): newBuffer() * html.h (SCM_DATA): added * indep.c (url_unquote): deleted (Str_url_unquote): renamed from Str_form_unquote + is decoded is_form only * indep.h (url_unquote): deleted (Str_url_unquote): added (Str_form_unquote): define by Str_url_unquote * main.c (followA): file_unquote (cmd_loadURL): file_unquote * url.c (DefaultPort): add for data: (schemetable): add "data" (DefaultFile): SCM_FTPDIR (parseURL): scheme copied from current (parseURL2): SCM_DATA check SCM_FTP, SCM_FTPDIR (_parsedURL2Str): add data in scheme_str handle SCM_DATA SCM_FTPDIR (openURL): file_unquote handle SCM_DATA From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-09[w3m-dev 03398] auxbindirFumitoshi UKAI1-1/+2
* XMakefile: EXT_TARGETS -> LIB_TARGETS, AUXBIN_TARGETS * config.h.dist: add AUXBIN_DIR LIB_DIR is cgi-bin * configure: add -auxbindir add AUXBIN_DIR LIB_DIR is cgi-bin EXT_TARGETS -> LIB_TARGETS, AUXBIN_TARGETS * file.c (compression_decoder): libfile_p -> auxbin_p (check_command): libfile_p -> auxbin_p use w3m_auxbin_dir() instead of w3m_lib_dir() (acceptableEncoding): libfile_p -> auxbin_p (xface2xpm): use auxbinFile() instead of libFile() (uncompress_stream): libfile_p -> auxbin_p use auxbinFile() instead of libFile() * image.c (getCharSize): use w3m_auxbin_dir() instead of w3m_lib_dir() (openImgdisplay): use w3m_auxbin_dir() instead of w3m_lib_dir() * indep.c (w3m_auxbin_dir): added * indep.h (w3m_auxbin_dir): added * proto.h (auxbinFile): added * rc.c (auxbinFile): added (libFile): #if 0, no longer used (helpFile): used only #ifndef USE_HELP_CGI * NEWS: separate auxbindir and libdir (local-CGI, file:///$LIB/) From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-08-20Debian Bug#157098: wrong file presentation on large filesFumitoshi UKAI1-1/+2
from "Eduard Bloch" <blade@debian.org> * configure (clen_t): added (HAVE_STRTOLL): added (HAVE_STRTOQ): added (HAVE_ATOLL): added (HAVE_ATOQ): added * config.h.dist: ditto * file.c (current_content_length): s/int/clen_t/ (loadGeneralFile): s/atoi/strtoclen/ (convert_size): s/int/clen_t/ (convert_size2): s/int/clen_t/ (showProgress): s/int/clen_t/ (loadHTMLstream): s/int/clen_t/ linelen, trbyte (loadBuffer): ditto (getNextPage): s/int/clen_t/ linelen (save2tmp): s/int/clen_t/ linelen, trbye (_MoveFile): s/int/clen_t/ linelen, trbye * fm.h (_Buffer): s/int/clen_t/ linelen, trbye * ftp.c (size_int2str): s/long/clen_t/ (ex_ftpdir_name_size_date): s/long/clen_t/ * indep.c (strtoclen): added * indep.h (strtoclen): added * proto.h (showProgress): s/int/clen_t/ From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-06-07[w3m-dev 03207] strchr(), strcasecmp(), and strncasecmp()Fumitoshi UKAI1-1/+8
* etc.c (strchr): removed (strcasecmp): removed (strncasecmp): removed * indep.c (strchr): moved, cast (strcasecmp): moved, fix the case that s1 = "" (strncasecmp): moved, fix the case that s1 is shorter than s2 * indep.h (strchr): added (strcasecmp): added (strncasecmp): added From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
2001-11-27[w3m-dev 02574] sysconfdirFumitoshi UKAI1-1/+2
From: Fumitoshi UKAI <ukai@debian.or.jp>
2001-11-26[w3m-dev 02555]Fumitoshi UKAI1-2/+5
From: Fumitoshi UKAI <ukai@debian.or.jp>
2001-11-21[w3m-dev 02479] #ifdef cleanupsFumitoshi UKAI1-1/+4
make -> $(MAKE)
2001-11-20add rcsidsFumitoshi UKAI1-0/+1
2001-11-15Update to w3m-0.2.1-inu-1.6.Akinori Ito1-2/+1
2001-11-09Updates from 0.2.1 into 0.2.1-inu-1.5release-0-2-1-inu-1-5Akinori Ito1-9/+14