Browse Source

A few more comments and code changes

master
Daniel 2 weeks ago
parent
commit
1d8216b8ab
4 changed files with 22 additions and 7 deletions
  1. +16
    -4
      app.c
  2. +1
    -1
      biblec
  3. +5
    -2
      foo
  4. BIN
     

+ 16
- 4
app.c View File

@@ -83,7 +83,7 @@ int printVerses(char *input, char fancyPrint) {

if (tryReader) {
printError(tryReader);
return 0;
return -1;
}

while (1) {
@@ -98,17 +98,23 @@ int printVerses(char *input, char fancyPrint) {
}
}

if (fancyPrint) {
putchar('\n');
}

fclose(reader.file);
}

putchar('\n');
return 0;
}

int main(int argc, char *argv[]) {

// Defaults
char *index = "bibles/web.i";
char *index = "bibles/kjv2000.i";
char *reference = "John 3 16,17";

// Parse if the user wants a command line interface
if (argc != 1) {
for (int i = 1; i < argc; i++) {
if (argv[i][0] == '-') {
@@ -126,9 +132,13 @@ int main(int argc, char *argv[]) {
parseIndexFile(
&tryFile,
&loadedTranslations[0],
"bibles/web.i"
index
);

if (tryFile) {
printError(tryFile);
}

printVerses(reference, 0);
return 0;
}
@@ -163,4 +173,6 @@ int main(int argc, char *argv[]) {

printVerses(input, 1);
}

return 0;
}

+ 1
- 1
biblec

@@ -1 +1 @@
Subproject commit 8513420b8de16c8b5c6146be3c0d3450572f58f6
Subproject commit be3cf2653c639c73f31419476cadb3f488f34ab5

+ 5
- 2
foo View File

@@ -1,2 +1,5 @@
Be subject therefore to God. But resist the devil, and he will flee from you.
Draw near to God, and he will draw near to you. Cleanse your hands, you sinners; and purify your hearts, you double-minded.
For God so loved the world, that he gave his one and only Son, that whoever believes in him should not perish, but have eternal life.
For God didn`t send his Son into the world to judge the world, but that the world should be saved through him.
He who believes in him is not judged. He who doesn`t believe has been judged already, because he has not believed in the name of the only born Son of God.
This is the judgment, that the light has come into the world, and men loved the darkness rather than the light; for their works were evil.
For everyone who does evil hates the light, and doesn`t come to the light, for fear that his works would be reproved.

BIN
View File


Loading…
Cancel
Save