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?
git-svn-id: svn://10.0.0.236/trunk@78595 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
645a320a3c
commit
6bcf45b610
@ -33,6 +33,8 @@
|
||||
#ifndef _COTHERELEMENTS_
|
||||
#define _COTHERELEMENTS_
|
||||
|
||||
#include "nsDTDUtils.h"
|
||||
|
||||
/************************************************************************
|
||||
This union is a bitfield which describes the group membership
|
||||
************************************************************************/
|
||||
|
||||
@ -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,
|
||||
|
||||
@ -33,6 +33,8 @@
|
||||
#ifndef _COTHERELEMENTS_
|
||||
#define _COTHERELEMENTS_
|
||||
|
||||
#include "nsDTDUtils.h"
|
||||
|
||||
/************************************************************************
|
||||
This union is a bitfield which describes the group membership
|
||||
************************************************************************/
|
||||
|
||||
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user