mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-20 11:48:30 -06:00
change to routine providing access to account type names
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1299 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
ec07c064a1
commit
bf55880a4d
@ -22,3 +22,10 @@ char *account_type_name[NUM_ACCOUNT_TYPES] =
|
||||
CREDITLINE_STR
|
||||
};
|
||||
|
||||
|
||||
char * xaccAccountGetTypeStr (int type)
|
||||
{
|
||||
if (0 > type) return "";
|
||||
if (NUM_ACCOUNT_TYPES <= type) return "";
|
||||
return (account_type_name [type]);
|
||||
}
|
||||
|
@ -97,10 +97,7 @@ enum
|
||||
|
||||
};
|
||||
|
||||
/* hack alert -- we need a better way of dealing with
|
||||
* account names!
|
||||
*/
|
||||
extern char *account_type_name [NUM_ACCOUNT_TYPES];
|
||||
char * xaccAccountGetTypeStr (int type);
|
||||
|
||||
struct _BankAcct
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user