Ok, so what was the point of a static (non-inline) function in a header file? Why do the other compilers allow this? Why does Workshop 5.0 barf on it?

This commit is contained in:
cls%seawood.org 2000-09-09 06:02:34 +00:00
parent 02ba6d64c1
commit 9a22fb5ff1
4 changed files with 6 additions and 2 deletions

View File

@ -33,6 +33,8 @@
#ifndef _COTHERELEMENTS_
#define _COTHERELEMENTS_
#include "nsDTDUtils.h"
/************************************************************************
This union is a bitfield which describes the group membership
************************************************************************/

View File

@ -607,7 +607,7 @@ inline PRInt32 FirstOf(nsDTDContext& aContext,PRInt32 aStartOffset,TagList& aTag
* @param id of tag
* @return TRUE of the element's end tag is optional
*/
static PRBool HasOptionalEndTag(eHTMLTags aTag) {
PRBool HasOptionalEndTag(eHTMLTags aTag) {
static eHTMLTags gHasOptionalEndTags[]={eHTMLTag_body,eHTMLTag_colgroup,eHTMLTag_dd,eHTMLTag_dt,
eHTMLTag_head,eHTMLTag_li,eHTMLTag_option,
eHTMLTag_p,eHTMLTag_tbody,eHTMLTag_td,eHTMLTag_tfoot,

View File

@ -33,6 +33,8 @@
#ifndef _COTHERELEMENTS_
#define _COTHERELEMENTS_
#include "nsDTDUtils.h"
/************************************************************************
This union is a bitfield which describes the group membership
************************************************************************/

View File

@ -607,7 +607,7 @@ inline PRInt32 FirstOf(nsDTDContext& aContext,PRInt32 aStartOffset,TagList& aTag
* @param id of tag
* @return TRUE of the element's end tag is optional
*/
static PRBool HasOptionalEndTag(eHTMLTags aTag) {
PRBool HasOptionalEndTag(eHTMLTags aTag) {
static eHTMLTags gHasOptionalEndTags[]={eHTMLTag_body,eHTMLTag_colgroup,eHTMLTag_dd,eHTMLTag_dt,
eHTMLTag_head,eHTMLTag_li,eHTMLTag_option,
eHTMLTag_p,eHTMLTag_tbody,eHTMLTag_td,eHTMLTag_tfoot,