Browse Source

Clean up

master
Daniel 3 weeks ago
parent
commit
25d1e0f5e9
2 changed files with 8 additions and 7 deletions
  1. +7
    -6
      app.c
  2. +1
    -1
      fbrp

+ 7
- 6
app.c View File

@@ -3,7 +3,7 @@
#include <string.h>
#include <stdbool.h>

#include "fbrp/reference.h"
#include "fbrp/fbrp.h"
#include "fbrp/fbrp.h"
#include "biblec/main.h"
#include "option.h"
@@ -28,23 +28,24 @@ void printError(int type) {
switch (type) {
case FILE_NOT_FOUND:
puts("File not found: ");
puts("File not found.");
break;
case BOOK_NOT_FOUND:
puts("Book not found: ");
puts("Book not found.");
break;
case FILE_ERROR:
puts("File I/O Error: ");
puts("File I/O Error.");
break;
default:
puts("Unknown Error: ");
puts("Unknown Error.");
}

putchar('\n');
}

int printVerses(char *input, bool fancyPrint) {
struct Reference ref = parseReference(input);
struct Reference ref;
parseReference(&ref, input);
int verses = ref.verseLength;
if (verses == 0 && ref.chapterLength == 1) {verses = 1;}


+ 1
- 1
fbrp

@@ -1 +1 @@
Subproject commit 61b9c44d9d38f629713dfb5abb56636183be1be6
Subproject commit b9e800c732e5a7034587bb32ebf5eb0c5f65c151

Loading…
Cancel
Save