aboutsummaryrefslogtreecommitdiffstats
path: root/file.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2002-11-25fix indentFumitoshi UKAI1-8/+8
2002-11-25[w3m-dev 03476] Re: Bug#170506: w3m: Unable to use mozilla bugzillaFumitoshi UKAI1-5/+11
* file.c (HTMLtagproc1): initialize ignore_tag in table_mode (HTMLtagproc0): check table_level * table.c (feed_table_tag): set mode->ignore_tag * table.h (struct table_mode): add ignore_tag From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-24[w3m-dev 03471] Re: SETPGRP()Fumitoshi UKAI1-5/+1
* configure: SETPGRP() always defined * proto.h (close_all_fds): added (myExec): #ifdef HAVE_SETPGRP * etc.c (close_all_fds): added (myExec): #ifdef HAVE_SETPGRP (mySystem): #ifndef -> #ifdef * file.c (_doFileCopy): delete #ifdef HAVE_SETPGRP (doFileSave): ditto * image.c (openImgdisplay): delete #ifdef HAVE_SETPGRP use close_all_fds() * search.c (open_migemo): ditto From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-11-22[w3m-dev 03466] Re: background download when external viewerFumitoshi UKAI1-1/+3
* file.c (doExternal): UFclose(&uf); From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-22fix indentFumitoshi UKAI1-5/+5
2002-11-22[w3m-dev 03459] background download when external viewerFumitoshi UKAI1-4/+27
* etc.c (myExec): added (mySystem): rewrite to use myExec() * file.c (doExternal): run background if BackgroundExtViewer * proto.h (myExec): added From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-18[w3m-dev 03444] download from ftp.Fumitoshi UKAI1-6/+15
* file.c (FTPhalfclose: static (loadGeneralFile): UFclose FTPhalfclose for SCM_FTP UFclose before signal back (loadImageBuffer): UFclose before signal back (openGeneralPagerBuffer): UFclose * ftp.c (ftp_fclose): added (Ftpfclose): dont read response(), but ftp_fclose() (FtpBye): ftp_fclose() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-15fix indentFumitoshi UKAI1-3/+2
2002-11-15[w3m-dev 03441] charset of save fileFumitoshi UKAI1-7/+10
* file.c (_doFileCopy): use conv_from_system() (doFileSave): conv_from_system() * main.c (DownloadListBuffer): conv_from_system() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-15fix indentFumitoshi UKAI1-3/+5
2002-11-15[w3m-dev 03436] Check image sizeFumitoshi UKAI1-3/+7
* file.c (process_img): check w > MAX_IMAGE_SIZE (HTMLlineproc2body): check w,h > MAX_IMAGE_SIZE * fm.h (MAX_IMAGE_SIZE): added * image.c (getImageSize): check w,h,width,height > MAX_IMAGE_SIZE From: Hiroyuki Ito <hito@crl.go.jp>
2002-11-15[w3m-dev 03435] save image with SAVEFumitoshi UKAI1-12/+10
* buffer.c (discardBuffer): check image * file.c (loadImageBuffer): add st IMG_FLAG_DONE_REMOVE s/sourcefile/mailcap_source/ * fm.h (IMG_FLAG_DONT_REMOVE): added * image.c (drawImage): & IMG_FLAG_LOADED (deleteImage): & IMG_FLAG_DONT_REMOVE (showImageProgress): & IMG_FLAG_LOADED (getImage): & IMG_FLAG_LOADED (getImageSize): & IMG_FLAG_LOADED * main.c (vmSrc): delete ifdef USE_IMAGE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-15fix indentFumitoshi UKAI1-9/+9
2002-11-15[w3m-dev 03431] save file by background processFumitoshi UKAI1-7/+77
* file.c (loadGeneralFile): use _doFileCopy() (_doFileCopy): renamed from doFileCopy() lock fork & save (doFileSave): lock fork & save * fm.h (DownloadList): added (FirstDL): added (LastDL): added * form.c (struct internal_action): add download * funcname.tab (DOWNLOAD_LIST): added * html.h (URLFile): add url * main.c (dump_extra): add add_download_list (main): add_download_list, ldDL() (_quitfm): added (quitfm): rewrite with _quitfm() (qquitfm): ditto (w3m_exit): stopDownload() (addDownloadList): added (checkDownloadList): added (convert_size3): added (DownloadListBuffer): added (download_action): added (stopDownload): added (ldDL): added * proto.h (ldDL): added (convert_size): added (convert_size2): added (doFileCopy): deleted (_doFileCopy): added (addDownloadList): added (stopDownload): added (checkDownloadList): added (download_action): added * url.c (openURL): save url in uf From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-13[w3m-dev 03424] Content lengthFumitoshi UKAI1-6/+6
* file.c (loadGeneralFile): current_content_length before do_download (save2tmp): current_content_length move before return From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-09[w3m-dev 03398] auxbindirFumitoshi UKAI1-9/+9
* 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-11-08[w3m-dev 03386] Re: Interrupt in no_proxy_check()Fumitoshi UKAI1-8/+13
* file.c (getAuthCookie): term_cbreak() (loadGeneralFile): term_cbreak() term_raw() preFormUpdateBuffer() before term_raw() (loadHTMLstream): term_raw() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-06[w3m-dev 03375] NULL check of CurrentTabFumitoshi UKAI1-2/+2
* display.c (disp_message_nsec): check CurrentTab * file.c (doExternal): check CurrentTab * image.c (loadImage): check CurrentTab From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-05[w3m-dev 03372] tab browserFumitoshi UKAI1-3/+5
* display.c (displayBuffer): add ny rootY offset by tab tab line (cursorDown): offset rootY (arrangeCursor): offset rootY * etc.c (columnSkip): offset rootY (lineSkip): offset rootY (currentLineSkip): offset rootY * file.c (HTMLlineproc2body): ATTR_TARGET * fm.h (MapArea): add target (Buffer): add rootY (TabBuffer): added (Currentbuf): comment out (Firstbuf): comment out (CurrentTab): added (FirstTab): added (LastTab): added (open_tab_blank): added (close_tab_back): added (nTab): added (TabCols): added (N_TAB): added (Currentbuf): CurrentTab->currentBuffer (Firstbuf): CurrentTab->firstBuffer * funcname.tab (CLOSE_TAB): added (NEW_TAB): added (NEXT_TAB): added (PREV_TAB): added (TAB_GOTO): added (TAB_GOTO_RELATIVE): added (TAB_LEFT): added (TAB_LINK): added (TAB_MENU): added (TAB_RIGHT): added * html.c (ALST_AREA): add ATTR_TARGET * image.c (showImageProgress): offset rootY * main.c (_newT): added (followTab): added (moveTab): added (check_target): added (MAIN): init tab related values buf => tab (nscroll): offset rootY (pgFore): offset rootY (pgBack): offset rootY (ctrCsrV): offset rootY (_movD): offset rootY (_movU): offset rootY (_goLine): offset rootY (_mark): offset rootY (followA): check target (_followForm): offset rootY (drawAnchorCursor0): offset rootY (drawAnchorCursor): offset rootY (backBf): check close_tab_back (follow_map): rewrite for tab, check target (posTab): added (process_mouse): tab operation offset rootY (deleteFiles): for all buffers in all tabs (newTab): added (newT): added (numTab): added (deleteTab): added (closeT): added (nextT): added (prevT): added (followTab): added (tabA): added (tabURL0): added (tabURL): added (tabrURL): added (moveTab): added (tabR): added (tabL): added * map.c (follow_map_menu): return MapArea (newMapArea): add target args * menu.c (SelTabMenu): added (SelTabV): added (initSelTabMenu): added (smChTab): added (smDelTab): added (MainMenuItem): add Select Tab on New Tab (popupMenu): add initSelTabMenu() offset rootY (mainMn): offset rootY (selMn): offset rootY (initSelectMenu): offset rootY (tabMn): added * proto.h (newT): added (closeT): added (nextT): added (prevT): added (tabA): added (tabURL): added (tabrURL): added (tabR): added (tabL): added (newTab): added (deleteTab): added (follow_map_menu): return MapArea (newMapArea): add target arg (tabMn): added * rc.c (CMT_OPEN_TAB_BLANK): added (CMT_CLOSE_TAB_BACK): added (open_tab_blank): added (close_tab_back): added * doc/README.func (CLOSE_TAB): added (NEW_TAB): added (NEXT_TAB): added (PREV_TAB): added (TAB_GOTO): added (TAB_GOTO_RELATIVE): added (TAB_LEFT): added (TAB_LINK): added (TAB_MENU): added (TAB_RIGHT): added * doc-jp/README.func: ditto doc/README.func From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-11-05[w3m-dev 03373] setting form on loadingFumitoshi UKAI1-1/+2
* config.h.dist (PRE_FORM_FILE): added * configure (PRE_FORM_FILE): added * etc.c (openPasswdFile): define by openSecretFile() (openSecretFile): renamed, not static * file.c (loadGeneralFile): preFOrmUpdateBuffer() * fm.h (Buffer): add submit (pre_form_file): added * form.c (struct pre_form_item): added (struct pre_form): added (next_token): added (PreForm): added (add_pre_form): added (add_pre_form_item): added (loadPreForm): added (preFormUpdateBuffer): added * frame.c (renderFrame): add preFormUpdateBuffer() * main.c (MAIN): buf->submit check * proto.h (preFormUpdateBuffer): added (openSecretFile): added (loadPreForm): added * rc.c (sync_with_option): add loadPreForm() From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-10-30fix indentFumitoshi UKAI1-3/+2
2002-10-30[w3m-dev 03363] refresh downloadFumitoshi UKAI1-2/+2
* file.c (HTMLtagproc1): alarm is implicit once * fm.h (AL_IMPLICIT_ONCE): added * main.c (searchKeyData): reset CurrentKeyData, CurrentCmdData (SigAlarm): CurrentCmdData is saved to data message displayed on AL_EXPLICIT clear alarm when AL_IMPLICIT_ONCE (setAlarmEvent): AL_IMPLICIT_ONCE From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-10-30[w3m-dev 03359] support for http://user:pass@www.url.comFumitoshi UKAI1-3/+2
* etc.c (find_auth_user_passwd): use ParsedURL for args use user and passwd if these are defined in ParsedURL * file.c (getAuthCookie): change find_auth_user_passwd() * proto.h (find_auth_user_passwd): change prototype From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-10-30[w3m-dev 03357] tab in <pre> in <ul>,<ol>,...Fumitoshi UKAI1-2/+3
* file.c (HTMLlineproc2): check indent for tabstop From: Hironori SAKAMOTO <hsaka@mth.biglobe.ne.jp>
2002-10-25* [w3m-dev-en 00780] "Carlo E. Prelz" <fluido@fluido.as>Fumitoshi UKAI1-37/+37
always print on screen the relative position * display.c (displayBuffer): relative position From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-10-25[w3m-dev-en 00777] patch to fix w3m-0.3.1 word break problemFumitoshi UKAI1-1/+56
* file.c (is_period_char): 0x203A - SINGLE RIGHT-POINTING ANGLE QUOTATION MARK (is_beginning_char): 0x2018 - LEFT SINGLE QUOTATION MARK 0x2039 - SINGLE LEFT-POINTING ANGLE QUOTATION MARK (is_word_char): add several chars ifndef JP_CHARSET add ':' and '*' From: Gary Johnson <garyjohn@spk.agilent.com>
2002-10-10 [w3m-dev 03339] Re: Debian Bug#164098 w3m: <sup> is not properly supportedFumitoshi UKAI1-1/+12
* file.c (HTMLtagproc1): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB * html.c (TagMAP): sup, /sup, sub, /sub * html.c (HTML_SUP): added (HTML_N_SUP): added (HTML_SUB): added (HTML_N_SUB): added * table.c (feed_table_tag): HTML_SUP, HTML_N_SUP, HTML_SUB, HTML_N_SUB * tagtable.tab (sup): added (/sup): added (sub): added (/sub): added From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-09-28Re: [w3m-dev 03320] Re: PasswordsFumitoshi UKAI1-8/+8
* etc.c (dir_under): same path is ok * file.c (loadGeneralFile): if missing, return NULL ssl cert already checked * html.h (URLFILE): add ssl_certificate * istream.c (ssl_get_certificate): change args * istream.h (ssl_get_certificate): ditto * url.c (openSSLHandle): add p_cert ssl certificate check here (HTTPrequest): auth_cookie fix From: AIDA Shinra <aida-s@jcom.home.ne.jp>
2002-09-24[w3m-dev 03318] Re: PasswordsFumitoshi UKAI1-116/+19
* etc.c (struct auth_path): added (passwords): added (dir_under): added (add_auth_pass_entry): added (find_auth_pass_entry): added (find_auth_user_passwd): added (loadPasswd): added (find_auth): dir_under() (add_auth_cookie): check file * file.c (find_auth_user_passwd): removed (getAuthCookie): use delText() check proxy (get_auth_cookie): removed (loadGeneralFile): auth_pu * proto.h (schemeToProxy): added (get_auth_cookie): removed (loadPasswd): added (find_auth_user_passwd): added * rc.c (sync_with_option): loadPasswd() * textlist.c (delValue): added * textlist.h (delValue): added (delText): added * url.c (HTTPrequest): seen_www_auth (schemeToProxy): added From: AIDA Shinra <aida-s@jcom.home.ne.jp>
2002-09-11[w3m-dev 03311] Re: PasswordsFumitoshi UKAI1-1/+3
* configure (config.h): default PASSWD_FILE * fm.h (passwd_file): default PASSWD_FILE From: Yuuichi Teranishi <teranisi@gohome.org>
2002-09-10if wrong password, dont read passwd_fileFumitoshi UKAI1-2/+3
2002-09-10fcloseFumitoshi UKAI1-2/+3
2002-09-10[w3m-dev 03307] add password_file supportFumitoshi UKAI1-41/+132
* file.c (find_auth_user_passwd): added * fm.h (passwd_file): added * rc.c (CMT_PASSWDFILE): added (passwdfile): added From: Fumitoshi UKAI <ukai@debian.or.jp>
2002-08-27run indentFumitoshi UKAI1-2/+2
2002-08-20Debian Bug#157098: wrong file presentation on large filesFumitoshi UKAI1-12/+12
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-07-19[w3m-dev 03276] compile error on EWS4800Fumitoshi UKAI1-2/+2
* file.c (extract_auth_val): fix warnings * w3mimg/w3mimg.c: include <stdlib.h> From: Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
2002-06-24[w3m-dev 03233] "obuf->flag |= RB_IGNORE_P" after <body> tagFumitoshi UKAI1-2/+1
* file.c (HTMLtagproc1): no need RB_IGNORE_P after <body> tag From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-06-09[w3m-dev-en 00752] Re: tab completion weirdness in w3m 0.3Fumitoshi UKAI1-5/+9
* file.c (doFileCopy): same fix as [w3m-dev-en 00751] From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
2002-05-14[w3m-dev 03191] typo in file.c:extract_auth_val()?Fumitoshi UKAI1-2/+2
* file.c (extract_auth_val): s/177/0177/ From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
2002-04-17[w3m-dev 03176] no Content-Type in http response headerFumitoshi UKAI1-1/+3
* file.c (loadGeneralFile): guess content-type from filename From: Kiyokazu SUTO <suto@ks-and-ks.ne.jp>
2002-04-09[w3m-dev 03167] xface2xbm -> xface2xpm (current imlib can't handle XBM)Fumitoshi UKAI1-9/+11
* configure: s/XFACE2XBM/XFACE2XPM/ * config.h.dist: ditto * file.c (xface2xpm): renamed from xface2xbm modified for xpm (readHeader): s/xface2xbm/xface2xpm/ * scripts/Makefile (LIB_TARGETS): s/xface2xbm/xface2xpm/ * scripts/xface2xpm.in: added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-19[w3m-dev 03135] commit of [w3m-dev 03006] is incomplete.Fumitoshi UKAI1-3/+6
* file.c (HTMLlineproc2body): check form_int fid attr update forms[] fix buf->formlist From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-15indent fixFumitoshi UKAI1-6/+8
2002-03-15[w3m-dev 03132] Re: Reload imageFumitoshi UKAI1-4/+7
* file.c (loadGeneralFile): b->type = "text/html" * file.c (loadImageBuffer): comment out getImageSize() image_flag = IMG_FLAG_AUTO * file.c (openGeneralPagerBuffer): buf->type = "text/html" * frame.c (resetFrameElement): if (buf->mailcap_source) ... * frame.c (frame_download_source): if (buf->mailcap_source) ... * main.c (vwSrc): #ifdef USE_IMAGE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-14[w3m-dev 03129] Re: X-FaceFumitoshi UKAI1-4/+20
* configure (use_xface): ask * fm.h (_Buffer): add header_source * buffer.c (reshapeBuffer): fix reshape when reading stdin with image fix disappearing header when reading stdin * file.c (xface2xbm): check file existence * file.c (readHeader): save to tmp file X-Face when activeImage & displayImage * main.c (dispI): comment out checking content type * main.c (stopI): ditto * scripts/xface2xbm.in: update compface URL read from file $XF write to file $XBM From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-13[w3m-dev 03127] X-FaceFumitoshi UKAI1-1/+42
* NEWS: X-Face support * configure (use_xface): added * config.h.dist (USE_XFACE): added (XFACE2XBM): added * file.c (xface2xbm): added (readHeader): X-Face: handling * scripts/Makefile (LIB_TARGETS): add xface2xbm * scripts/xface2xbm.in: added From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-13[w3m-dev 03125] w3m -m < imageFumitoshi UKAI1-1/+10
* file.c (openGeneralPagerBuffer): use internal viewer for -m option From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-12[w3m-dev 03116] Re: aligned block in <td align="center">Fumitoshi UKAI1-1/+4
* file.c (flushline): align if align="align" * fm.h (RB_LEFT): change value (RB_ALIGN): include RB_LEFT (RB_INTABLE): added * table.c (do_refill): obuf.flag |= RB_INTABLE From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>
2002-03-11[w3m-dev 03110] Re: gopher brokenFumitoshi UKAI1-1/+3
* file.c (loadGeneralFile): #ifdef USE_GOPHER From: WATANABE Katsuyuki <katsuyuki_1.watanabe@toppan.co.jp>
2002-03-10[w3m-dev 03106] Re: displayBufferFumitoshi UKAI1-1/+2
* display.c (displayBuffer): revert previous changes * file.c (process_img): remove space in src attribute From: Hironori Sakamoto <hsaka@mth.biglobe.ne.jp>