summaryrefslogtreecommitdiff
path: root/src/textual.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2014-04-13 23:25:31 -0500
committerJohn Wiegley <johnw@newartisans.com>2014-04-13 23:26:14 -0500
commit8f8a94c28e26c0b46a43e89d566c941994645de7 (patch)
tree3cbd52816734c55fb6233b9a3f7fb35cb0b36fd9 /src/textual.cc
parent634aa589cd97d088524ae2fb68ec6120d5e4a873 (diff)
downloadfork-ledger-8f8a94c28e26c0b46a43e89d566c941994645de7.tar.gz
fork-ledger-8f8a94c28e26c0b46a43e89d566c941994645de7.tar.bz2
fork-ledger-8f8a94c28e26c0b46a43e89d566c941994645de7.zip
Add the concept of "deferred postings"
This is pretty much exclusively for allowing one to use balance assertions with replicated transactions across multiple files.
Diffstat (limited to 'src/textual.cc')
-rw-r--r--src/textual.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/textual.cc b/src/textual.cc
index fa84d6de..6f8f0492 100644
--- a/src/textual.cc
+++ b/src/textual.cc
@@ -1432,6 +1432,12 @@ post_t * instance_t::parse_post(char * line,
}
p++; e--;
}
+ else if (*p == '<' && *(e - 1) == '>') {
+ post->add_flags(POST_DEFERRED);
+ DEBUG("textual.parse", "line " << context.linenum << ": "
+ << "Parsed a deferred account name");
+ p++; e--;
+ }
string name(p, static_cast<string::size_type>(e - p));
DEBUG("textual.parse", "line " << context.linenum << ": "