Commit Graph

877 Commits

Author SHA1 Message Date
Fumitoshi UKAI
931a54afec [w3m-dev 03709] Re: view source, edit source
* display.c (displayBuffer): INIT_BUFFER_WIDTH
* file.c (_saveBuffer): added
	(saveBuffer): use _saveBuffer
	(saveBufferBody): added
* main.c (vmSrc): saveBufferBody
* proto.h (saveBufferBody): added
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29 17:38:12 +00:00
Fumitoshi UKAI
901902c777 [w3m-dev-en 00852] Re: Enhancement: content type detection of files
* url.c (DefaultGuess): remove upppercases
	(guessContentTypeFromTable): rewrite, strcasecmp
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29 17:33:28 +00:00
Fumitoshi UKAI
51a4f5771e wait_st is not used 2003-01-29 17:31:22 +00:00
Fumitoshi UKAI
c3281c3658 fix indent 2003-01-29 17:26:51 +00:00
Fumitoshi UKAI
b0a661730f [w3m-dev 03708] Re: Don't stop loading image when moving to next page.
* config.h.dist (lstat): define ifndef HAVE_LSTAT
* configure (config.h) ditto
* display.c (fmTerm): new loadImage
	(save_current_buf): only ifdef USE_BUFINFO
	(displayBuffer): new loadImage
* etc.c (setup_child): TrapSignal
* file.c (loadGeneralFile): TRAP_OFF, TRAP_ON
	(loadHTMLstream): ditto
	(loadGopherDir): ditto
	(loadBuffer): ditto
	(loadImageBuffer): ditto
	(getNextPage): ditto
	(save2tmp): ditto
* fm.h (TrapSignal): added
	(TRAP_ON): added
	(TRAP_OFF): added
* form.c (HAVE_LSTAT): deleted
* frame.c (createFrameFile): TRAP_OFF, TRAP_ON
* image.c (image_buffer): added
	(deleteImage): new loadImage
	(getAllImage): initialize image_buffer
	(loadImage): rewrite
* main.c (main): new loadImage
	(checkDownloadList): remove ifdef HAVE_LSTAT
* news.c (loadNwesgroup): TRAP_ON, TRAP_OFF
* proto.h (loadImage): add buf arg
* url.c (openSocket): TRAP_ON, TRAP_OFF
	(check_no_proxy): TRAP_ON, TRAP_OFF
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29 17:10:17 +00:00
Fumitoshi UKAI
6a009d9482 [w3m-dev 03707] Don't stop loading image when moving to next page.
* display.c (save_current_buf): required when defined USE_IMAGE
	(displayBuffer): stop only buffer changed
* image.c (loadImage): IMG_FLAG_START load from maxLoadImage
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28 16:45:15 +00:00
Fumitoshi UKAI
e442c118b8 fix indent 2003-01-28 16:42:02 +00:00
Fumitoshi UKAI
58259b5c34 [w3m-dev 03706] X-Image-URL: support, bug fix of reshapeBuffer()
* buffer.c (reshapeBuffer): rewrite
* file.c (readHeader): rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28 16:40:58 +00:00
Fumitoshi UKAI
b701883b27 [w3m-dev 03705] goodict.cgi (was: Re: google.cgi (was: Re: keymap key SEARCH string))
* Bonus/goodict.cgi: added
From: NAKAJIMA Mikio <minakaji@osaka.email.ne.jp>
2003-01-28 16:36:49 +00:00
Fumitoshi UKAI
99bb92c0f5 [w3m-dev 03700] Re: google.cgi (was: Re: keymap key SEARCH string)
* main.c (goURL0): check relative or *url == '#'
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-28 16:34:24 +00:00
Fumitoshi UKAI
68c534d2ed [w3m-dev 03689] Re: fold patch
* fm.h (BufferPos): add bpos
* main.c (save_buffer_position): bpos initialize
	(resetPos): reset bpos
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-27 16:18:48 +00:00
Fumitoshi UKAI
10f3122429 fix indent 2003-01-25 18:06:25 +00:00
Fumitoshi UKAI
6e58e83e12 [w3m-dev 03686] Re: fold patch
* buffer.c (writeBufferCache): rewrite
	(readBufferCache): rewrite
