[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>
This commit is contained in:
Fumitoshi UKAI
2003-01-08 17:24:11 +00:00
parent f511560b10
commit e78b061cfd
7 changed files with 106 additions and 51 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: indep.h,v 1.10 2002/11/09 21:55:24 ukai Exp $ */
/* $Id: indep.h,v 1.11 2003/01/08 17:24:12 ukai Exp $ */
#ifndef INDEP_H
#define INDEP_H
#include "gc.h"
@@ -45,9 +45,9 @@ extern char *html_unquote(char *str);
extern char *file_quote(char *str);
extern char *file_unquote(char *str);
extern char *url_quote(char *str);
extern char *url_unquote(char *str);
extern Str Str_url_unquote(Str x, int is_form);
extern Str Str_form_quote(Str x);
extern Str Str_form_unquote(Str x);
#define Str_form_unquote(x) Str_url_unquote((x), TRUE)
extern char *shell_quote(char *str);
extern char *w3m_auxbin_dir();