Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 74412 Details for
Bug 114100
emerge dev-libs/libofx-0.6.6 fails during compilation
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libofx-0.6.6-gcc34-broken.diff
libofx-0.6.6-gcc34-broken.diff (text/plain), 10.55 KB, created by
Marcelo Goes (RETIRED)
on 2005-12-09 19:58:17 UTC
(
hide
)
Description:
libofx-0.6.6-gcc34-broken.diff
Filename:
MIME Type:
Creator:
Marcelo Goes (RETIRED)
Created:
2005-12-09 19:58:17 UTC
Size:
10.55 KB
patch
obsolete
>diff --exclude='*~' -Naur libofx-0.6.6.orig/ofxdump/ofxdump.cpp libofx-0.6.6/ofxdump/ofxdump.cpp >--- libofx-0.6.6.orig/ofxdump/ofxdump.cpp 2005-12-10 01:25:53.000000000 -0200 >+++ libofx-0.6.6/ofxdump/ofxdump.cpp 2005-12-10 01:51:13.000000000 -0200 >@@ -202,47 +202,47 @@ > cout<<" Account ID : "<<data.account_id<<"\n"; > } > >- if(data.transactiontype_valid==true){ >- switch(data.transactiontype){ >- case data.OFX_CREDIT: strncpy(dest_string, "CREDIT: Generic credit", sizeof(dest_string)); >- break; >- case data.OFX_DEBIT: strncpy(dest_string, "DEBIT: Generic debit", sizeof(dest_string)); >- break; >- case data.OFX_INT: strncpy(dest_string, "INT: Interest earned or paid (Note: Depends on signage of amount)", sizeof(dest_string)); >- break; >- case data.OFX_DIV: strncpy(dest_string, "DIV: Dividend", sizeof(dest_string)); >- break; >- case data.OFX_FEE: strncpy(dest_string, "FEE: FI fee", sizeof(dest_string)); >- break; >- case data.OFX_SRVCHG: strncpy(dest_string, "SRVCHG: Service charge", sizeof(dest_string)); >- break; >- case data.OFX_DEP: strncpy(dest_string, "DEP: Deposit", sizeof(dest_string)); >- break; >- case data.OFX_ATM: strncpy(dest_string, "ATM: ATM debit or credit (Note: Depends on signage of amount)", sizeof(dest_string)); >- break; >- case data.OFX_POS: strncpy(dest_string, "POS: Point of sale debit or credit (Note: Depends on signage of amount)", sizeof(dest_string)); >- break; >- case data.OFX_XFER: strncpy(dest_string, "XFER: Transfer", sizeof(dest_string)); >- break; >- case data.OFX_CHECK: strncpy(dest_string, "CHECK: Check", sizeof(dest_string)); >- break; >- case data.OFX_PAYMENT: strncpy(dest_string, "PAYMENT: Electronic payment", sizeof(dest_string)); >- break; >- case data.OFX_CASH: strncpy(dest_string, "CASH: Cash withdrawal", sizeof(dest_string)); >- break; >- case data.OFX_DIRECTDEP: strncpy(dest_string, "DIRECTDEP: Direct deposit", sizeof(dest_string)); >- break; >- case data.OFX_DIRECTDEBIT: strncpy(dest_string, "DIRECTDEBIT: Merchant initiated debit", sizeof(dest_string)); >- break; >- case data.OFX_REPEATPMT: strncpy(dest_string, "REPEATPMT: Repeating payment/standing order", sizeof(dest_string)); >- break; >- case data.OFX_OTHER: strncpy(dest_string, "OTHER: Other", sizeof(dest_string)); >- break; >- default : strncpy(dest_string, "Unknown transaction type", sizeof(dest_string)); >- break; >+ if(data.transactiontype_valid==true) >+ { >+ if(data.transactiontype==OFX_CREDIT) >+ strncpy(dest_string, "CREDIT: Generic credit", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_DEBIT) >+ strncpy(dest_string, "DEBIT: Generic debit", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_INT) >+ strncpy(dest_string, "INT: Interest earned or paid (Note: Depends on signage of amount)", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_DIV) >+ strncpy(dest_string, "DIV: Dividend", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_FEE) >+ strncpy(dest_string, "FEE: FI fee", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_SRVCHG) >+ strncpy(dest_string, "SRVCHG: Service charge", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_DEP) >+ strncpy(dest_string, "DEP: Deposit", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_ATM) >+ strncpy(dest_string, "ATM: ATM debit or credit (Note: Depends on signage of amount)", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_POS) >+ strncpy(dest_string, "POS: Point of sale debit or credit (Note: Depends on signage of amount)", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_XFER) >+ strncpy(dest_string, "XFER: Transfer", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_CHECK) >+ strncpy(dest_string, "CHECK: Check", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_PAYMENT) >+ strncpy(dest_string, "PAYMENT: Electronic payment", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_CASH) >+ strncpy(dest_string, "CASH: Cash withdrawal", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_DIRECTDEP) >+ strncpy(dest_string, "DIRECTDEP: Direct deposit", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_DIRECTDEBIT) >+ strncpy(dest_string, "DIRECTDEBIT: Merchant initiated debit", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_REPEATPMT) >+ strncpy(dest_string, "REPEATPMT: Repeating payment/standing order", sizeof(dest_string)); >+ else if (data.transactiontype==OFX_OTHER) >+ strncpy(dest_string, "OTHER: Other", sizeof(dest_string)); >+ else >+ strncpy(dest_string, "Unknown transaction type", sizeof(dest_string)); >+ cout<<" Transaction type: "<<dest_string<<"\n"; > } >- cout<<" Transaction type: "<<dest_string<<"\n"; >- } >+ > if(data.date_initiated_valid==true){ > strftime(dest_string,sizeof(dest_string),"%c %Z",localtime(&(data.date_initiated))); > cout<<" Date initiated: "<<dest_string<<"\n"; >@@ -283,47 +283,46 @@ > } > if(data.invtransactiontype_valid==true){ > cout<<" Investment transaction type: "; >- switch(data.invtransactiontype){ >- case data.OFX_BUYDEBT: strncpy(dest_string, "BUYDEBT (Buy debt security)", sizeof(dest_string)); >- break; >- case data.OFX_BUYMF: strncpy(dest_string, "BUYMF (Buy mutual fund)", sizeof(dest_string)); >- break; >- case data.OFX_BUYOPT: strncpy(dest_string, "BUYOPT (Buy option)", sizeof(dest_string)); >- break; >- case data.OFX_BUYOTHER: strncpy(dest_string, "BUYOTHER (Buy other security type)", sizeof(dest_string)); >- break; >- case data.OFX_BUYSTOCK: strncpy(dest_string, "BUYSTOCK (Buy stock))", sizeof(dest_string)); >- break; >- case data.OFX_CLOSUREOPT: strncpy(dest_string, "CLOSUREOPT (Close a position for an option)", sizeof(dest_string)); >- break; >- case data.OFX_INCOME: strncpy(dest_string, "INCOME (Investment income is realized as cash into the investment account)", sizeof(dest_string)); >- break; >- case data.OFX_INVEXPENSE: strncpy(dest_string, "INVEXPENSE (Misc investment expense that is associated with a specific security)", sizeof(dest_string)); >- break; >- case data.OFX_JRNLFUND: strncpy(dest_string, "JRNLFUND (Journaling cash holdings between subaccounts within the same investment account)", sizeof(dest_string)); >- break; >- case data.OFX_MARGININTEREST: strncpy(dest_string, "MARGININTEREST (Margin interest expense)", sizeof(dest_string)); >- break; >- case data.OFX_REINVEST: strncpy(dest_string, "REINVEST (Reinvestment of income)", sizeof(dest_string)); >- break; >- case data.OFX_RETOFCAP: strncpy(dest_string, "RETOFCAP (Return of capital)", sizeof(dest_string)); >- break; >- case data.OFX_SELLDEBT: strncpy(dest_string, "SELLDEBT (Sell debt security. Used when debt is sold, called, or reached maturity)", sizeof(dest_string)); >- break; >- case data.OFX_SELLMF: strncpy(dest_string, "SELLMF (Sell mutual fund)", sizeof(dest_string)); >- break; >- case data.OFX_SELLOPT: strncpy(dest_string, "SELLOPT (Sell option)", sizeof(dest_string)); >- break; >- case data.OFX_SELLOTHER: strncpy(dest_string, "SELLOTHER (Sell other type of security)", sizeof(dest_string)); >- break; >- case data.OFX_SELLSTOCK: strncpy(dest_string, "SELLSTOCK (Sell stock)", sizeof(dest_string)); >- break; >- case data.OFX_SPLIT: strncpy(dest_string, "SPLIT (Stock or mutial fund split)", sizeof(dest_string)); >- break; >- case data.OFX_TRANSFER: strncpy(dest_string, "TRANSFER (Transfer holdings in and out of the investment account)", sizeof(dest_string)); >- break; >- default: strncpy(dest_string, "ERROR, this investment transaction type is unknown. This is a bug in ofxdump", sizeof(dest_string)); >- break; >+ if (data.invtransactiontype==OFX_BUYDEBT) >+ strncpy(dest_string, "BUYDEBT (Buy debt security)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_BUYMF) >+ strncpy(dest_string, "BUYMF (Buy mutual fund)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_BUYOPT) >+ strncpy(dest_string, "BUYOPT (Buy option)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_BUYOTHER) >+ strncpy(dest_string, "BUYOTHER (Buy other security type)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_BUYSTOCK) >+ strncpy(dest_string, "BUYSTOCK (Buy stock))", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_CLOSUREOPT) >+ strncpy(dest_string, "CLOSUREOPT (Close a position for an option)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_INCOME) >+ strncpy(dest_string, "INCOME (Investment income is realized as cash into the investment account)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_INVEXPENSE) >+ strncpy(dest_string, "INVEXPENSE (Misc investment expense that is associated with a specific security)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_JRNLFUND) >+ strncpy(dest_string, "JRNLFUND (Journaling cash holdings between subaccounts within the same investment account)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_MARGININTEREST) >+ strncpy(dest_string, "MARGININTEREST (Margin interest expense)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_REINVEST) >+ strncpy(dest_string, "REINVEST (Reinvestment of income)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_RETOFCAP) >+ strncpy(dest_string, "RETOFCAP (Return of capital)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_SELLDEBT) >+ strncpy(dest_string, "SELLDEBT (Sell debt security. Used when debt is sold, called, or reached maturity)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_SELLMF) >+ strncpy(dest_string, "SELLMF (Sell mutual fund)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_SELLOPT) >+ strncpy(dest_string, "SELLOPT (Sell option)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_SELLOTHER) >+ strncpy(dest_string, "SELLOTHER (Sell other type of security)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_SELLSTOCK) >+ strncpy(dest_string, "SELLSTOCK (Sell stock)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_SPLIT) >+ strncpy(dest_string, "SPLIT (Stock or mutial fund split)", sizeof(dest_string)); >+ else if (data.invtransactiontype==OFX_TRANSFER) >+ strncpy(dest_string, "TRANSFER (Transfer holdings in and out of the investment account)", sizeof(dest_string)); >+ else >+ strncpy(dest_string, "ERROR, this investment transaction type is unknown. This is a bug in ofxdump", sizeof(dest_string)); > } > cout<<dest_string<<"\n"; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 114100
: 74412