Type json improvements

This commit is contained in:
JoelKatz
2012-10-01 00:55:16 -07:00
parent b973f3509c
commit c6aa3b2678
5 changed files with 34 additions and 7 deletions

View File

@@ -86,13 +86,18 @@ LedgerEntryFormat LedgerFormats[]=
{ NULL, ltINVALID }
};
LedgerEntryFormat* getLgrFormat(LedgerEntryType t)
{
return getLgrFormat(t);
}
LedgerEntryFormat* getLgrFormat(int t)
{
LedgerEntryFormat* f = LedgerFormats;
while (f->t_name != NULL)
{
if (f->t_type == t) return f;
if (f->t_type == t)
return f;
++f;
}
return NULL;