* etc.c (calcPosition): short -> int realColumn
* fm.h (Line): short -> int len,width,size,bpos,bwidth
	(BufferPoint): short->int pos
	(Buffer): short->int currentColumn,pos,visualpos
	(BufferPos): short->int currentColumn,pos
* frame.h (frameset_queue): short->int pos,currentColumn
* main.c (clear_mark): short->int pos
	(dispincsrch): short->int pos
	(backBf): short->int pos
	(set_buffer_environ): short->int prev_pos
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-25 17:42:17 +00:00
Fumitoshi UKAI
7119fe00e1 fix indent 2003-01-24 17:57:54 +00:00
Fumitoshi UKAI
a727eef794 [w3m-dev 03684] Re: fold patch
* file.c (PSIZE): added
	(HTMLlineproc2body): outc,outp is created by NewAtom_N
		use PSIZE
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:57:07 +00:00
Fumitoshi UKAI
6384487c95 file.c (getNextPage): no need volatile for code
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-24 17:54:07 +00:00
Fumitoshi UKAI
d20914e8d9 fix indent 2003-01-24 17:37:16 +00:00
Fumitoshi UKAI
9cfb271a67 [w3m-dev 03683] interrupt in getNextPage()
* file.c (getNextPage): trap SIGINT
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:36:44 +00:00
Fumitoshi UKAI
ec84de753b [w3m-dev 03682] open null file on tab
* display.c (displayBuffer): if empty, clear()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:34:36 +00:00
Fumitoshi UKAI
7a5aebe4b0 [w3m-dev 03681] Re: fold patch
* buffer.c (reshapeBuffer): buf->pos, sbuf.currentLine fix
			FoldLine
* display.c (arrangeCursor): buf->pos fix
	(restorePosition): buf->pos fix
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24 17:30:38 +00:00
Fumitoshi UKAI
10c855dd4f NEWS: func: RESHAPE
rc: fold_line
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-23 18:44:26 +00:00
Fumitoshi UKAI
3b74155de0 fix compiler warnings
* display.c (displayBuffer): fix suggest parentheses around && within ||
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-23 18:42:51 +00:00
Fumitoshi UKAI
c50771b0a1 fix indent 2003-01-23 18:38:04 +00:00
Fumitoshi UKAI
61c2c2de18 [w3m-dev 03667] fold patch
* anchor.c (reAnchorPos): rewrite
	(reAnchorWord): delete reseq_anchor()
	(reAnchorAny): use l->size
			delete reseq_anchor()
* backend.c (internal_get): pass TRUE to saveBuffer
* buffer.c (newBuffer): delete n->linelen
	(reshapeBuffer): rewrite
* display.c (displayBuffer): FoldLine
	(redrawLine): l->bpos
	(cursorUp0): added
	(cursorUp): rewrite
	(cursorDown0): added
	(cursowDown): rewrite
	(cursorRight): check l->next
			l->bwidth
	(cursorLeft): l->prev && l->bpos
			l->bwidth
	(arrangeCursor): buf->currentLine->bwidth
		buf->cursorX
* etc.c (checkType): **oporp
			rewrite
	(calcPosition): realColumn allocated by New_reuse
* file.c (addnewline): add nlines arg
	(propBuffer): deleted
	(colorBuffer): deleted
	(readHeader): propBuffer
		FOLD_BUFFER_WIDTH
	(HTMLlineproc2body): rewrite
	(addnewline2): added
	(addnewline): rewrite
	(loadBuffer): propBuffer, colorBuffer
	(saveBuffer): cont arg
	(getNextPage): rewrite
* fm.h (LINELEN): 256
	(FNLEN): deleted
	(Line): add size, bpos, bwidth
	(Buffer): delete linelen
	(INIT_BUFFER_WIDTH): check showLineNum
	(FOLD_BUFFER_WIDTH): added
	(FoldLine): added
