diff options
author | Thomas E. Dickey <dickey@invisible-island.net> | 1997-09-18 12:25:58 -0400 |
---|---|---|
committer | Thomas E. Dickey <dickey@invisible-island.net> | 1997-09-18 12:25:58 -0400 |
commit | d2e46bbfcbedb43938b866f4ad9e8bf1d4084b7c (patch) | |
tree | 9f98081fe52ddab37286a6208c66d3e7f14f216b /WWW/Library | |
parent | dc9e683bddf52e0720f5e74e3349533c9ee9f97a (diff) | |
download | lynx-snapshots-d2e46bbfcbedb43938b866f4ad9e8bf1d4084b7c.tar.gz |
snapshot of project "lynx", label v2-7-1ac_0-68
Diffstat (limited to 'WWW/Library')
-rw-r--r-- | WWW/Library/Implementation/HTFinger.c | 9 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTGopher.c | 9 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTMLDTD.c | 16 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTMLDTD.h | 4 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTMLGen.c | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/HTNews.c | 29 | ||||
-rw-r--r-- | WWW/Library/Implementation/SGML.c | 2 | ||||
-rw-r--r-- | WWW/Library/Implementation/SGML.h | 2 | ||||
-rw-r--r-- | WWW/Library/unix/makefile.in | 4 |
9 files changed, 36 insertions, 41 deletions
diff --git a/WWW/Library/Implementation/HTFinger.c b/WWW/Library/Implementation/HTFinger.c index d00b57cb..4c3c4e94 100644 --- a/WWW/Library/Implementation/HTFinger.c +++ b/WWW/Library/Implementation/HTFinger.c @@ -79,19 +79,18 @@ PRIVATE BOOL initialize NOARGS /* Start anchor element ** -------------------- */ -PRIVATE void start_anchor ARGS1(CONST char *, href) +PRIVATE void start_anchor ARGS1(char *, href) { BOOL present[HTML_A_ATTRIBUTES]; - CONST char* value[HTML_A_ATTRIBUTES]; + char* value[HTML_A_ATTRIBUTES]; { int i; for(i=0; i<HTML_A_ATTRIBUTES; i++) present[i] = (i==HTML_A_HREF); } - ((CONST char **)value)[HTML_A_HREF] = href; - (*targetClass.start_element)(target, HTML_A, present, - (CONST char **)value, 0); + value[HTML_A_HREF] = href; + (*targetClass.start_element)(target, HTML_A, present, value, 0); } diff --git a/WWW/Library/Implementation/HTGopher.c b/WWW/Library/Implementation/HTGopher.c index 46ed05f4..dd1a4662 100644 --- a/WWW/Library/Implementation/HTGopher.c +++ b/WWW/Library/Implementation/HTGopher.c @@ -185,23 +185,22 @@ PUBLIC BOOLEAN HT_Is_Gopher_URL=FALSE; PRIVATE void write_anchor ARGS2(CONST char *,text, CONST char *,addr) { BOOL present[HTML_A_ATTRIBUTES]; - CONST char * value[HTML_A_ATTRIBUTES]; + char * value[HTML_A_ATTRIBUTES]; int i; for (i = 0; i < HTML_A_ATTRIBUTES; i++) present[i] = 0; present[HTML_A_HREF] = YES; - ((CONST char **)value)[HTML_A_HREF] = addr; + value[HTML_A_HREF] = addr; present[HTML_A_TITLE] = YES; - ((CONST char **)value)[HTML_A_TITLE] = text; + value[HTML_A_TITLE] = text; if(TRACE) fprintf(stderr,"HTGopher: adding URL: %s\n",addr); HT_Is_Gopher_URL = TRUE; /* tell HTML.c that this is a Gopher URL */ - (*targetClass.start_element)(target, HTML_A, present, - (CONST char **)value, 0); + (*targetClass.start_element)(target, HTML_A, present, value, 0); PUTS(text); END(HTML_A); diff --git a/WWW/Library/Implementation/HTMLDTD.c b/WWW/Library/Implementation/HTMLDTD.c index 7eb1d86b..3f6df848 100644 --- a/WWW/Library/Implementation/HTMLDTD.c +++ b/WWW/Library/Implementation/HTMLDTD.c @@ -1780,11 +1780,11 @@ struct _HTStructured { PUBLIC void HTStartAnchor ARGS3( HTStructured *, obj, - CONST char *, name, - CONST char *, href) + char *, name, + char *, href) { BOOL present[HTML_A_ATTRIBUTES]; - CONST char * value[HTML_A_ATTRIBUTES]; + char * value[HTML_A_ATTRIBUTES]; int i; for (i = 0; i < HTML_A_ATTRIBUTES; i++) @@ -1792,11 +1792,11 @@ PUBLIC void HTStartAnchor ARGS3( if (name && *name) { present[HTML_A_NAME] = YES; - value[HTML_A_NAME] = (CONST char *)name; + value[HTML_A_NAME] = name; } if (href) { present[HTML_A_HREF] = YES; - value[HTML_A_HREF] = (CONST char *)href; + value[HTML_A_HREF] = href; } (*obj->isa->start_element)(obj, HTML_A, present, value, 0); @@ -1808,7 +1808,7 @@ PUBLIC void HTStartIsIndex ARGS3( CONST char *, href) { BOOL present[HTML_ISINDEX_ATTRIBUTES]; - CONST char * value[HTML_ISINDEX_ATTRIBUTES]; + char * value[HTML_ISINDEX_ATTRIBUTES]; int i; for (i = 0; i < HTML_ISINDEX_ATTRIBUTES; i++) @@ -1816,11 +1816,11 @@ PUBLIC void HTStartIsIndex ARGS3( if (prompt && *prompt) { present[HTML_ISINDEX_PROMPT] = YES; - value[HTML_ISINDEX_PROMPT] = (CONST char *)prompt; + value[HTML_ISINDEX_PROMPT] = prompt; } if (href) { present[HTML_ISINDEX_HREF] = YES; - value[HTML_ISINDEX_HREF] = (CONST char *)href; + value[HTML_ISINDEX_HREF] = href; } (*obj->isa->start_element)(obj, HTML_ISINDEX , present, value, 0); diff --git a/WWW/Library/Implementation/HTMLDTD.h b/WWW/Library/Implementation/HTMLDTD.h index f1688ffc..45ed9a36 100644 --- a/WWW/Library/Implementation/HTMLDTD.h +++ b/WWW/Library/Implementation/HTMLDTD.h @@ -962,8 +962,8 @@ Start anchor element */ extern void HTStartAnchor PARAMS(( HTStructured * targetstream, - CONST char * name, - CONST char * href)); + char * name, + char * href)); /* diff --git a/WWW/Library/Implementation/HTMLGen.c b/WWW/Library/Implementation/HTMLGen.c index 9a1efaf5..3b593d06 100644 --- a/WWW/Library/Implementation/HTMLGen.c +++ b/WWW/Library/Implementation/HTMLGen.c @@ -258,7 +258,7 @@ PRIVATE void HTMLGen_start_element ARGS5( HTStructured *, me, int, element_number, CONST BOOL*, present, - CONST char **, value, + char **, value, char **, insert) { int i; diff --git a/WWW/Library/Implementation/HTNews.c b/WWW/Library/Implementation/HTNews.c index bcf2993e..1fce965d 100644 --- a/WWW/Library/Implementation/HTNews.c +++ b/WWW/Library/Implementation/HTNews.c @@ -627,38 +627,36 @@ PRIVATE char * author_address ARGS1(char *,email) /* Start anchor element ** -------------------- */ -PRIVATE void start_anchor ARGS1(CONST char *, href) +PRIVATE void start_anchor ARGS1(char *, href) { BOOL present[HTML_A_ATTRIBUTES]; - CONST char* value[HTML_A_ATTRIBUTES]; + char* value[HTML_A_ATTRIBUTES]; { int i; for(i=0; i < HTML_A_ATTRIBUTES; i++) present[i] = (i == HTML_A_HREF); } - ((CONST char **)value)[HTML_A_HREF] = href; - (*targetClass.start_element)(target, HTML_A , present, - (CONST char **)value, 0); + value[HTML_A_HREF] = href; + (*targetClass.start_element)(target, HTML_A, present, value, 0); } /* Start link element ** ------------------ */ -PRIVATE void start_link ARGS2(CONST char *, href, CONST char *, rev) +PRIVATE void start_link ARGS2(char *, href, char *, rev) { BOOL present[HTML_LINK_ATTRIBUTES]; - CONST char* value[HTML_LINK_ATTRIBUTES]; + char* value[HTML_LINK_ATTRIBUTES]; { int i; for(i=0; i < HTML_LINK_ATTRIBUTES; i++) present[i] = (i == HTML_LINK_HREF || i == HTML_LINK_REV); } - ((CONST char **)value)[HTML_LINK_HREF] = href; - ((CONST char **)value)[HTML_LINK_REV] = rev; - (*targetClass.start_element)(target, HTML_LINK, present, - (CONST char **)value, 0); + value[HTML_LINK_HREF] = href; + value[HTML_LINK_REV] = rev; + (*targetClass.start_element)(target, HTML_LINK, present, value, 0); } /* Start list element @@ -667,17 +665,16 @@ PRIVATE void start_link ARGS2(CONST char *, href, CONST char *, rev) PRIVATE void start_list ARGS1(int, seqnum) { BOOL present[HTML_OL_ATTRIBUTES]; - CONST char* value[HTML_OL_ATTRIBUTES]; + char* value[HTML_OL_ATTRIBUTES]; char SeqNum[20]; int i; for (i = 0; i < HTML_OL_ATTRIBUTES; i++) present[i] = (i == HTML_OL_SEQNUM || i == HTML_OL_START); sprintf(SeqNum, "%d", seqnum); - ((CONST char **)value)[HTML_OL_SEQNUM] = SeqNum; - ((CONST char **)value)[HTML_OL_START] = SeqNum; - (*targetClass.start_element)(target, HTML_OL , present, - (CONST char **)value, 0); + value[HTML_OL_SEQNUM] = SeqNum; + value[HTML_OL_START] = SeqNum; + (*targetClass.start_element)(target, HTML_OL, present, value, 0); } /* Paste in an Anchor diff --git a/WWW/Library/Implementation/SGML.c b/WWW/Library/Implementation/SGML.c index 0ec49ff0..139be069 100644 --- a/WWW/Library/Implementation/SGML.c +++ b/WWW/Library/Implementation/SGML.c @@ -810,7 +810,7 @@ PRIVATE void start_element ARGS1( context->target, new_tag - context->dtd->tags, context->present, - (CONST char**) context->value, /* coerce type for think c */ + context->value, /* coerce type for think c */ (char **)&context->include); if (new_tag->contents != SGML_EMPTY) { /* i.e. tag not empty */ HTElement * N = (HTElement *)malloc(sizeof(HTElement)); diff --git a/WWW/Library/Implementation/SGML.h b/WWW/Library/Implementation/SGML.h index 42524cbe..4a0fbd76 100644 --- a/WWW/Library/Implementation/SGML.h +++ b/WWW/Library/Implementation/SGML.h @@ -206,7 +206,7 @@ typedef struct _HTStructuredClass{ HTStructured* me, int element_number, CONST BOOL* attribute_present, - CONST char** attribute_value, + char** attribute_value, char ** include)); void (*end_element) PARAMS(( diff --git a/WWW/Library/unix/makefile.in b/WWW/Library/unix/makefile.in index 7f221b33..14053794 100644 --- a/WWW/Library/unix/makefile.in +++ b/WWW/Library/unix/makefile.in @@ -45,11 +45,11 @@ all : $(LOB)/libwww.a .SUFFIXES: .i .h .html .c.o: -@SHOW_CC@ +@RULE_CC@ @ECHO_CC@$(CC) $(CPPOPTS) $(CFLAGS) -c $(srcdir)/$*.c .c.i: -@SHOW_CC@ +@RULE_CC@ @ECHO_CC@$(CPP) -C $(CPPOPTS) $*.c >$@ depend : |