summaryrefslogtreecommitdiff
path: root/src/compare.cc
Commit message (Collapse)AuthorAgeFilesLines
* Made commodity reduction during parsing consistentJohn Wiegley2009-02-241-2/+1
|
* The Great Renaming, Part IIJohn Wiegley2009-02-231-7/+7
| | | | | The last commit did not contain the majority of changes because of a slight mishap. This contains the real changeset.
* Renamed O_COMMA to O_CONS, and changed semanticsJohn Wiegley2009-02-231-1/+1
| | | | | | In the old scheme, nested values would simply flatten and concatenate, so that '((1, 2), 3) = (1, 2, 3)'. Now sublists are preserved, so that sequences may be passed as arguments to functions.
* Simplify account total values before comparisonJohn Wiegley2009-02-191-2/+7
| | | | | | This way, if two account values are BALANCE types containing only a single AMOUNT, then it will do the sorting comparison of the amounts -- since otherwise balances are ignored for the purposes of sorting.
* If a sorting value can't be found, report an errorJohn Wiegley2009-02-191-0/+3
|
* Renamed a function to sort_value_is_less_thanJohn Wiegley2009-02-121-2/+2
| | | | | The purpose was to provided a clearer relationship between the function name and its expected arguments.
* Sorting expr now uses "-" to indicate descendingJohn Wiegley2009-02-121-36/+32
| | | | | For example: -S payee,-date sorts 1) ascending by payee, then 2) descending by date.
* The --sort flag now accepts multiple terms (-S payee,date).John Wiegley2009-02-121-2/+31
| | | | However, there is no way yet to reverse the meaning of a given term.
* Increased copyright range to include 2009.John Wiegley2009-01-201-1/+1
|
* Moved around most of the files so that source code is in src/, documentationJohn Wiegley2008-08-051-0/+85
is in doc/, etc.