Commit Graph

854 Commits

Author SHA1 Message Date
Fumitoshi UKAI
dfc317f6ab fix indent 2003-01-10 16:59:32 +00:00
Fumitoshi UKAI
c5ec364d23 [w3m-dev 03631] display current form item
* form.c (form2str): rewrite
* istream.c (ssl_get_certificate): fix typo
* map.c (follow_map_panel): valign=top
	(append_map_info): valign=top
	(append_link_info): valign=top
	(append_frame_info): <pre_int>
			html_quote ssl_certificate
	(page_info_panel): rewrite, html_quote
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:58:30 +00:00
Fumitoshi UKAI
ce8abe2b7c * doc/README.pre_form: update
* doc-jp/README.pre_form: ditto
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-10 16:51:08 +00:00
Fumitoshi UKAI
d29107a5da [w3m-dev 03630] improved pre_form
* form.c (pre_form): add re_url, name
	(add_pre_form): add name
			rewrite
	(loadPreForm): add "form"
	(preFormUpdateBuffer): handle re_url
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:48:45 +00:00
Fumitoshi UKAI
66d04cc161 [w3m-dev 03629] delete tmp file
* etc.c (tempfname): always file to delete
* file.c (xface2xpm): no need fileToDelete
	(readHeader): ditto
	(loadGeneralFile): ditto
	(loadHTMLBuffer): ditto
	(loadHTMLString): ditto
	(loadGopherDir): ditto
	(loadImageBuffer): ditto
	(doExternal): rewrite
	(doFileSave): no need fileToDelete
	(uncompress_stream): ditto
* fm.h (CurrentPid): added
* image.c (getImage): cache->touch to delete
* local.c (setLocalCookie): use CurrentPid
	(localcgi_post): fileToDelete
* main.c (main): CurrentPid
	(pipeBuf): no need fileToDelete
	(query_from_followform): CurrentPid
	(vmSrc): no need fileToDelete
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:42:14 +00:00
Fumitoshi UKAI
03cccce553 [w3m-dev 03628] Re: Error occured while reset
* file.c (doExternal): bufp = NULL, return 1
	(uncompress_stream): tempfname fileToDelete
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:33:38 +00:00
Fumitoshi UKAI
4976d0cfe9 [w3m-dev 03626] Re: relative URL
* url.c (parseURL2): copy if scheme is local or local-cgi
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:29:23 +00:00
Fumitoshi UKAI
b003a875e2 [w3m-dev 03625] keymap key SEARCH string
* main.c (srch): accept command argument
	(reMark): accept command argument
* Bonus/google.cgi: added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:23:52 +00:00
Fumitoshi UKAI
329cc01d50 [w3m-dev 03622] Re: Error occured while reset
* file.c (uncompress_stream): child process initialized
* terms.c (close_tty): close unless stdin,out,err
	(reset_tty): flush_tty, close_tty
	(write1): flush_tty
	(refresh): flush_tty
	(flush_tty): check ttyf
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:16:44 +00:00
Fumitoshi UKAI
83493cfb21 fix indent 2003-01-10 16:11:01 +00:00
Fumitoshi UKAI
900d16573c [w3m-dev 03620] -m option and header
* buffer.c (reshapeBuffer): fix reading from stdin
			fix -m option
* display.c (redrawNLine): rewrite
	(redrawLine): return l instead of l->next
	(redrawLineImage): ditto
* file.c (loadFile): read header even if skip header
	(loadGeneralFile): read header even if skip header
* fm.h (SkipHeader): added
* main.c (main): check whether reading from stdin
		SkipHeader
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10 16:08:19 +00:00
Fumitoshi UKAI
0cf4f52a13 [w3m-dev 03619] Re: Error occured while reset
* file.c (process_img): check image.ext
	(HTMLlineproc2body): check image.ext
	(loadImageBuffer): url, ext is in URLFile
* frame.c (unloadFrame): no need to push to fileToDelete
	(copyFrame): no need to reset FB_TODELETE
	(resetFrameElement): f_body->source, buf->sourcefile
	(frame_download_source): buf->source
			buf->sourcefile reset
