aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2003-08-29[w3m-dev 03957] Location: from local-CGIFumitoshi UKAI1-2/+2
* file.c (loadGeneralFile): don't parse header for local file redirected by Location: from local-CGI From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-07-07[w3m-dev 03927] deflateFumitoshi UKAI1-2/+2
* file.c (compression_decoder): .deflate for application/x-deflate's extension From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-05-13[w3m-dev 03901] body with status-code 401Fumitoshi UKAI1-5/+3
* file.c (loadGeneralFile): show page when 401, 407 From: ABE Yuji <cbo46560@pop12.odn.ne.jp>
2003-04-18[w3m-dev 03882] Re: Bug#189460: w3m: <q> tag is not recognizedFumitoshi UKAI1-1/+7
* file.c (HTMLtagproc1): add HTML_Q, HTML_N_Q * html.c (TagMAP): add "q", "/q" * html.h (HTML_Q): added (HTML_N_Q): added * tagtable.tab: add q, /q From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-14[w3m-dev 03875] Re: SSL & compressed streamFumitoshi UKAI1-2/+3
* file.c (loadGeneralFile): check t_buf != NULL * url.c (openURL): don't initialize URLFile here (init_stream): 0 clear URLFile From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-13[w3m-dev 03873] SSL & compressed streamFumitoshi UKAI1-3/+2
* file.c (loadGeneralFile): always update ssl_certificate * url.c (openURL): initialize URLFile From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-04-06[w3m-dev 03843] cleanup macrosFumitoshi UKAI1-3/+1
* config.h.dist config.h.in etc.c file.c fm.h ftp.c linein.c main.c rc.c: delete EMACS_LIKE_LINEEDIT, VI_PREC_NUM, LABEL_TOPLINE, NEXTPAGE_TOPLINE, FTPPASS_HOSTNAMEGEN use_mark default FALSE emacs_like_lineedit default FALSE vi_prec_num default FALSE add UseHistory, use_history * NEWS: rc: use_history From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-03-02[w3m-dev 03788] UFhalfcloseFumitoshi UKAI1-2/+2
* file.c (UFhalfclose): closeNews() for SCM_NEWS,NNTP From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-02-06[w3m-dev 03735] Re: make error of checkType argFumitoshi UKAI1-62/+23
* etc.c (checkType): delete USE_ANSI_COLOR * file.c (addnewline): macro for USE_ANSI_COLOR (readHeader): rewrite of USE_ANSI_COLOR (HTMLlineproc2body): ditto (addnewline2): ditto (addnewline): ditto (loadBuffer): ditto (getNextPage): ditto * proto.h (checkType): macro for USE_ANSI_COLOR From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03719] Re: Too slow when loading big file with fold_line=1Fumitoshi UKAI1-2/+2
* file.c (addnewline): check i <l->len From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03718] Too slow when loading big file with fold_line=1Fumitoshi UKAI1-18/+4
* etc.c (nextColumn): added (calcPosition): use New_N rewrite with nextColumn (columnLen): added * file.c (addnewline): rewrite with columnLen * proto.h (columnLen): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03715] initial currentLine when pager mode.Fumitoshi UKAI1-2/+2
* file.c (getNextPage): fix cur From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-30[w3m-dev 03714] -cols 1 -dump -o fold_line=1Fumitoshi UKAI1-1/+10
* file.c (addnewline): check i == 0, i == l->len * fm.h (_INIT_BUFFER_WIDTH): added (INIT_BUFFER_WIDTH): use _INIT_BUFFER_WIDTH From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-29[w3m-dev 03709] Re: view source, edit sourceFumitoshi UKAI1-4/+19
* 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-29fix indentFumitoshi UKAI1-4/+4
2003-01-29[w3m-dev 03708] Re: Don't stop loading image when moving to next page.Fumitoshi UKAI1-98/+34
* 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-28[w3m-dev 03706] X-Image-URL: support, bug fix of reshapeBuffer()Fumitoshi UKAI1-17/+27
* buffer.c (reshapeBuffer): rewrite * file.c (readHeader): rewrite From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24fix indentFumitoshi UKAI1-2/+2
2003-01-24[w3m-dev 03684] Re: fold patchFumitoshi UKAI1-8/+11
* file.c (PSIZE): added (HTMLlineproc2body): outc,outp is created by NewAtom_N use PSIZE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-24file.c (getNextPage): no need volatile for codeFumitoshi UKAI1-2/+2
From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-01-24fix indentFumitoshi UKAI1-3/+3
2003-01-24[w3m-dev 03683] interrupt in getNextPage()Fumitoshi UKAI1-8/+20
* file.c (getNextPage): trap SIGINT From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23fix indentFumitoshi UKAI1-7/+7
2003-01-23[w3m-dev 03667] fold patchFumitoshi UKAI1-112/+166
* 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[w3m-dev 03680] showProgress() on fast systemFumitoshi UKAI1-8/+10
* file.c (showProgress): check line len, time From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-23[w3m-dev 03679] Re: cleanup for pipeFumitoshi UKAI1-10/+16
* etc.c (open_pipe_rw): check stdin, stdout * file.c (uncompress_stream): rewrite From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-22[w3m-dev 03677] view source, edit sourceFumitoshi UKAI1-8/+1
* 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-22fix indentFumitoshi UKAI1-2/+2
2003-01-22[w3m-dev 03676] cleanup for pipeFumitoshi UKAI1-66/+42
* 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[w3m-dev 03675] x-faceFumitoshi UKAI1-35/+44
* 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[w3m-dev 03674] -dump problemFumitoshi UKAI1-1/+3
* 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-20fix indentFumitoshi UKAI1-5/+5
2003-01-20[w3m-dev 03660] Re: fputs -> StrfputsFumitoshi UKAI1-3/+5
* 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-19[w3m-dev 03654] file.c:image_source when undef USE_IMAGEFumitoshi UKAI1-3/+13
* file.c (readHeader): image_source ifdef USE_IMAGE (loadGeneralFile): ditto (uncompress_stream): ditto From: WATANABE Katsuyuki <knabe@sannet.ne.jp>
2003-01-17fix indentFumitoshi UKAI1-2/+2
2003-01-17[w3m-dev 03652] Re: Debian bug #176981Fumitoshi UKAI1-4/+3
* file.c (checkHeader): always remove_space (loadGeneralFile): no need remove_space From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-01-17[w3m-dev 03651] Debian bug #176981Fumitoshi UKAI1-53/+69
* 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[w3m-dev 03647] expandName() and expandPath()Fumitoshi UKAI1-4/+4
* etc.c (openSecretFile): use expandPath (expandName): rewrite (file_to_url): use expandPath * file.c (_doFileCopy): use expandPath (doFileSave): use expandPath * indep.c (expandPath): rewrite * linein.c (inputLineHistSearch): use expandPath (next_dcompl): use expandPath (doComplete): use expandPath * local.c (set_cgi_environ): rewrite * mailcap.c (loadMailcap): use expandPath * main.c (svBuf): use expandPath (addDownloadList): use expandPath * rc.c (init_rc): use expandPath (rcFile): rewrite (auxbinFile): use expandPath (libFile): use expandPath (etcFile): use expandPath (helpFile): use expandPath * url.c (loadMimeTypes): use expandPath (loadURIMethods): use expandPath From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-17[w3m-dev 03646] setup child process, local CGIFumitoshi UKAI1-28/+9
* etc.c (reset_signals): static don't ignore SIGUSR1 (close_all_fds_except): static DEV_NULL_PATH (setup_child): added (myExec): rewrite (mySystem): rewrite * file.c (readHeader): check image_source (loadGeneralFile): check image_source (doExternal): use setup_child (_doFileCopy): use setup_child (doFileSave): use setup_child (uncompress_stream): check image_source use setup_child * image.c (getCharSize): no need stderr redirect (openImgdisplay): use setup_child (loadImage): use setup_child (getImageSize): no need stderr redirect * local.c (writeLocalCookie): check Local_cookie_file (localcgi_popen_rw): added (localcgi_popen_r): deleted (localcgi_post): rewrite (localcgi_get): deleted * proto.h (localcgi_get): defined by localcgi_post (reset_signals): deleted (close_all_fds_except): deleted (close_all_fds): deleted (setup_child): added * search.c (open_migemo): use setup_child, myExec * w3mimgdisplay.c (main): use DEV_NULL_PATH From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15[w3m-dev 03644] Re: Other user can see local cookie.Fumitoshi UKAI1-5/+3
* cookie.c (save_cookies): return if no_rc_dir * etc.c (tmpf_base): add cookie (tmpfname): use tmp_dir instead of rc_dir * file.c (loadGeneralFile): cookie is not passed via URL * fm.h (TMPF_COOKIE): incl (MAX_TMPF_TYPE): incl (no_rc_dir): added (tmp_dir): added (config_file): added * local.c (Local_cookie_file): added (writeLocalCookie): added (setLocalCookie): dont set environment LOCAL_COOKIE (localcgi_post): writeLocalCookie (localcgi_get): writeLocalCookie * main.c (config_filename): deleted (cmd_loadURL): arg FormList (main): rewrite config_file, rc (ldhelp): no cookie in URL (cmd_loadURL): arg FormList (goURL0): cmd_loadURL change (cmd_loadBuffer): cmd_loadURL change (adBmark): cookie is posted (follow_map): cmd_loadURL change (linkMn): cmd_loadURL change (reinit): init_rc change * proto.h (create_option_search_table): deleted (init_rc): no args * rc.c (create_option_search_table): static (init_rc): no args rewrite (optionpanel_src1): rewrite (load_option_panel): html_quote (panel_set_option): no_rc_dir * w3mbookmark.c: rewrite * w3mhelperpanel.c: rewrite * scripts/dirlist.cgi.in: rewrite * scripts/w3mhelp.cgi.in: rewrite * scripts/w3mmail.cgi.in: rewrite * scripts/multipart/multipart.cgi.in: rewrite From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-15* file.c (loadGopherDir): convertLine RAW_MODEFumitoshi UKAI1-17/+19
* ftp.c (loadFTPDir): ditto * fix indent From: Fumitoshi UKAI <ukai@debian.or.jp>
2003-01-15[w3m-dev 03640] Re: cleanup (don't close connection of news server)Fumitoshi UKAI1-160/+131
* 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-11[w3m-dev 03633] Re: cleanup (don't close connection of news server)Fumitoshi UKAI1-40/+36
* file.c (FTPhalfclose): deleted (loadGeneralFile): closeFTP when doFileSave is done (_doFileCopy): return int (doFileMove): return int (doFileSave): return int * ftp.c: rewrite * main.c (w3m_exit): disconnectFTP * proto.h (_doFileCopy): return int (doFileMove): return int (doFileSave): return int (openFTP): deleted (openFTPStream): return InputStream (closeFTP): no arg (Ftpfclose): disconnectFTP * url.c (openFTPstream): deleted From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10[w3m-dev 03632] cleanup (don't close connection of news server)Fumitoshi UKAI1-10/+8
* file.c (loadSomething): remove UFclose nntp:,news: (loadFile): UFclose (loadGeneralFile): always UFclose * html.h (UFclose): only reset when ISclose ==0 * istream.c (ISclose): return int (ISfileno): flag IST_UNCLOSE * istream.h (ISclose): return int (IST_UNCLOSE): added * news.c (news_close): reset IST_UNCLOSE (news_open): set IST_UNCLOSE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10[w3m-dev 03629] delete tmp fileFumitoshi UKAI1-26/+6
* 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[w3m-dev 03628] Re: Error occured while resetFumitoshi UKAI1-5/+6
* file.c (doExternal): bufp = NULL, return 1 (uncompress_stream): tempfname fileToDelete From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2003-01-10[w3m-dev 03622] Re: Error occured while resetFumitoshi UKAI1-5/+5
* 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[w3m-dev 03620] -m option and headerFumitoshi UKAI1-2/+10
* 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-09[w3m-dev 03619] Re: Error occured while resetFumitoshi UKAI1-6/+8
* 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-08[w3m-dev 03617] sourcefile when Content-Encoding: is specified.Fumitoshi UKAI1-12/+25
* 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>