Example #1
0
static void Program(void)
{
	Int32 l1,l2;

	l1=vm_genI(op_adjs,0);
	
	while( Token!=tERROR && Token!=tEOF )
	{
		if( Token==tCLASS )
		{
			l2 = vm_genI(op_jmp,0);
			ClassDefinition();
			vm_patch(l2,vm_addr());
		}
		else if( Token==tDEF )
		{
			l2 = vm_genI(op_jmp,0);
			MethodDefinition();
			vm_patch(l2,vm_addr());
		}
		else
		{
			Statement();
		}
	}

	/* reserve space for globals */
	vm_patch(l1,global_num);
	vm_gen0(op_halt);
}
FdoDataPropertyDefinitionCollection *
    CGwsQueryResultDescriptors::GetIdentityProperties ()
{
    if (m_identprops == NULL) {
        FdoPtr<FdoClassDefinition> classdef = ClassDefinition ();
        GwsCommonFdoUtils::GetFdoClassIdentityProperties (classdef, m_identprops.p);
    }
    if (m_identprops != NULL)
        m_identprops.p->AddRef ();
    return m_identprops;
}