* funcname.tab (RESHAPE): added
* main.c (do_dump): pass FALSE to saveBuffer
	(nscroll): rewrite
	(clear_mark): l->size
	(shiftvisualpos): rewrite
	(pipeBuf): pass TRUE to saveBuffer
	(linebeg): check line->prev && line->bpos
	(linend): check line->next, line->next->bpos
	(editScr): pass TRUE to saveBuffer
	(svBuf): pass TRUE to saveBuffer
	(vmSrc): pass TRUE to saveBuffer
	(reshape): added
	(curlno): rewrite
* mimehead.c (LINELEN): deleted
* proto.h (reshape): added
	(saveBuffer): add cont arg
	(cursorUp0): added
	(cursorDown0): added
	(checkType): change type oprop, ocolor, delete check_color, len
* rc.c (CMT_FOLD_LINE): added
	(params1): add fold_line
	(sync_with_option): check PagerMax
* search.c (set_mark): l->size
	(forwardSearch): rewrite
	(backwardSearch): rewrite
* doc/README.func (RESHAPE): added
* doc-jp/README.func (RESHAPE): added
* scripts/w3mhelp.cgi.in (Buffer operation): add reshape
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 18:37:18 +00:00
Fumitoshi UKAI
e718702d12 * etc.c (next_status): after = is R_ST_VALUE
R_ST_VALUE > => R_ST_NORMAL
		R_ST_VALUE SP => R_ST_TAG
	(read_token): R_ST_VALUE
	(correct_irrtag): R_ST_VALUE
* rm.h (R_ST_VALUE): added
	(ST_IS_REAL_TAG): rewrite
	(ST_IS_COMMENT): deleted
	(ST_IS_TAG): deleted
* parsetagx.c (parse_tag): skip too long tagname
			skip too long attrname
			if attrvalue has quote char, need reconstruct
			if unknown attr, need reconstruct
* table.c (visible_length): R_ST_VALUE
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 18:01:01 +00:00
Fumitoshi UKAI
51c2899aa9 [w3m-dev 03680] showProgress() on fast system
* file.c (showProgress): check line len, time
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 16:05:54 +00:00
Fumitoshi UKAI
0ff57ba4ed fix indent 2003-01-23 16:02:15 +00:00
Fumitoshi UKAI
fb759b572b [w3m-dev 03679] Re: cleanup for pipe
* etc.c (open_pipe_rw): check stdin, stdout
* file.c (uncompress_stream): rewrite
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23 15:59:24 +00:00
Fumitoshi UKAI
a0300c84b8 [w3m-dev 03678] Re: config.param is clear when configure -help
* configure: don't override config.param
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-22 16:36:11 +00:00
Fumitoshi UKAI
3f25d8f048 [w3m-dev 03677] view source, edit source
* buffer.c (discardBuffer): unlink header source
* file.c (loadFile): delete skip header
* fm.h (BP_SOURCE): deleted
	(SkipHeader): deleted
* main (editBf): cleanup
	(vmSrc): cleanup
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22 16:16:18 +00:00
Fumitoshi UKAI
64672ce9ce fix indent 2003-01-22 16:11:03 +00:00
Fumitoshi UKAI
b8b4edb15b [w3m-dev 03676] cleanup for pipe
* etc.c (open_pipe_rw): added
* file.c (uncompress_stream): rewrite using open_pipe_rw
* image.c (openImgdisplay): rewrite using open_pipe_rw
* local.c (localcgi_popen_rw): deleted
	(localcgi_post): rewrite using open_pipe_rw
* proto.h (open_pipe_rw): added
* search.c (migemor): initialized to NULL
	(migemow): initialized to NULL
	(migemo_pid): initialized to 0
	(open_migemo): rewrite using open_pipe_rw
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22 16:10:27 +00:00
Fumitoshi UKAI
d5097483bd [w3m-dev 03675] x-face
* file.c (xface2xpm): use getImage()
	(readHeader): check same file
	(loadImageBuffer): rewrite
	(lessopen_stream): shell_quote()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22 16:01:16 +00:00
