Cleaned up warnings revealed by building with Xcode.
This commit is contained in:
parent
608d4f59fe
commit
0e02961b00
14 changed files with 3172 additions and 16 deletions
|
|
@ -31,8 +31,10 @@ const char * date_t::formats[] = {
|
|||
datetime_t datetime_t::now(std::time(NULL));
|
||||
|
||||
namespace {
|
||||
#if 0
|
||||
static std::time_t base = -1;
|
||||
static int base_year = -1;
|
||||
#endif
|
||||
|
||||
static const int month_days[12] = {
|
||||
31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31
|
||||
|
|
|
|||
|
|
@ -358,14 +358,14 @@ unsigned int gnucash_parser_t::parse(std::istream& in,
|
|||
in.getline(buf, BUFSIZ - 1);
|
||||
std::strcat(buf, "\n");
|
||||
if (! XML_Parse(parser, buf, std::strlen(buf), in.eof())) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
const char * msg = XML_ErrorString(XML_GetErrorCode(parser));
|
||||
XML_ParserFree(parser);
|
||||
throw new parse_error(msg);
|
||||
}
|
||||
|
||||
if (! have_error.empty()) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
parse_error err(have_error);
|
||||
std::cerr << "Error: " << err.what() << std::endl;
|
||||
have_error = "";
|
||||
|
|
|
|||
|
|
@ -605,7 +605,7 @@ void print_entry(std::ostream& out, const entry_base_t& entry_base,
|
|||
{
|
||||
std::string print_format;
|
||||
|
||||
if (const entry_t * entry = dynamic_cast<const entry_t *>(&entry_base)) {
|
||||
if (dynamic_cast<const entry_t *>(&entry_base)) {
|
||||
print_format = (prefix + "%D %X%C%P\n" +
|
||||
prefix + " %-34A %12o\n%/" +
|
||||
prefix + " %-34A %12o\n");
|
||||
|
|
|
|||
1431
ledger.xcodeproj/johnw.mode1
Normal file
1431
ledger.xcodeproj/johnw.mode1
Normal file
File diff suppressed because it is too large
Load diff
1154
ledger.xcodeproj/johnw.pbxuser
Normal file
1154
ledger.xcodeproj/johnw.pbxuser
Normal file
File diff suppressed because it is too large
Load diff
566
ledger.xcodeproj/project.pbxproj
Normal file
566
ledger.xcodeproj/project.pbxproj
Normal file
|
|
@ -0,0 +1,566 @@
|
|||
// !$*UTF8*$!
|
||||
{
|
||||
archiveVersion = 1;
|
||||
classes = {
|
||||
};
|
||||
objectVersion = 42;
|
||||
objects = {
|
||||
|
||||
/* Begin PBXBuildFile section */
|
||||
3356EA010B80299700EC228D /* main.cc in Sources */ = {isa = PBXBuildFile; fileRef = 3356EA000B80299700EC228D /* main.cc */; };
|
||||
3356EA0A0B8029FA00EC228D /* option.cc in Sources */ = {isa = PBXBuildFile; fileRef = 3356EA090B8029FA00EC228D /* option.cc */; };
|
||||
33AD831E0B80269C00CF4200 /* amount.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82DC0B80269C00CF4200 /* amount.cc */; };
|
||||
33AD831F0B80269C00CF4200 /* amount.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82DD0B80269C00CF4200 /* amount.h */; };
|
||||
33AD83200B80269C00CF4200 /* balance.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82DE0B80269C00CF4200 /* balance.cc */; };
|
||||
33AD83210B80269C00CF4200 /* balance.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82DF0B80269C00CF4200 /* balance.h */; };
|
||||
33AD83220B80269C00CF4200 /* binary.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82E00B80269C00CF4200 /* binary.cc */; };
|
||||
33AD83230B80269C00CF4200 /* binary.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82E10B80269C00CF4200 /* binary.h */; };
|
||||
33AD83240B80269C00CF4200 /* csv.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82E20B80269C00CF4200 /* csv.cc */; };
|
||||
33AD83250B80269C00CF4200 /* csv.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82E30B80269C00CF4200 /* csv.h */; };
|
||||
33AD83260B80269C00CF4200 /* datetime.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82E40B80269C00CF4200 /* datetime.cc */; };
|
||||
33AD83270B80269C00CF4200 /* datetime.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82E50B80269C00CF4200 /* datetime.h */; };
|
||||
33AD83280B80269C00CF4200 /* debug.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82E60B80269C00CF4200 /* debug.cc */; };
|
||||
33AD83290B80269C00CF4200 /* debug.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82E70B80269C00CF4200 /* debug.h */; };
|
||||
33AD832A0B80269C00CF4200 /* derive.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82E80B80269C00CF4200 /* derive.cc */; };
|
||||
33AD832B0B80269C00CF4200 /* derive.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82E90B80269C00CF4200 /* derive.h */; };
|
||||
33AD832E0B80269C00CF4200 /* emacs.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82EC0B80269C00CF4200 /* emacs.cc */; };
|
||||
33AD832F0B80269C00CF4200 /* emacs.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82ED0B80269C00CF4200 /* emacs.h */; };
|
||||
33AD83300B80269C00CF4200 /* error.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82EE0B80269C00CF4200 /* error.h */; };
|
||||
33AD83310B80269C00CF4200 /* fdstream.hpp in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82EF0B80269C00CF4200 /* fdstream.hpp */; };
|
||||
33AD83320B80269C00CF4200 /* format.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82F00B80269C00CF4200 /* format.cc */; };
|
||||
33AD83330B80269C00CF4200 /* format.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82F10B80269C00CF4200 /* format.h */; };
|
||||
33AD83340B80269C00CF4200 /* gnucash.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82F20B80269C00CF4200 /* gnucash.cc */; };
|
||||
33AD83350B80269C00CF4200 /* gnucash.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82F30B80269C00CF4200 /* gnucash.h */; };
|
||||
33AD83360B80269C00CF4200 /* journal.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82F40B80269C00CF4200 /* journal.cc */; };
|
||||
33AD83370B80269C00CF4200 /* journal.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82F50B80269C00CF4200 /* journal.h */; };
|
||||
33AD83380B80269C00CF4200 /* ledger.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82F60B80269C00CF4200 /* ledger.h */; };
|
||||
33AD83390B80269C00CF4200 /* mask.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82F70B80269C00CF4200 /* mask.cc */; };
|
||||
33AD833A0B80269C00CF4200 /* mask.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82F80B80269C00CF4200 /* mask.h */; };
|
||||
33AD833D0B80269C00CF4200 /* option.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82FB0B80269C00CF4200 /* option.h */; };
|
||||
33AD833E0B80269C00CF4200 /* parser.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD82FC0B80269C00CF4200 /* parser.cc */; };
|
||||
33AD833F0B80269C00CF4200 /* parser.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD82FD0B80269C00CF4200 /* parser.h */; };
|
||||
33AD83450B80269C00CF4200 /* qif.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83030B80269C00CF4200 /* qif.cc */; };
|
||||
33AD83460B80269C00CF4200 /* qif.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83040B80269C00CF4200 /* qif.h */; };
|
||||
33AD83470B80269C00CF4200 /* quotes.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83050B80269C00CF4200 /* quotes.cc */; };
|
||||
33AD83480B80269C00CF4200 /* quotes.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83060B80269C00CF4200 /* quotes.h */; };
|
||||
33AD83490B80269C00CF4200 /* reconcile.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83070B80269C00CF4200 /* reconcile.cc */; };
|
||||
33AD834A0B80269C00CF4200 /* reconcile.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83080B80269C00CF4200 /* reconcile.h */; };
|
||||
33AD834B0B80269C00CF4200 /* report.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83090B80269C00CF4200 /* report.cc */; };
|
||||
33AD834C0B80269C00CF4200 /* report.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD830A0B80269C00CF4200 /* report.h */; };
|
||||
33AD834D0B80269C00CF4200 /* session.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD830B0B80269C00CF4200 /* session.cc */; };
|
||||
33AD834E0B80269C00CF4200 /* session.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD830C0B80269C00CF4200 /* session.h */; };
|
||||
33AD834F0B80269C00CF4200 /* textual.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD830D0B80269C00CF4200 /* textual.cc */; };
|
||||
33AD83500B80269C00CF4200 /* textual.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD830E0B80269C00CF4200 /* textual.h */; };
|
||||
33AD83510B80269C00CF4200 /* timing.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD830F0B80269C00CF4200 /* timing.h */; };
|
||||
33AD83520B80269C00CF4200 /* trace.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83100B80269C00CF4200 /* trace.cc */; };
|
||||
33AD83530B80269C00CF4200 /* trace.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83110B80269C00CF4200 /* trace.h */; };
|
||||
33AD83540B80269C00CF4200 /* transform.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83120B80269C00CF4200 /* transform.cc */; };
|
||||
33AD83550B80269C00CF4200 /* transform.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83130B80269C00CF4200 /* transform.h */; };
|
||||
33AD83560B80269C00CF4200 /* util.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83140B80269C00CF4200 /* util.cc */; };
|
||||
33AD83570B80269C00CF4200 /* util.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83150B80269C00CF4200 /* util.h */; };
|
||||
33AD83580B80269C00CF4200 /* value.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83160B80269C00CF4200 /* value.cc */; };
|
||||
33AD83590B80269C00CF4200 /* value.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83170B80269C00CF4200 /* value.h */; };
|
||||
33AD835A0B80269C00CF4200 /* xml.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD83180B80269C00CF4200 /* xml.cc */; };
|
||||
33AD835B0B80269C00CF4200 /* xml.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83190B80269C00CF4200 /* xml.h */; };
|
||||
33AD835C0B80269C00CF4200 /* xmlparse.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD831A0B80269C00CF4200 /* xmlparse.cc */; };
|
||||
33AD835D0B80269C00CF4200 /* xmlparse.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD831B0B80269C00CF4200 /* xmlparse.h */; };
|
||||
33AD835E0B80269C00CF4200 /* xpath.cc in Sources */ = {isa = PBXBuildFile; fileRef = 33AD831C0B80269C00CF4200 /* xpath.cc */; };
|
||||
33AD835F0B80269C00CF4200 /* xpath.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD831D0B80269C00CF4200 /* xpath.h */; };
|
||||
33AD83760B80280B00CF4200 /* acconf.h in CopyFiles */ = {isa = PBXBuildFile; fileRef = 33AD83750B80280B00CF4200 /* acconf.h */; };
|
||||
33B846040BD0A59100472F4E /* libxml2.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 33B846030BD0A59100472F4E /* libxml2.dylib */; };
|
||||
33B846070BD0A5B200472F4E /* libgmp.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 33B846050BD0A5B200472F4E /* libgmp.dylib */; };
|
||||
33B846080BD0A5B200472F4E /* libpcre.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = 33B846060BD0A5B200472F4E /* libpcre.dylib */; };
|
||||
8DD76F6A0486A84900D96B5E /* ledger.1 in CopyFiles */ = {isa = PBXBuildFile; fileRef = C6859E8B029090EE04C91782 /* ledger.1 */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXCopyFilesBuildPhase section */
|
||||
8DD76F690486A84900D96B5E /* CopyFiles */ = {
|
||||
isa = PBXCopyFilesBuildPhase;
|
||||
buildActionMask = 8;
|
||||
dstPath = /usr/share/man/man1/;
|
||||
dstSubfolderSpec = 0;
|
||||
files = (
|
||||
8DD76F6A0486A84900D96B5E /* ledger.1 in CopyFiles */,
|
||||
33AD831F0B80269C00CF4200 /* amount.h in CopyFiles */,
|
||||
33AD83210B80269C00CF4200 /* balance.h in CopyFiles */,
|
||||
33AD83230B80269C00CF4200 /* binary.h in CopyFiles */,
|
||||
33AD83250B80269C00CF4200 /* csv.h in CopyFiles */,
|
||||
33AD83270B80269C00CF4200 /* datetime.h in CopyFiles */,
|
||||
33AD83290B80269C00CF4200 /* debug.h in CopyFiles */,
|
||||
33AD832B0B80269C00CF4200 /* derive.h in CopyFiles */,
|
||||
33AD832F0B80269C00CF4200 /* emacs.h in CopyFiles */,
|
||||
33AD83300B80269C00CF4200 /* error.h in CopyFiles */,
|
||||
33AD83310B80269C00CF4200 /* fdstream.hpp in CopyFiles */,
|
||||
33AD83330B80269C00CF4200 /* format.h in CopyFiles */,
|
||||
33AD83350B80269C00CF4200 /* gnucash.h in CopyFiles */,
|
||||
33AD83370B80269C00CF4200 /* journal.h in CopyFiles */,
|
||||
33AD83380B80269C00CF4200 /* ledger.h in CopyFiles */,
|
||||
33AD833A0B80269C00CF4200 /* mask.h in CopyFiles */,
|
||||
33AD833D0B80269C00CF4200 /* option.h in CopyFiles */,
|
||||
33AD833F0B80269C00CF4200 /* parser.h in CopyFiles */,
|
||||
33AD83460B80269C00CF4200 /* qif.h in CopyFiles */,
|
||||
33AD83480B80269C00CF4200 /* quotes.h in CopyFiles */,
|
||||
33AD834A0B80269C00CF4200 /* reconcile.h in CopyFiles */,
|
||||
33AD834C0B80269C00CF4200 /* report.h in CopyFiles */,
|
||||
33AD834E0B80269C00CF4200 /* session.h in CopyFiles */,
|
||||
33AD83500B80269C00CF4200 /* textual.h in CopyFiles */,
|
||||
33AD83510B80269C00CF4200 /* timing.h in CopyFiles */,
|
||||
33AD83530B80269C00CF4200 /* trace.h in CopyFiles */,
|
||||
33AD83550B80269C00CF4200 /* transform.h in CopyFiles */,
|
||||
33AD83570B80269C00CF4200 /* util.h in CopyFiles */,
|
||||
33AD83590B80269C00CF4200 /* value.h in CopyFiles */,
|
||||
33AD835B0B80269C00CF4200 /* xml.h in CopyFiles */,
|
||||
33AD835D0B80269C00CF4200 /* xmlparse.h in CopyFiles */,
|
||||
33AD835F0B80269C00CF4200 /* xpath.h in CopyFiles */,
|
||||
33AD83760B80280B00CF4200 /* acconf.h in CopyFiles */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 1;
|
||||
};
|
||||
/* End PBXCopyFilesBuildPhase section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
3356EA000B80299700EC228D /* main.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = main.cc; sourceTree = "<group>"; };
|
||||
3356EA090B8029FA00EC228D /* option.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = option.cc; sourceTree = "<group>"; };
|
||||
33AD82DC0B80269C00CF4200 /* amount.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = amount.cc; sourceTree = "<group>"; };
|
||||
33AD82DD0B80269C00CF4200 /* amount.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = amount.h; sourceTree = "<group>"; };
|
||||
33AD82DE0B80269C00CF4200 /* balance.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = balance.cc; sourceTree = "<group>"; };
|
||||
33AD82DF0B80269C00CF4200 /* balance.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = balance.h; sourceTree = "<group>"; };
|
||||
33AD82E00B80269C00CF4200 /* binary.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = binary.cc; sourceTree = "<group>"; };
|
||||
33AD82E10B80269C00CF4200 /* binary.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = binary.h; sourceTree = "<group>"; };
|
||||
33AD82E20B80269C00CF4200 /* csv.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = csv.cc; sourceTree = "<group>"; };
|
||||
33AD82E30B80269C00CF4200 /* csv.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = csv.h; sourceTree = "<group>"; };
|
||||
33AD82E40B80269C00CF4200 /* datetime.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = datetime.cc; sourceTree = "<group>"; };
|
||||
33AD82E50B80269C00CF4200 /* datetime.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = datetime.h; sourceTree = "<group>"; };
|
||||
33AD82E60B80269C00CF4200 /* debug.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = debug.cc; sourceTree = "<group>"; };
|
||||
33AD82E70B80269C00CF4200 /* debug.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = debug.h; sourceTree = "<group>"; };
|
||||
33AD82E80B80269C00CF4200 /* derive.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = derive.cc; sourceTree = "<group>"; };
|
||||
33AD82E90B80269C00CF4200 /* derive.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = derive.h; sourceTree = "<group>"; };
|
||||
33AD82EC0B80269C00CF4200 /* emacs.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = emacs.cc; sourceTree = "<group>"; };
|
||||
33AD82ED0B80269C00CF4200 /* emacs.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = emacs.h; sourceTree = "<group>"; };
|
||||
33AD82EE0B80269C00CF4200 /* error.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = error.h; sourceTree = "<group>"; };
|
||||
33AD82EF0B80269C00CF4200 /* fdstream.hpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.h; path = fdstream.hpp; sourceTree = "<group>"; };
|
||||
33AD82F00B80269C00CF4200 /* format.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = format.cc; sourceTree = "<group>"; };
|
||||
33AD82F10B80269C00CF4200 /* format.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = format.h; sourceTree = "<group>"; };
|
||||
33AD82F20B80269C00CF4200 /* gnucash.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = gnucash.cc; sourceTree = "<group>"; };
|
||||
33AD82F30B80269C00CF4200 /* gnucash.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = gnucash.h; sourceTree = "<group>"; };
|
||||
33AD82F40B80269C00CF4200 /* journal.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = journal.cc; sourceTree = "<group>"; };
|
||||
33AD82F50B80269C00CF4200 /* journal.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = journal.h; sourceTree = "<group>"; };
|
||||
33AD82F60B80269C00CF4200 /* ledger.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ledger.h; sourceTree = "<group>"; };
|
||||
33AD82F70B80269C00CF4200 /* mask.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = mask.cc; sourceTree = "<group>"; };
|
||||
33AD82F80B80269C00CF4200 /* mask.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = mask.h; sourceTree = "<group>"; };
|
||||
33AD82FB0B80269C00CF4200 /* option.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = option.h; sourceTree = "<group>"; };
|
||||
33AD82FC0B80269C00CF4200 /* parser.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = parser.cc; sourceTree = "<group>"; };
|
||||
33AD82FD0B80269C00CF4200 /* parser.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = parser.h; sourceTree = "<group>"; };
|
||||
33AD83030B80269C00CF4200 /* qif.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = qif.cc; sourceTree = "<group>"; };
|
||||
33AD83040B80269C00CF4200 /* qif.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = qif.h; sourceTree = "<group>"; };
|
||||
33AD83050B80269C00CF4200 /* quotes.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = quotes.cc; sourceTree = "<group>"; };
|
||||
33AD83060B80269C00CF4200 /* quotes.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = quotes.h; sourceTree = "<group>"; };
|
||||
33AD83070B80269C00CF4200 /* reconcile.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = reconcile.cc; sourceTree = "<group>"; };
|
||||
33AD83080B80269C00CF4200 /* reconcile.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = reconcile.h; sourceTree = "<group>"; };
|
||||
33AD83090B80269C00CF4200 /* report.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = report.cc; sourceTree = "<group>"; };
|
||||
33AD830A0B80269C00CF4200 /* report.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = report.h; sourceTree = "<group>"; };
|
||||
33AD830B0B80269C00CF4200 /* session.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = session.cc; sourceTree = "<group>"; };
|
||||
33AD830C0B80269C00CF4200 /* session.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = session.h; sourceTree = "<group>"; };
|
||||
33AD830D0B80269C00CF4200 /* textual.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = textual.cc; sourceTree = "<group>"; };
|
||||
33AD830E0B80269C00CF4200 /* textual.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = textual.h; sourceTree = "<group>"; };
|
||||
33AD830F0B80269C00CF4200 /* timing.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = timing.h; sourceTree = "<group>"; };
|
||||
33AD83100B80269C00CF4200 /* trace.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = trace.cc; sourceTree = "<group>"; };
|
||||
33AD83110B80269C00CF4200 /* trace.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = trace.h; sourceTree = "<group>"; };
|
||||
33AD83120B80269C00CF4200 /* transform.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = transform.cc; sourceTree = "<group>"; };
|
||||
33AD83130B80269C00CF4200 /* transform.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = transform.h; sourceTree = "<group>"; };
|
||||
33AD83140B80269C00CF4200 /* util.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = util.cc; sourceTree = "<group>"; };
|
||||
33AD83150B80269C00CF4200 /* util.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = util.h; sourceTree = "<group>"; };
|
||||
33AD83160B80269C00CF4200 /* value.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = value.cc; sourceTree = "<group>"; };
|
||||
33AD83170B80269C00CF4200 /* value.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = value.h; sourceTree = "<group>"; };
|
||||
33AD83180B80269C00CF4200 /* xml.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xml.cc; sourceTree = "<group>"; };
|
||||
33AD83190B80269C00CF4200 /* xml.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xml.h; sourceTree = "<group>"; };
|
||||
33AD831A0B80269C00CF4200 /* xmlparse.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xmlparse.cc; sourceTree = "<group>"; };
|
||||
33AD831B0B80269C00CF4200 /* xmlparse.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xmlparse.h; sourceTree = "<group>"; };
|
||||
33AD831C0B80269C00CF4200 /* xpath.cc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = xpath.cc; sourceTree = "<group>"; };
|
||||
33AD831D0B80269C00CF4200 /* xpath.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = xpath.h; sourceTree = "<group>"; };
|
||||
33AD83750B80280B00CF4200 /* acconf.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = acconf.h; sourceTree = "<group>"; };
|
||||
33B846030BD0A59100472F4E /* libxml2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libxml2.dylib; path = /usr/local/lib/libxml2.dylib; sourceTree = "<absolute>"; };
|
||||
33B846050BD0A5B200472F4E /* libgmp.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libgmp.dylib; path = /usr/local/lib/libgmp.dylib; sourceTree = "<absolute>"; };
|
||||
33B846060BD0A5B200472F4E /* libpcre.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libpcre.dylib; path = /usr/local/lib/libpcre.dylib; sourceTree = "<absolute>"; };
|
||||
8DD76F6C0486A84900D96B5E /* ledger */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ledger; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
C6859E8B029090EE04C91782 /* ledger.1 */ = {isa = PBXFileReference; lastKnownFileType = text.man; path = ledger.1; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
8DD76F660486A84900D96B5E /* Frameworks */ = {
|
||||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
33B846040BD0A59100472F4E /* libxml2.dylib in Frameworks */,
|
||||
33B846070BD0A5B200472F4E /* libgmp.dylib in Frameworks */,
|
||||
33B846080BD0A5B200472F4E /* libpcre.dylib in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXFrameworksBuildPhase section */
|
||||
|
||||
/* Begin PBXGroup section */
|
||||
08FB7794FE84155DC02AAC07 /* ledger */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
08FB7795FE84155DC02AAC07 /* Source */,
|
||||
C6859E8C029090F304C91782 /* Documentation */,
|
||||
33B8460F0BD0A60100472F4E /* Dependencies */,
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */,
|
||||
);
|
||||
name = ledger;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
08FB7795FE84155DC02AAC07 /* Source */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
333230420B802B3A00C403F5 /* Utility code */,
|
||||
333230470B802B4700C403F5 /* Core numerics */,
|
||||
3332304B0B802B5500C403F5 /* Journal representation */,
|
||||
3332304F0B802B6500C403F5 /* XML meta-representation */,
|
||||
333230530B802B7400C403F5 /* Transformations */,
|
||||
333230570B802B8200C403F5 /* Reporting */,
|
||||
333230590B802B8E00C403F5 /* Command-line driver */,
|
||||
3332305B0B802B9E00C403F5 /* Python scripting */,
|
||||
);
|
||||
name = Source;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
1AB674ADFE9D54B511CA2CBB /* Products */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
8DD76F6C0486A84900D96B5E /* ledger */,
|
||||
);
|
||||
name = Products;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230420B802B3A00C403F5 /* Utility code */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82F60B80269C00CF4200 /* ledger.h */,
|
||||
33AD83140B80269C00CF4200 /* util.cc */,
|
||||
33AD83150B80269C00CF4200 /* util.h */,
|
||||
33AD83750B80280B00CF4200 /* acconf.h */,
|
||||
33AD82E60B80269C00CF4200 /* debug.cc */,
|
||||
33AD82E70B80269C00CF4200 /* debug.h */,
|
||||
33AD82EE0B80269C00CF4200 /* error.h */,
|
||||
33AD830F0B80269C00CF4200 /* timing.h */,
|
||||
33AD83100B80269C00CF4200 /* trace.cc */,
|
||||
33AD83110B80269C00CF4200 /* trace.h */,
|
||||
);
|
||||
name = "Utility code";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230470B802B4700C403F5 /* Core numerics */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3332306A0B802BC800C403F5 /* Common data types */,
|
||||
333230670B802BC800C403F5 /* Amounts and values */,
|
||||
);
|
||||
name = "Core numerics";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3332304B0B802B5500C403F5 /* Journal representation */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82F40B80269C00CF4200 /* journal.cc */,
|
||||
33AD82F50B80269C00CF4200 /* journal.h */,
|
||||
33AD82FC0B80269C00CF4200 /* parser.cc */,
|
||||
33AD82FD0B80269C00CF4200 /* parser.h */,
|
||||
333230630B802BB200C403F5 /* Input formats */,
|
||||
);
|
||||
name = "Journal representation";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3332304F0B802B6500C403F5 /* XML meta-representation */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD83180B80269C00CF4200 /* xml.cc */,
|
||||
33AD83190B80269C00CF4200 /* xml.h */,
|
||||
33AD831C0B80269C00CF4200 /* xpath.cc */,
|
||||
33AD831D0B80269C00CF4200 /* xpath.h */,
|
||||
);
|
||||
name = "XML meta-representation";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230530B802B7400C403F5 /* Transformations */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD83070B80269C00CF4200 /* reconcile.cc */,
|
||||
33AD83080B80269C00CF4200 /* reconcile.h */,
|
||||
33AD83120B80269C00CF4200 /* transform.cc */,
|
||||
33AD83130B80269C00CF4200 /* transform.h */,
|
||||
);
|
||||
name = Transformations;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230570B802B8200C403F5 /* Reporting */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82E80B80269C00CF4200 /* derive.cc */,
|
||||
33AD82E90B80269C00CF4200 /* derive.h */,
|
||||
33AD82F00B80269C00CF4200 /* format.cc */,
|
||||
33AD82F10B80269C00CF4200 /* format.h */,
|
||||
33AD83090B80269C00CF4200 /* report.cc */,
|
||||
33AD830A0B80269C00CF4200 /* report.h */,
|
||||
3332305F0B802BAA00C403F5 /* Output formats */,
|
||||
);
|
||||
name = Reporting;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230590B802B8E00C403F5 /* Command-line driver */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
3356EA000B80299700EC228D /* main.cc */,
|
||||
3356EA090B8029FA00EC228D /* option.cc */,
|
||||
33AD82FB0B80269C00CF4200 /* option.h */,
|
||||
33AD830B0B80269C00CF4200 /* session.cc */,
|
||||
33AD830C0B80269C00CF4200 /* session.h */,
|
||||
33AD82EF0B80269C00CF4200 /* fdstream.hpp */,
|
||||
);
|
||||
name = "Command-line driver";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3332305B0B802B9E00C403F5 /* Python scripting */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
name = "Python scripting";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3332305F0B802BAA00C403F5 /* Output formats */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82E20B80269C00CF4200 /* csv.cc */,
|
||||
33AD82E30B80269C00CF4200 /* csv.h */,
|
||||
33AD82EC0B80269C00CF4200 /* emacs.cc */,
|
||||
33AD82ED0B80269C00CF4200 /* emacs.h */,
|
||||
);
|
||||
name = "Output formats";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230630B802BB200C403F5 /* Input formats */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82E00B80269C00CF4200 /* binary.cc */,
|
||||
33AD82E10B80269C00CF4200 /* binary.h */,
|
||||
33AD82F20B80269C00CF4200 /* gnucash.cc */,
|
||||
33AD82F30B80269C00CF4200 /* gnucash.h */,
|
||||
33AD83030B80269C00CF4200 /* qif.cc */,
|
||||
33AD83040B80269C00CF4200 /* qif.h */,
|
||||
33AD830D0B80269C00CF4200 /* textual.cc */,
|
||||
33AD830E0B80269C00CF4200 /* textual.h */,
|
||||
33AD831A0B80269C00CF4200 /* xmlparse.cc */,
|
||||
33AD831B0B80269C00CF4200 /* xmlparse.h */,
|
||||
);
|
||||
name = "Input formats";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
333230670B802BC800C403F5 /* Amounts and values */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82DC0B80269C00CF4200 /* amount.cc */,
|
||||
33AD82DD0B80269C00CF4200 /* amount.h */,
|
||||
33AD82DE0B80269C00CF4200 /* balance.cc */,
|
||||
33AD82DF0B80269C00CF4200 /* balance.h */,
|
||||
33AD83160B80269C00CF4200 /* value.cc */,
|
||||
33AD83170B80269C00CF4200 /* value.h */,
|
||||
33AD83050B80269C00CF4200 /* quotes.cc */,
|
||||
33AD83060B80269C00CF4200 /* quotes.h */,
|
||||
);
|
||||
name = "Amounts and values";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
3332306A0B802BC800C403F5 /* Common data types */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33AD82E40B80269C00CF4200 /* datetime.cc */,
|
||||
33AD82E50B80269C00CF4200 /* datetime.h */,
|
||||
33AD82F70B80269C00CF4200 /* mask.cc */,
|
||||
33AD82F80B80269C00CF4200 /* mask.h */,
|
||||
);
|
||||
name = "Common data types";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
33B8460F0BD0A60100472F4E /* Dependencies */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
33B846050BD0A5B200472F4E /* libgmp.dylib */,
|
||||
33B846060BD0A5B200472F4E /* libpcre.dylib */,
|
||||
33B846030BD0A59100472F4E /* libxml2.dylib */,
|
||||
);
|
||||
name = Dependencies;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
C6859E8C029090F304C91782 /* Documentation */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
C6859E8B029090EE04C91782 /* ledger.1 */,
|
||||
);
|
||||
name = Documentation;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
8DD76F620486A84900D96B5E /* ledger */ = {
|
||||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "ledger" */;
|
||||
buildPhases = (
|
||||
8DD76F640486A84900D96B5E /* Sources */,
|
||||
8DD76F660486A84900D96B5E /* Frameworks */,
|
||||
8DD76F690486A84900D96B5E /* CopyFiles */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
dependencies = (
|
||||
);
|
||||
name = ledger;
|
||||
productInstallPath = "$(HOME)/bin";
|
||||
productName = ledger;
|
||||
productReference = 8DD76F6C0486A84900D96B5E /* ledger */;
|
||||
productType = "com.apple.product-type.tool";
|
||||
};
|
||||
/* End PBXNativeTarget section */
|
||||
|
||||
/* Begin PBXProject section */
|
||||
08FB7793FE84155DC02AAC07 /* Project object */ = {
|
||||
isa = PBXProject;
|
||||
buildConfigurationList = 1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "ledger" */;
|
||||
hasScannedForEncodings = 1;
|
||||
mainGroup = 08FB7794FE84155DC02AAC07 /* ledger */;
|
||||
projectDirPath = "";
|
||||
targets = (
|
||||
8DD76F620486A84900D96B5E /* ledger */,
|
||||
);
|
||||
};
|
||||
/* End PBXProject section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
8DD76F640486A84900D96B5E /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
33AD831E0B80269C00CF4200 /* amount.cc in Sources */,
|
||||
33AD83200B80269C00CF4200 /* balance.cc in Sources */,
|
||||
33AD83220B80269C00CF4200 /* binary.cc in Sources */,
|
||||
33AD83240B80269C00CF4200 /* csv.cc in Sources */,
|
||||
33AD83260B80269C00CF4200 /* datetime.cc in Sources */,
|
||||
33AD83280B80269C00CF4200 /* debug.cc in Sources */,
|
||||
33AD832A0B80269C00CF4200 /* derive.cc in Sources */,
|
||||
33AD832E0B80269C00CF4200 /* emacs.cc in Sources */,
|
||||
33AD83320B80269C00CF4200 /* format.cc in Sources */,
|
||||
33AD83340B80269C00CF4200 /* gnucash.cc in Sources */,
|
||||
33AD83360B80269C00CF4200 /* journal.cc in Sources */,
|
||||
33AD83390B80269C00CF4200 /* mask.cc in Sources */,
|
||||
33AD833E0B80269C00CF4200 /* parser.cc in Sources */,
|
||||
33AD83450B80269C00CF4200 /* qif.cc in Sources */,
|
||||
33AD83470B80269C00CF4200 /* quotes.cc in Sources */,
|
||||
33AD83490B80269C00CF4200 /* reconcile.cc in Sources */,
|
||||
33AD834B0B80269C00CF4200 /* report.cc in Sources */,
|
||||
33AD834D0B80269C00CF4200 /* session.cc in Sources */,
|
||||
33AD834F0B80269C00CF4200 /* textual.cc in Sources */,
|
||||
33AD83520B80269C00CF4200 /* trace.cc in Sources */,
|
||||
33AD83540B80269C00CF4200 /* transform.cc in Sources */,
|
||||
33AD83560B80269C00CF4200 /* util.cc in Sources */,
|
||||
33AD83580B80269C00CF4200 /* value.cc in Sources */,
|
||||
33AD835A0B80269C00CF4200 /* xml.cc in Sources */,
|
||||
33AD835C0B80269C00CF4200 /* xmlparse.cc in Sources */,
|
||||
33AD835E0B80269C00CF4200 /* xpath.cc in Sources */,
|
||||
3356EA010B80299700EC228D /* main.cc in Sources */,
|
||||
3356EA0A0B8029FA00EC228D /* option.cc in Sources */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
/* End PBXSourcesBuildPhase section */
|
||||
|
||||
/* Begin XCBuildConfiguration section */
|
||||
1DEB923208733DC60010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
COPY_PHASE_STRIP = NO;
|
||||
CURRENT_PROJECT_VERSION = 3.0;
|
||||
GCC_DYNAMIC_NO_PIC = NO;
|
||||
GCC_ENABLE_FIX_AND_CONTINUE = YES;
|
||||
GCC_MODEL_TUNING = "";
|
||||
GCC_OPTIMIZATION_LEVEL = 0;
|
||||
GCC_PREPROCESSOR_DEFINITIONS = (
|
||||
"DEBUG_LEVEL=4",
|
||||
"HAVE_EXPAT=1",
|
||||
);
|
||||
HEADER_SEARCH_PATHS = /usr/local/include;
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
/usr/local/lib,
|
||||
);
|
||||
PRODUCT_NAME = ledger;
|
||||
ZERO_LINK = YES;
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923308733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
ARCHS = (
|
||||
ppc,
|
||||
i386,
|
||||
);
|
||||
CURRENT_PROJECT_VERSION = 3.0;
|
||||
GCC_GENERATE_DEBUGGING_SYMBOLS = NO;
|
||||
GCC_MODEL_TUNING = "";
|
||||
HEADER_SEARCH_PATHS = /usr/local/include;
|
||||
INSTALL_PATH = "$(HOME)/bin";
|
||||
LIBRARY_SEARCH_PATHS = (
|
||||
"$(inherited)",
|
||||
/usr/local/lib,
|
||||
);
|
||||
PRODUCT_NAME = ledger;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
1DEB923608733DC60010E9CD /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = "";
|
||||
};
|
||||
name = Debug;
|
||||
};
|
||||
1DEB923708733DC60010E9CD /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
buildSettings = {
|
||||
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
||||
GCC_WARN_UNUSED_VARIABLE = YES;
|
||||
PREBINDING = NO;
|
||||
SDKROOT = /Developer/SDKs/MacOSX10.4u.sdk;
|
||||
};
|
||||
name = Release;
|
||||
};
|
||||
/* End XCBuildConfiguration section */
|
||||
|
||||
/* Begin XCConfigurationList section */
|
||||
1DEB923108733DC60010E9CD /* Build configuration list for PBXNativeTarget "ledger" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923208733DC60010E9CD /* Debug */,
|
||||
1DEB923308733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
1DEB923508733DC60010E9CD /* Build configuration list for PBXProject "ledger" */ = {
|
||||
isa = XCConfigurationList;
|
||||
buildConfigurations = (
|
||||
1DEB923608733DC60010E9CD /* Debug */,
|
||||
1DEB923708733DC60010E9CD /* Release */,
|
||||
);
|
||||
defaultConfigurationIsVisible = 0;
|
||||
defaultConfigurationName = Release;
|
||||
};
|
||||
/* End XCConfigurationList section */
|
||||
};
|
||||
rootObject = 08FB7793FE84155DC02AAC07 /* Project object */;
|
||||
}
|
||||
|
|
@ -128,7 +128,6 @@ void process_arguments(int argc, char ** argv, const bool anywhere,
|
|||
xml::xpath_t::scope_t * scope,
|
||||
std::list<std::string>& args)
|
||||
{
|
||||
int index = 0;
|
||||
for (char ** i = argv; *i; i++) {
|
||||
if ((*i)[0] != '-') {
|
||||
if (anywhere) {
|
||||
|
|
|
|||
|
|
@ -563,7 +563,6 @@ unsigned int textual_parser_t::parse(std::istream& in,
|
|||
{
|
||||
static bool added_auto_entry_hook = false;
|
||||
static char line[MAX_LINE + 1];
|
||||
char c;
|
||||
unsigned int count = 0;
|
||||
unsigned int errors = 0;
|
||||
|
||||
|
|
@ -830,7 +829,7 @@ unsigned int textual_parser_t::parse(std::istream& in,
|
|||
}
|
||||
|
||||
default: {
|
||||
unsigned int first_line = linenum;
|
||||
//unsigned int first_line = linenum;
|
||||
unsigned long pos = end_pos;
|
||||
if (entry_t * entry = parse_entry(in, line, journal,
|
||||
account_stack.front(),
|
||||
|
|
|
|||
3
value.cc
3
value.cc
|
|
@ -1879,6 +1879,9 @@ value_t value_t::value(const datetime_t& moment) const
|
|||
throw new value_error("Cannot find the value of a pointer");
|
||||
case SEQUENCE:
|
||||
throw new value_error("Cannot find the value of a sequence");
|
||||
default:
|
||||
assert(0);
|
||||
return value_t();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
9
xml.cc
9
xml.cc
|
|
@ -320,7 +320,6 @@ document_t * parser_t::parse(std::istream& in, const char ** builtins,
|
|||
|
||||
document = doc.get();
|
||||
|
||||
unsigned int offset = 2;
|
||||
parser = XML_ParserCreate(NULL);
|
||||
|
||||
XML_SetElementHandler(parser, startElement, endElement);
|
||||
|
|
@ -336,20 +335,20 @@ document_t * parser_t::parse(std::istream& in, const char ** builtins,
|
|||
result = XML_Parse(parser, buf, std::strlen(buf), in.eof());
|
||||
}
|
||||
catch (const std::exception& err) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
XML_ParserFree(parser);
|
||||
throw new parse_error(err.what());
|
||||
}
|
||||
|
||||
if (! have_error.empty()) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
parse_error err(have_error);
|
||||
std::cerr << "Error: " << err.what() << std::endl;
|
||||
have_error = "";
|
||||
}
|
||||
|
||||
if (! result) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
const char * err = XML_ErrorString(XML_GetErrorCode(parser));
|
||||
XML_ParserFree(parser);
|
||||
throw new parse_error(err);
|
||||
|
|
@ -426,8 +425,10 @@ node_t * account_node_t::children() const
|
|||
node_t * journal_node_t::children() const
|
||||
{
|
||||
if (! _children) {
|
||||
#if 0
|
||||
account_node_t * master_account =
|
||||
new account_node_t(document, journal->master, const_cast<journal_node_t *>(this));
|
||||
#endif
|
||||
|
||||
parent_node_t * entries =
|
||||
new parent_node_t(document, const_cast<journal_node_t *>(this));
|
||||
|
|
|
|||
2
xml.h
2
xml.h
|
|
@ -93,6 +93,7 @@ public:
|
|||
|
||||
virtual const char * text() const {
|
||||
assert(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char * name() const {
|
||||
|
|
@ -301,6 +302,7 @@ template <typename T>
|
|||
inline parent_node_t * wrap_node(document_t * doc, T * item,
|
||||
void * parent_node = NULL) {
|
||||
assert(0);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
template <>
|
||||
|
|
|
|||
|
|
@ -201,7 +201,6 @@ unsigned int xml_parser_t::parse(std::istream& in,
|
|||
curr_comm = NULL;
|
||||
ignore = false;
|
||||
|
||||
unsigned int offset = 2;
|
||||
XML_Parser parser = XML_ParserCreate(NULL);
|
||||
current_parser = parser;
|
||||
|
||||
|
|
@ -216,20 +215,20 @@ unsigned int xml_parser_t::parse(std::istream& in,
|
|||
result = XML_Parse(parser, buf, std::strlen(buf), in.eof());
|
||||
}
|
||||
catch (const std::exception& err) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
XML_ParserFree(parser);
|
||||
throw new parse_error(err.what());
|
||||
}
|
||||
|
||||
if (! have_error.empty()) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
parse_error err(have_error);
|
||||
std::cerr << "Error: " << err.what() << std::endl;
|
||||
have_error = "";
|
||||
}
|
||||
|
||||
if (! result) {
|
||||
unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
//unsigned long line = XML_GetCurrentLineNumber(parser) - offset++;
|
||||
const char * err = XML_ErrorString(XML_GetErrorCode(parser));
|
||||
XML_ParserFree(parser);
|
||||
throw new parse_error(err);
|
||||
|
|
|
|||
2
xpath.cc
2
xpath.cc
|
|
@ -1713,7 +1713,6 @@ xpath_t::op_t * xpath_t::op_t::compile(value_t * context, scope_t * scope,
|
|||
|
||||
std::auto_ptr<value_t::sequence_t> call_seq;
|
||||
|
||||
int index = 0;
|
||||
op_t * args = right;
|
||||
while (args) {
|
||||
op_t * arg = args;
|
||||
|
|
@ -1955,7 +1954,6 @@ bool xpath_t::op_t::write(std::ostream& out,
|
|||
{
|
||||
int arg_index = 0;
|
||||
bool found = false;
|
||||
op_t * expr;
|
||||
|
||||
if (start_pos && this == op_to_find) {
|
||||
*start_pos = (long)out.tellp() - 1;
|
||||
|
|
|
|||
2
xpath.h
2
xpath.h
|
|
@ -311,6 +311,7 @@ private:
|
|||
if (&other == this)
|
||||
return *this;
|
||||
assert(0);
|
||||
return *this;
|
||||
}
|
||||
|
||||
void clear() {
|
||||
|
|
@ -606,6 +607,7 @@ public:
|
|||
unsigned long * end_pos) const {
|
||||
if (ptr)
|
||||
ptr->write(out, relaxed, op_to_find, start_pos, end_pos);
|
||||
return true;
|
||||
}
|
||||
|
||||
public:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue