TempleOSCD_150216.ISO
This commit is contained in:
1 parent
64f679eeb9
commit
401601816c
531 files changed
+23341
-22071
No files matched your search
+17
-13
@@ -5,15 +5,15 @@ U0 BgtAcctsUpdate()
|
||||
tempb=b_root.next;
|
||||
while (tempb!=&b_root) {
|
||||
if (tempb->type!=BE_TEMPLATE_COPY) {
|
||||
tempb->credit_index =StrFileAdd(tempb->credit,accts_table);
|
||||
tempb->debit_index =StrFileAdd(tempb->debit,accts_table);
|
||||
tempb->credit_index =StrFileAdd(tempb->credit,&accts_table_strs,accts_table);
|
||||
tempb->debit_index =StrFileAdd(tempb->debit,&accts_table_strs,accts_table);
|
||||
}
|
||||
tempb=tempb->next;
|
||||
}
|
||||
tempt=t_root.next;
|
||||
while (tempt!=&t_root) {
|
||||
tempt->b.credit_index =StrFileAdd(tempt->b.credit,accts_table);
|
||||
tempt->b.debit_index =StrFileAdd(tempt->b.debit,accts_table);
|
||||
tempt->b.credit_index =StrFileAdd(tempt->b.credit,&accts_table_strs,accts_table);
|
||||
tempt->b.debit_index =StrFileAdd(tempt->b.debit,&accts_table_strs,accts_table);
|
||||
tempt=tempt->next;
|
||||
}
|
||||
}
|
||||
@@ -29,10 +29,11 @@ U0 BgtAcctsRead()
|
||||
I64 i,max_num;
|
||||
U8 *colors,**s=StrFileRead(BGT_ACCTS_FILE,&max_num,&colors,TRUE);
|
||||
StrFileDel(accts_table);
|
||||
accts_table=HashTableNew(0x200);
|
||||
accts_table=HashTableNew(512);
|
||||
accts_table_strs=0;
|
||||
for (i=0;i<=max_num;i++)
|
||||
if (s[i])
|
||||
StrFileAdd(s[i],accts_table,colors[i]);
|
||||
StrFileAdd(s[i],&accts_table_strs,accts_table,colors[i]);
|
||||
StrFileArrDel(s,max_num);
|
||||
Free(colors);
|
||||
}
|
||||
@@ -48,6 +49,7 @@ I64 BgtAcctColor(U8 *st)
|
||||
|
||||
U8 *BgtPopUpAcct(U8 *header=NULL,U8 *dft=NULL)
|
||||
{
|
||||
I64 i;
|
||||
U8 *result;
|
||||
CDoc *doc=DocNew;
|
||||
CDocEntry *doc_e,*doc_dft=NULL;
|
||||
@@ -56,13 +58,15 @@ U8 *BgtPopUpAcct(U8 *header=NULL,U8 *dft=NULL)
|
||||
if (header)
|
||||
DocPrint(doc,"%s",header);
|
||||
|
||||
temph=accts_table->next_added;
|
||||
while (temph!=accts_table) {
|
||||
doc_e=DocPrint(doc,"$$FG,%d$$$$MU-UL,\"%s\",LE=0x%X$$\n",
|
||||
temph->user_data1,temph->str,temph->str);
|
||||
if (dft && !StrCmp(dft,temph->str))
|
||||
doc_dft=doc_e;
|
||||
temph=temph->next_added;
|
||||
for (i=0;i<=accts_table->mask;i++) {
|
||||
temph=accts_table->body[i];
|
||||
while (temph) {
|
||||
doc_e=DocPrint(doc,"$$FG,%d$$$$MU-UL,\"%s\",LE=0x%X$$\n",
|
||||
temph->user_data1,temph->str,temph->str);
|
||||
if (dft && !StrCmp(dft,temph->str))
|
||||
doc_dft=doc_e;
|
||||
temph=temph->next;
|
||||
}
|
||||
}
|
||||
|
||||
if (doc_dft) {
|
||||
|
||||
Reference in new issue
Block a user