mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Type json improvements
This commit is contained in:
@@ -100,14 +100,20 @@ TransactionFormat InnerTxnFormats[]=
|
||||
{ NULL, ttINVALID }
|
||||
};
|
||||
|
||||
TransactionFormat* getTxnFormat(TransactionType t)
|
||||
TransactionFormat* getTxnFormat(TransactionType t)
|
||||
{
|
||||
TransactionFormat* f = InnerTxnFormats;
|
||||
while (f->t_name != NULL)
|
||||
return getTxnFormat(t);
|
||||
}
|
||||
|
||||
TransactionFormat* getTxnFormat(int t)
|
||||
{
|
||||
TransactionFormat* f = InnerTxnFormats;
|
||||
while (f->t_name != NULL)
|
||||
{
|
||||
if (f->t_type == t) return f;
|
||||
if (f->t_type == t)
|
||||
return f;
|
||||
++f;
|
||||
}
|
||||
return NULL;
|
||||
return NULL;
|
||||
}
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user