Fumitoshi UKAI
9241f55eee [w3m-dev 03674] -dump problem
* file.c (loadGeneralFile): return NULL when dump
* main.c (dump_source): deleted
	(dump_head): deleted
	(dupm_extra): deleted
	(do_dump): added
	(main): singal when dump
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22 15:56:49 +00:00
Fumitoshi UKAI
c54597db87 [w3m-dev 03671] Re: config.param is clear when configure -help
* configure: test -f config.param
From: Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
2003-01-22 15:53:12 +00:00
Fumitoshi UKAI
fe1c985ccc [w3m-dev 03665] imlib2 support (on X11)
* configure: X11 inline image with Imlib2
	fix typo in fb/imlib2
* w3mimg/x11/x11_w3mimg.c: USE_IMLIB2
	(x11_load_image): USE_IMLIB2
	(x11_show_image): USE_IMLIB2
	(x11_free_image): USE_IMLIB2
	(x11_get_image_size): USE_IMLIB2
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-21 15:38:55 +00:00
Fumitoshi UKAI
f6ecc06cb2 [w3m-dev 03664] config.param is clear when configure -help
* configure: config.param created after arg parsing
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-21 15:33:16 +00:00
Fumitoshi UKAI
48db009b76 * map.c (follow_map_menu): if USE_IMAGE or MENU_MAP
* proto.h (follow_map_menu): ditto
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-20 15:54:08 +00:00
Fumitoshi UKAI
cc49eb7ecc fix indent 2003-01-20 15:32:02 +00:00
Fumitoshi UKAI
18eebc6488 [w3m-dev 03660] Re: fputs -> Strfputs
* Str.h (Strncmp_charp): paren
	(Strncasecmp_charp): ditto
	(Strinsert): ditto
	(Strshrinkfirst): ditto
* display.c (disp_err_message): added
* file.c (loadGeneralFile): don't put function in macro arg
	(saveBuffer): ditto
* frame.c (createFrameFile): ditto
* proto.h (disp_err_message): macro->function
* table.c (pushdata): if data is NULL, use ""
	(suspend_or_pushdata): if line is NULL, use ""
* textlist.h (pushText): don't use (s) twice in a macro
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:30:18 +00:00
Fumitoshi UKAI
136d8b8115 [w3m-dev 03659] Can't download from SSL.
* istream.c (ISfileno): case IST_SSL
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:25:29 +00:00
Fumitoshi UKAI
d619d246a9 [w3m-dev 03658] Re: Other user can see local cookie.
* fm.h (rc_dir): init(NULL)
* rc.c (config_file): deleted
	(init_rc): use rc_dir
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:24:19 +00:00
Fumitoshi UKAI
2f7904260c [w3m-dev 03657] fputs -> Strfputs
* form.c (form_fputs_decode): use Strfputs()
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-20 15:22:54 +00:00
Fumitoshi UKAI
cfd9a36fd1 [w3m-dev 03655] Re: file.c:image_source when undef USE_IMAGE
* map.c (follow_map_menu): fix warnings
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-19 09:04:32 +00:00
Fumitoshi UKAI
53cbf41507 [w3m-dev 03654] file.c:image_source when undef USE_IMAGE
* file.c (readHeader): image_source ifdef USE_IMAGE
	(loadGeneralFile): ditto
	(uncompress_stream): ditto
From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2003-01-19 08:28:39 +00:00
Fumitoshi UKAI
36cadfb0ce [w3m-dev 03653] SourceForge.net: 576032 w3m https crashes with OpenSSL-0.9.7
* istream.c (ssl_check_cert_ident): use sk_GENERAL_NAME_free()
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-18 18:40:32 +00:00
Fumitoshi UKAI
f9d2c51643 fix indent 2003-01-17 17:30:59 +00:00
Fumitoshi UKAI
7d71f2cba6 [w3m-dev 03652] Re: Debian bug #176981
* file.c (checkHeader): always remove_space
	(loadGeneralFile): no need remove_space
From: Fumitoshi UKAI  <ukai@debian.or.jp>
2003-01-17 17:29:58 +00:00
Fumitoshi UKAI
34cf3f1705 [w3m-dev 03651] Debian bug #176981
* file.c (checkRedirection): added
	(loadGeneralFile): check redirection
			t_buf only is created when it is NULL
			remove_space
From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17 17:13:02 +00:00
Fumitoshi UKAI
264b3e35ec fix indent 2003-01-17 17:06:57 +00:00