HomeForumSourceResearchGuide
Sign in to contribute to source. how it works
Component util.compiler.DNCUtil by barry
expand copy to clipboardexpand
interface DNCUtilLib {
	int findString(char base[], char find[])
	DanaType findType(DanaType types[], char name[])
	int findFunctionIndex(OpFunction functions[], char name[])
}

component provides DNCUtil requires native DNCUtilLib lib {

	int DNCUtil:findString(char base[], char find[])
		{
		return lib.findString(base, find)
		}
	
	DanaType DNCUtil:findType(DanaType types[], char name[])
		{
		return lib.findType(types, name)
		}
	
	int DNCUtil:findFunctionIndex(OpFunction functions[], char name[])
		{
		return lib.findFunctionIndex(functions, name)
		}

}
Revision history
To propose a new revision to this entity, use dana source put -uc your/new/version.dn -n util.compiler.DNCUtil -m "reason for update" -u yourUsername
Version 1 (this version) by barry
Notes for this version: New compiler components