summaryrefslogtreecommitdiff
path: root/src/main.cc
Commit message (Collapse)AuthorAgeFilesLines
* Updated copyrights to 2003-2010John Wiegley2010-03-051-1/+1
|
* Construct global_scope object within the exception handlerJohn Wiegley2009-10-311-4/+10
|
* Improved argument parsing logic used by the REPLJohn Wiegley2009-10-261-15/+0
| | | | | It now handles quoted strings, although it doesn't understand escape sequences yet.
* Enabled use of pre-compiled headers by defaultJohn Wiegley2009-03-101-0/+2
|
* Fixed a few minor cases of uninitialized variablesJohn Wiegley2009-03-081-1/+1
|
* Reduced the #include dependency tree to a minimumJohn Wiegley2009-03-041-3/+3
|
* Corrected a build error if Python support missingJohn Wiegley2009-03-031-0/+4
|
* Added a "python" command, which invokes Py_MainJohn Wiegley2009-03-031-0/+6
|
* Marked all strings needing internationalizationJohn Wiegley2009-02-251-1/+1
| | | | | | | | | | | | | | | | These strings are now collected automagically in the file po/ledger.pot. If you'd like to produce a translation, just run this command after building Ledger: msginit -l LOCALE -o LANG.po -i po/ledger.pot Where LOCALE is a string like de or en_GB, and LANG is a short descriptive word for your language. Then send me this .po file so I can commit it to the Ledger sources (alternatively, you could maintain the file in a fork on GitHub), and setup the build script to format and install your new message catalog during a "make install".
* 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
|