summaryrefslogtreecommitdiff
path: root/utilities/addcomment.cpp
diff options
context:
space:
mode:
authorRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:52 -0400
committerRoberto C. Sanchez <roberto@connexer.com>2014-03-29 10:53:52 -0400
commit148bd343f3e7e32d141f66b5b5c9b98b2975b0b3 (patch)
tree31078963b85110d57310759016e60e8d26ccb1e6 /utilities/addcomment.cpp
parent8c8aa6b07e595cfac56838b5964ab3e96051f1b2 (diff)
Imported Upstream version 1.5.8
Diffstat (limited to 'utilities/addcomment.cpp')
-rw-r--r--utilities/addcomment.cpp40
1 files changed, 0 insertions, 40 deletions
diff --git a/utilities/addcomment.cpp b/utilities/addcomment.cpp
deleted file mode 100644
index 11efe8a..0000000
--- a/utilities/addcomment.cpp
+++ /dev/null
@@ -1,40 +0,0 @@
-#include <stdio.h>
-#include <iostream>
-#include <versekey.h>
-#include <rawtext.h>
-#include <zcom.h>
-#include <rawcom.h>
-#include <rawgbf.h>
-#include <rawfiles.h>
-#include <stdlib.h>
-
-int main(int argc, char **argv)
-{
- int loop;
- int max;
- RawFiles personal("modules/comments/rawfiles/personal/", "MINE", "Personal Comments");
- VerseKey mykey;
-
- if (argc < 3) {
- fprintf(stderr, "usage: %s <\"comment\"> <\"verse\"> [count] [disable AutoNormalization]\n", argv[0]);
- exit(-1);
- }
-
- if (argc > 4)
- mykey.AutoNormalize(0); // Turn off autonormalize if 3 args to allow for intros
- // This is kludgy but at lease you can try it
- // with something like: sword "Matthew 1:0" 1 1
-
- mykey = argv[2];
- mykey.Persist(1);
- personal.setKey(mykey);
-
- max = (argc < 4) ? 1 : atoi(argv[3]);
-
- for (loop = 0; loop < max; loop++) {
- personal << argv[1];
- mykey++;
- }
- std::cout << "Added Comment" << std::endl;
- return 0;
-}