mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
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:
parent
02ba6d64c1
commit
9a22fb5ff1
@ -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…
Reference in New Issue
Block a user