* frame.h (FB_NOCACHE): deleted
	(FB_TODELETE): deleted
* main.c (vmSrc): Currentbuf->sourcefile
		need_reshape if images exist
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-09 15:30:20 +00:00
Fumitoshi UKAI
f8ea236868 [w3m-dev 03617] sourcefile when Content-Encoding: is specified.
* file.c (uncompress_stream): add src arg
	(examineFile): change uncompress_stream
	(loadGeneralFile): change uncompress_stream
	(doExternal): src
	(uncompress_stream): ext
			tmpfile with same ext
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-08 17:32:36 +00:00
Fumitoshi UKAI
235e9ca295 update TODO 2003-01-08 17:28:45 +00:00
Fumitoshi UKAI
e78b061cfd [w3m-dev 03616] Re: data: URL scheme
* 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>
2003-01-08 17:24:11 +00:00
Fumitoshi UKAI
f511560b10 update TODO 2003-01-07 15:57:45 +00:00
Fumitoshi UKAI
a6c1ea1eb7 fix indent 2003-01-07 15:56:41 +00:00
Fumitoshi UKAI
aee81bf527 [w3m-dev 03611] relative URL
* news.c (openNewsStream): don't skip '/' for nntp:
	(readNewsgroup): cleanup
* url.c (parseURL): don't copy user & password
	(parseURL2): fix for group, don't copy user & password
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-07 15:53:42 +00:00
Fumitoshi UKAI
b5462e1936 fix build warnings
* url.c (parseURL2): fix comparison between pointer and integer
* news.c (readNewsgroup): variable `scheme',`group',`list' might be clobbered by `longjmp' or `vfork'
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-06 15:49:28 +00:00
Fumitoshi UKAI
9759921110 fix indent 2003-01-06 15:37:49 +00:00
Fumitoshi UKAI
ff20968c8c [w3m-dev 03610] Re: news:<newsgroup>
* anchor.c (_put_anchor_news): check '<'
	(reAnchorNewsheader): added
* file.c (loadSomething): Subject: as buffername
	(checkHeader): check buf->document_header
	(loadGeneralFile): reAnchorNewsheader
* html.h (SCM_NNTP_GROUP): added
* main.c (main): delete USE_NNTP in switch (newbuf->real_scheme)
	(chkNMIDBuffer): lowercase in url_like_pat
* news.c (add_news_message): add scheme, group as arg
	(openNewsStream): check SCM_NNTP_GROUP
			check current_news.host
	(readNewsgroup): rewrite to support nntp:,news: extension
