add account types strings

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@822 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-04-19 06:05:49 +00:00
parent 17443baae0
commit 61e858bc73
4 changed files with 30 additions and 2 deletions

23
src/engine/AccInfo.c Normal file
View File

@ -0,0 +1,23 @@
#include "AccInfo.h"
#include "messages.h"
/* whoa! */
char *account_type_name[NUM_ACCOUNT_TYPES] =
{
BANK_STR,
CASH_STR,
ASSET_STR,
CREDIT_CARD_STR,
LIABILITY_STR,
STOCK_STR,
MUTUAL_FUND_STR,
INCOME_STR,
EXPENSE_STR,
EQUITY_STR,
CHECKING_STR,
SAVINGS_STR,
MONEYMRKT_STR,
CREDITLINE_STR
};

View File

@ -60,6 +60,11 @@ enum
NUM_ACCOUNT_TYPES = 14
};
/* hack alert -- we need a better way of dealing with
* account names!
*/
extern char *account_type_name [NUM_ACCOUNT_TYPES];
struct _BankAcct
{
char * bankid; /* routing and transit number */

View File

@ -41,7 +41,7 @@ LIBPATH = -L/lib -L/usr/lib -L/usr/local/lib
TARGET = ../libengine.a
######################################################################
SRCS = Account.c DateUtils.c FileIO.c Group.c LedgerUtils.c \
SRCS = AccInfo.c Account.c DateUtils.c FileIO.c Group.c LedgerUtils.c \
QIFIO.c Transaction.c TransLog.c date.c util.c
OBJS = ${SRCS:.c=.o}
######################################################################

View File

@ -41,7 +41,7 @@ LIBPATH = -L/lib -L/usr/lib -L/usr/local/lib
TARGET = ../libengine.a
######################################################################
SRCS = Account.c DateUtils.c FileIO.c Group.c LedgerUtils.c \
SRCS = AccInfo.c Account.c DateUtils.c FileIO.c Group.c LedgerUtils.c \
QIFIO.c Transaction.c TransLog.c date.c util.c
OBJS = ${SRCS:.c=.o}
######################################################################