summaryrefslogtreecommitdiff
path: root/src/main.cc
Commit message (Collapse)AuthorAgeFilesLines
* Always free memory at the end of a runJohn Wiegley2009-02-231-3/+0
| | | | | It turns out this is needed in order to properly close the pager subprocess.
* Fix for systems that don't build with gettextJohn Wiegley2009-02-221-0/+2
|
* Added support for using GNU gettextJohn Wiegley2009-02-211-0/+2
|
* Compilation verification code only with debuggingJohn Wiegley2009-02-161-0/+4
| | | | | | Previously, --verify would work even if the sources were built with default options. However, in the interests of performance, --verify is now only available if --enable-debug was passed to configure.
* Fixed several unused value and param warningsJohn Wiegley2009-02-161-2/+0
|
* Added a "reload" command, for use at the REPLJohn Wiegley2009-02-131-2/+2
| | | | | | | Created a new function, session_t::reread_journal_files, which throws away all previous state data and reads in the same files again. This is needed to allow Emacs to communicate with Ledger via the REPL, so that it tell Ledger when it has made changes to the user's data file.
* If a ledger file is specified in .ledgerrc, ignore the environment.John Wiegley2009-02-081-1/+1
|
* Restored all the option handlers from 2.6.2, but not the options themselves.John Wiegley2009-02-061-2/+2
|
* Greatly simplified the way option and command handlers are defined.John Wiegley2009-02-051-3/+2
|
* Moved work.cc and global_scope_t into a new global.cc file.John Wiegley2009-02-051-273/+1
|
* Moved much of the main.cc code into a new global_scope_t class.John Wiegley2009-02-051-150/+161
|
* Support using Ledger as a script interpretor.John Wiegley2009-02-051-78/+216
| | | | | The file must begin with '#!/usr/bin/env ledger --script'. You can add a -f option to the options, but it must come before --script.
* Reworked how the REPL is handled.John Wiegley2009-02-051-146/+175
|
* Added proper handling of SIGINT (C-c) and SIGPIPE (pager quits).John Wiegley2009-02-041-10/+10
|
* Added code to quit more gracefully. Ctrl-C still needs work.John Wiegley2009-02-041-5/+23
|
* Minor fixes to the REPL when using libedit.John Wiegley2009-02-041-1/+1
|
* Added structural support in main() for using a REPL.John Wiegley2009-02-041-74/+187
|
* Removed the global references to session->report.John Wiegley2009-02-031-14/+17
|
* Removed the binary caching code, and the XML, QIF and Gnucash parsers.John Wiegley2009-02-031-1/+0
|
* Added a comment.John Wiegley2009-02-031-0/+1
|
* Corrected a display error when showing error context.John Wiegley2009-02-031-2/+6
|
* Updated some internal documentation.John Wiegley2009-02-021-52/+55
|
* Removed report_error() function and reordered context for parsing errors.John Wiegley2009-02-021-1/+2
|
* Simplified error context handling.John Wiegley2009-02-021-1/+1
|
* Fixed the way the pager process was being handled.John Wiegley2009-02-011-0/+3
|
* Inspired by Omari Norman, I've rewritten main.cc so it's easy to approach.John Wiegley2009-01-311-306/+100
|
* Removed unnecessary #ifdef block. pyinterp.h now guards itself.John Wiegley2009-01-311-2/+0
|
* Created a new stream.h file for dealing with output streaming.John Wiegley2009-01-301-168/+32
|
* Switched over to using irrxml for parsing XML, rather than expat.John Wiegley2009-01-241-4/+0
|
* Changed grammatical tense in two tracing statements.John Wiegley2009-01-231-1/+1
|
* When Python support is present, use a session_t object which is derived fromJohn Wiegley2009-01-231-0/+7
| | | | python_interpreter_t, so that Python can provide value expression definitions.
* Moved the occurance of "Error:" when reporting context.John Wiegley2009-01-221-2/+2
|
* Made the output from parse/compile commands more consistent.John Wiegley2009-01-221-4/+2
|
* Changed some debug strings when parsing/compiling valexprs.John Wiegley2009-01-221-14/+12
|
* Redid the way command-line arguments are processed. Before, Ledger used - andJohn Wiegley2009-01-221-1/+1
| | | | | | | | | | | | | | | -- to mean special things after the command verb was seen. But now, what used to be specified as this: ledger -n reg cash -payable -- shell Is now specified as this: ledger reg -n cash not payable @shell It could also be specified as: ledger -n reg \(cash and not payable\) and @shell
* Removed an extra call to session.read_init().John Wiegley2009-01-221-2/+0
|
* Changed the order in which options are processed, to provide for the correctJohn Wiegley2009-01-211-18/+43
| | | | | | | | | | | overrides. 1. Global defaults 2. Environment variable settings 3. Initialization file 4. Command-line arguments Whatever is later in the list overrides what is earlier.
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Move handling of all commands to the value expression subsystem, rather thanJohn Wiegley2008-09-181-189/+11
| | | | handling them explicitly in main.cc.
* Restored the 'print' command.John Wiegley2008-09-171-1/+4
|
* Restored --format, --date-format (-y), and --input-date-format options.John Wiegley2008-09-141-1/+4
|
* Removed more dead code and todo comments, and made it possible to streamJohn Wiegley2008-08-171-2/+2
| | | | compiled value expressions.
* Added back a lot of hacktastic logic from 2.6.1 that made the "bal" commandJohn Wiegley2008-08-141-4/+73
| | | | | somewhat smart about how it interpreted certain options. Beware, code, for your days are not long-lived.
* The balance output now includes the final total.John Wiegley2008-08-131-16/+14
|
* The -f flag now works again.John Wiegley2008-08-131-1/+1
|
* Regular expressions supplied after 'reg' or 'bal' are working again.John Wiegley2008-08-101-10/+6
|
* Fixed a memory leak that would show up if --verify --verbose was running andJohn Wiegley2008-08-101-3/+2
| | | | an error or exception occurred.
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+593
is in doc/, etc.