⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wmlelm.c

📁 是一个手机功能的模拟程序
💻 C
📖 第 1 页 / 共 5 页
字号:

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_DO;
		pElement->pNextElement=NULL;
	
		/* Element specific */

		/* Default format is "unknown" */
		pElement->pchType=wip_byte2wchar((BYTE *)"unknown");
		pElement->pLabel=NULL;
		pElement->pchName=NULL;
		pElement->fOptional=FALSE;
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;
	
	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pFIELDSETELEMENT WML_CreateFIELDSET (void) 
{
	pFIELDSETELEMENT pElement=NEWSTRUCT(FIELDSETELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_FIELDSET;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pTitle=NULL;
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pGOELEMENT WML_CreateGO (void) 
{
	pGOELEMENT pElement=NEWSTRUCT(GOELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_GO;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pHref=NULL;
		pElement->fSendRef=FALSE;
		pElement->iMethod=M_Get;
		pElement->pchAccChar=NULL;
		pElement->pContent=NULL;
		pElement->iEnctype=GO_urlencoded;
		pElement->iCacheControl=Cache_unknown;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pHEADELEMENT WML_CreateHEAD (void) 
{
	pHEADELEMENT pElement=NEWSTRUCT(HEADELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_HEAD;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pIMGELEMENT WML_CreateIMG (void) 
{
	pIMGELEMENT pElement=NEWSTRUCT(IMGELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_IMG;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pAlt=NULL;
		pElement->pSrc=NULL;
		pElement->pLocalSrc=NULL;
		pElement->iVSpace=0;
		pElement->iHSpace=0;
		pElement->iIAlign=ALIGN_BOTTOM;
		pElement->iHeight=0;
		pElement->iWidth=0;
		pElement->iIsPercent=NONE_IS_PERCENT;
	    pElement->iMMIElementID=0;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pINPUTELEMENT WML_CreateINPUT (void) 
{
	pINPUTELEMENT pElement=NEWSTRUCT(INPUTELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_INPUT;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pchName=NULL;
		pElement->iInputType=DEF_TYPE_TEXT;
		pElement->pValue=NULL;
		
		/* Default format is *M */
		pElement->pchFormat=wip_byte2wchar((BYTE *)"*M");
		pElement->fEmptyOK=FALSE;
		pElement->iSize=-1;
		pElement->iMaxLength=-1;
		pElement->iTabIndex=0;
		pElement->pTitle=NULL;
		pElement->pwchXmlLang=NULL;
		pElement->wchAccessKey=0;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pMETAELEMENT WML_CreateMETA (void) 
{
	pMETAELEMENT pElement=NEWSTRUCT(METAELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_META;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pchHttpEquiv=NULL;
		pElement->pchName=NULL;
		pElement->fForua=FALSE;
		pElement->pchContent=NULL;
		pElement->pchScheme=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pONEVENTELEMENT WML_CreateONEVENT (void) 
{
	pONEVENTELEMENT pElement=NEWSTRUCT(ONEVENTELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_ONEVENT;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->iEventType=0;
		pElement->pContent=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pOPTGROUPELEMENT WML_CreateOPTGROUP (void) 
{
	pOPTGROUPELEMENT pElement=NEWSTRUCT(OPTGROUPELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_OPTGROUP;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pTitle=NULL;
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pOPTIONELEMENT WML_CreateOPTION (void) 
{
	pOPTIONELEMENT pElement=NEWSTRUCT(OPTIONELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_OPTION;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pValue=NULL;
		pElement->pTitle=NULL;
		pElement->pOnpick=NULL;
		pElement->pContent=NULL;
		pElement->fSelected=FALSE;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pPELEMENT WML_CreateP (void) 
{
	pPELEMENT pElement=NEWSTRUCT(PELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_P;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->iAlign=ALIGN_LEFT;
		pElement->iMode=P_Unknown;
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pPOSTFIELDELEMENT WML_CreatePOSTFIELD (void) 
{
	pPOSTFIELDELEMENT pElement=NEWSTRUCT(POSTFIELDELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_POSTFIELD;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pName=NULL;
		pElement->pValue=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pPREELEMENT WML_CreatePRE (void) 
{
	pPREELEMENT pElement=NEWSTRUCT(PREELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_PRE;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;
		pElement->iXmlSpace=XML_SPACE_PRESERVE;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pPREVELEMENT WML_CreatePREV (void) 
{
	pPREVELEMENT pElement=NEWSTRUCT(PREVELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_PREV;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pREFRESHELEMENT WML_CreateREFRESH (void) 
{
	pREFRESHELEMENT pElement=NEWSTRUCT(REFRESHELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_REFRESH;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pSELECTELEMENT WML_CreateSELECT (void) 
{
	pSELECTELEMENT pElement=NEWSTRUCT(SELECTELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_SELECT;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pTitle=NULL;
		pElement->pchName=NULL;
		pElement->pValue=NULL;
		pElement->pchIName=NULL;
		pElement->pIValue=NULL;
		pElement->fMultiple=FALSE;	
		pElement->iTabIndex=0;
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pSETVARELEMENT WML_CreateSETVAR (void) 
{
	pSETVARELEMENT pElement=NEWSTRUCT(SETVARELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_SETVAR;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pName=NULL;
		pElement->pValue=NULL;
	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pTABLEELEMENT WML_CreateTABLE (void) 
{
	pTABLEELEMENT pElement=NEWSTRUCT(TABLEELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_TABLE;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pTitle=NULL;
		pElement->pchAlign=NULL;
		pElement->iColumns=0;
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pTDELEMENT WML_CreateTD (void) 
{
	pTDELEMENT pElement=NEWSTRUCT(TDELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_TD;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;
		pElement->pwchXmlLang=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pTEMPLATEELEMENT WML_CreateTEMPLATE (void) 
{
	pTEMPLATEELEMENT pElement=NEWSTRUCT(TEMPLATEELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_TEMPLATE;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pOnEntForw=NULL;
		pElement->pOnEntBack=NULL;
		pElement->pOnTimer=NULL;
		pElement->pContent=NULL;
		pElement->pEventTab=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pTIMERELEMENT WML_CreateTIMER (void) 
{
	pTIMERELEMENT pElement=NEWSTRUCT(TIMERELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_TIMER;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pchName=NULL;
		pElement->pValue=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pTRELEMENT WML_CreateTR (void) 
{
	pTRELEMENT pElement=NEWSTRUCT(TRELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_TR;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

pUNKNOWNELEMENT WML_CreateUNKNOWN (void) 
{
	pUNKNOWNELEMENT pElement=NEWSTRUCT(UNKNOWNELEMENT);

	#ifndef HAS_SETJMP
	if (pElement!=NULL) 
	{
	#endif

		pElement->iType=Type_UNKNOWN;
		pElement->pNextElement=NULL;

		/* Element specific */
		pElement->pContent=NULL;

	#ifndef HAS_SETJMP
	}
	#endif

	return pElement;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -