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:
Linas Vepstas 1998-10-12 03:08:35 +00:00
parent ec07c064a1
commit bf55880a4d
2 changed files with 8 additions and 4 deletions

View File

@ -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]);
}

View File

@ -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
{