[w3m-dev 03735] Re: make error of checkType arg

* 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>
This commit is contained in:
Fumitoshi UKAI
2003-02-06 17:21:42 +00:00
parent 1724907ef8
commit adf53cebd2
4 changed files with 43 additions and 74 deletions

View File

@@ -1,4 +1,4 @@
/* $Id: proto.h,v 1.89 2003/02/06 17:15:13 ukai Exp $ */
/* $Id: proto.h,v 1.90 2003/02/06 17:21:44 ukai Exp $ */
/*
* This file was automatically generated by version 1.7 of cextract.
* Manual editing not recommended.
@@ -306,11 +306,10 @@ extern int columnLen(Line *line, int column);
extern Line *lineSkip(Buffer *buf, Line *line, int offset, int last);
extern Line *currentLineSkip(Buffer *buf, Line *line, int offset, int last);
extern int gethtmlcmd(char **s);
extern Str checkType(Str s, Lineprop **oprop
#ifdef USE_ANSI_COLOR
, Linecolor **ocolor
#ifndef USE_ANSI_COLOR
#define checkType(a,b,c) _checkType(a,b)
#endif
);
extern Str checkType(Str s, Lineprop **oprop, Linecolor **ocolor);
extern int calcPosition(char *l, Lineprop *pr, int len, int pos, int bpos,
int mode);
extern char *lastFileName(char *path);