* proto.h (reAnchorNewsheader): added
* url.c (DefaultPort): add 119 for nntp group
	(parseURL2): rewrite to support nntp:,news: extension
	(_parsedURL2Str): add for SCM_NNTP_GROUP
	(openURL): rewrite to support nntp:,news: extension
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-06 15:36:56 +00:00
Fumitoshi UKAI
ee18da17df fix build errors
* display.c (make_lastline_message): fix error for undef JP_CHARSET
* news.c (readNewsgroup: `code' always required
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-27 16:46:13 +00:00
Fumitoshi UKAI
8ee686badf fix indent 2002-12-27 16:31:49 +00:00
Fumitoshi UKAI
68d984ef99 gcc -Wall -Werror clean
* file.c (loadHTMLstream): unused variable `p'
* news.c (news_command): unused variable `c'
	(news_open): unused variable `tmp'
	(readNewsgroup): volatile page, qgroup, flag, start, end
			uninitialized variable `page'
* url.c (openURL): unused variable `fw', `r', `stream'
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-27 16:30:53 +00:00
Fumitoshi UKAI
a609f73aaa fix indent 2002-12-27 16:09:18 +00:00
Fumitoshi UKAI
933224215f rc: nntpserver, nntpmode, max_news
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-27 16:08:46 +00:00
Fumitoshi UKAI
44ee521b14 [w3m-dev 03608] news:<newsgroup>
* XMakefile (LSRCS): add news.c
	(LOBJS): add news.o
* file.c (loadSOmething): don't UFclose() for nntp/news
	(readHeader): remove . at beginning of line for news
		img link to file:
	(loadGeneralFile): add SCM_NEWS_GROUP
		don't UFclose() for nntp/news
	(loadHTMLstream): . line check for news
	(loadBuffer): . line check for news
* fm.h (NNTP_server): added
	(NNTP_mode): added
	(MaxNewsMessage): added
* html.h (SCM_NEWS_GROUP): added
* main.c (main): NNTP_server or NNTPSERVER
		NNTP_mode or NNTPMODE
		add SCM_NEWS_GROUP
	(followA): remove news:..@.. check
	(cmd_loadURL): remove news:...@.. check
	(w3m_exit): disconnectNews
* proto.h (openNewsStream): added
	(readNewsgroup): added
	(disconnectNews): added
* rc.c (CMT_NNTP_SERVER): added
	(CMT_NNTP_MODE): added
	(CMT_MAX_NEWS): added
	(params9): add nntpserver, nntpmode, max_news
* url.c (DefaultPort): add 119 for news group
	(parseURL2): news:..@... is SCM_NEWS_GROUP
	(_parsedURL2Str): add news for SCM_NEWS_GROUP
	(openURL): cleanup SCM_NEWS
		add SCM_NEWS_GROUP
* news.c: added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-27 16:07:44 +00:00
Fumitoshi UKAI
ede9936f50 [w3m-dev 03607] mymktime: time zone support
* etc.c (get_zone): added
	(mymktime): parse timezone
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-27 15:53:03 +00:00
Fumitoshi UKAI
7835a5f9a7 [w3m-dev 03606] Re: clean up displayBuffer()
* main.c (followA): B_FORCE_REDRAW
	(follow_map): ditto
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-27 15:50:32 +00:00
Fumitoshi UKAI
c2a526d9d6 fix indent 2002-12-26 15:25:04 +00:00
Fumitoshi UKAI
4db6add683 [w3m-dev 03604] http response code and content-type
* file.c (loadGeneralFile): don't guessContentType if http errors
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-26 15:23:20 +00:00
Fumitoshi UKAI
17e7c1ae51 fix indent 2002-12-25 16:18:19 +00:00
Fumitoshi UKAI
d31151945a [w3m-dev 03602] Re: w3mimgdisplay core dump
* w3mimgdisplay.c (DrawImage): check load_image, imageBuf[n].pixmap
* w3mimg/fb/fb_w3mimg.c (w3mfb_show_image): check img->pixmap
* w3mimg/x11/x11_w3mimg.c (x11_show_image): check img->pixmap
From: Hiroyuki Ito <hito@crl.go.jp>
2002-12-25 16:14:45 +00:00
Fumitoshi UKAI
fcc128795d [w3m-dev 03601] Re: meta refresh
* main.c (LastEvent): added
	(pushEvent): add to LastEvent
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-25 16:06:43 +00:00
Fumitoshi UKAI
04658e13e4 [w3m-dev 03600] Re: meta refresh
* main.c (main): move add_download_list
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-25 16:05:08 +00:00
Fumitoshi UKAI
3e6431e412 [w3m-dev 03598] restore cursor when download list panel is updated.
* main.c (stopDownload): delete->replace
	(ldDL): use DownloadListBuffer()
From: Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>
2002-12-24 17:33:31 +00:00
Fumitoshi UKAI
dfdc4f3cf2 [w3m-dev 03597] Re: meta refresh
* main.c (Event): next, linked list
	(N_EVENT_QUEUE): deleted
	(eventQueue): deleted
	(n_event_queue): deleted
	(CurrentEvent): added
	(main): event processing, add CurrentEvent linked list
	(pushEvent): add Event to CurrentEvent
	(SigAlarm): Currentbuf->event
* proto.h (pushEvent): rename args
From: Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>
2002-12-24 17:28:48 +00:00
Fumitoshi UKAI
1ddd13264c fix indent 2002-12-24 17:24:33 +00:00
Fumitoshi UKAI
b1266c7a32 [w3m-dev 03596] LIST
* anchor.c (link_list_panel): check internal
From: Hiroaki Shimotsu <shim@d5.bs1.fc.nec.co.jp>
2002-12-24 17:24:05 +00:00
Fumitoshi UKAI
4ca69fff36 [w3m-dev 03595] tolower, toupper
* Str.c (Strlower): TOLOWER
	(Strupper): TOUPPER
* backend.c: delete ctype.h
* etc.c (gethtmlcmd): TOLOWER
* file.c (readHeader): TOLOWER
	(checkOverWrite): TOLOWER
	(guess_charset): TOLOWER
* ftp.c: delete ctype.h
* indep.c (strcasecmp): TOLOWER
	(strncasecmp): TOLOWER
	(strcasematch): TOLOWER
* istream.c: include myctype.h
	(ssl_get_certificate): TOLOWER
* mailcap.c (mailcapMatch): TOLOWER
* main.c (_quitfm): TOLOWER
* menu.c (accesskey_menu): TOLOWER
* mimehead.c: include myctype.h
	(decodeWord): TOUPPER
* mktable.c: delete ctype.h, include myctype.h
	(main): IS_SPACE
* myctype.h: delete ctype.h
	(TOLOWER): added
	(TOUPPER): added
* parsetagx.c (parse_tag): TOLOWER
* rc.c (str_to_bool): TOLOWER
	(str_to_color): TOLOWER
* regex.c: delete ctype.h, include myctype.h
	(TOLOWER): added
	(TOUPPER): added
	(regmatch1): TOLOWER
	(matchWhich): TOLOWER, TOUPPER
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-24 17:20:45 +00:00
Fumitoshi UKAI
456fdb4d45 mimehead.c (decodeWord): don't use toupper() (requires ctype.h)
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2002-12-22 14:26:34 +00:00
Fumitoshi UKAI
29ea24810f [w3m-dev 03594] mime decode with encoding named 'b' & 'q'
* mimehead.c (decodeWord): toupeer(method)
From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2002-12-21 16:20:40 +00:00
Fumitoshi UKAI
6776e15f34 * file.c (discardline): not used
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-21 16:19:33 +00:00
Fumitoshi UKAI
e22ad9fd9b fix indent 2002-12-21 16:17:13 +00:00
Fumitoshi UKAI
59654a203b [w3m-dev 03593] Re: segmentation fault when <title> exist after <img>
* file.c (cur_title): added
	(save_obuf): deleted
	(process_title): added
	(process_n_title): added
	(feed_title): added
	(HTMLtagproc1): rewrite HTML_TITLE, HTML_N_TITLE,
			HTML_TITLE_ALT, HTML_N_HEAD, HTML_HEAD
	(HTMLlineproc0): check RB_TITLE
	(completeHTMLstream): add RB_TITLE
	(loadHTMLstream): initialize cur_title
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-21 16:16:43 +00:00
Fumitoshi UKAI
62dc71c28c [w3m-dev 03590] segmentation fault when <title> exist after <img>
* file.c (save_line): deleted
	(save_prevchar): deleted
	(save_obuf): added
	(HTMLtagproc1): bcopy save_obuf
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-20 20:20:52 +00:00
Fumitoshi UKAI
53052f7327 update TODO 2002-12-20 20:17:47 +00:00
Fumitoshi UKAI
76d0b32d30 [w3m-dev 03588] include time.h in ftp.c
* ftp.c: include <time.h>
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-19 15:29:05 +00:00
Fumitoshi UKAI
38a5fceac1 [w3m-dev 03584] Re: meta refresh 2002-12-18 16:48:58 +00:00
Fumitoshi UKAI
3888822eef [w3m-dev 03583] w3mman
* scripts/w3mman/README: W3MMAN_W3M, W3MMAN_MAN
* scripts/w3mman/w3mman.1.in: add ENVIRONMENT
* scripts/w3mman/w3mman.in: $ENV{'W3MMAN_W3M'}, $ENV{'W3MMAN_MAN'}
* scripts/w3mman/w3mman2html.cgi.in: $ENV{'W3MMAN_MAN'}
				hyphenation
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-12-18 16:48:02 +00:00