Browse Source

Fix the app a bit

master
Daniel 1 week ago
parent
commit
dda5405d02
5 changed files with 13 additions and 21 deletions
  1. +4
    -1
      .gitignore
  2. +3
    -16
      app.c
  3. +1
    -1
      biblec
  4. +1
    -1
      fbrp
  5. +4
    -2
      startup.sh

+ 4
- 1
.gitignore View File

@@ -7,4 +7,7 @@ bibles
*.EXE
*.7Z
*.json
web.json
web.json
*.i
*.t
heb12

+ 3
- 16
app.c View File

@@ -44,21 +44,8 @@ void printError(int type) {
putchar('\n');
}

void debugPrint(struct Reference *ref) {
printf("Book: %s\n", ref->book);

for (int c = 0; c < ref->chapterLength; c++) {
printf("Chapter: %d-%d\n", ref->chapter[c].r[0], ref->chapter[c].r[1]);
}

for (int c = 0; c < ref->verseLength; c++) {
printf("Verse: %d-%d\n", ref->verse[c].r[0], ref->verse[c].r[1]);
}
}

int printVerses(char *input, char fancyPrint) {
int *tryRef;
struct Reference ref = parseReference(tryRef, input);
struct Reference ref = parseReference(input);
int verses = ref.verseLength;
if (verses == 0 && ref.chapterLength == 1) {verses = 1;}
@@ -111,8 +98,8 @@ int printVerses(char *input, char fancyPrint) {
int main(int argc, char *argv[]) {

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

// Parse if the user wants a command line interface
if (argc != 1) {


+ 1
- 1
biblec

@@ -1 +1 @@
Subproject commit be3cf2653c639c73f31419476cadb3f488f34ab5
Subproject commit 4e6bc6fef84e84a5e20b9e490cb0cfc072528dfd

+ 1
- 1
fbrp

@@ -1 +1 @@
Subproject commit 5cbce4054a831de7faf3a7bae1fb1c23404c59e7
Subproject commit 61b9c44d9d38f629713dfb5abb56636183be1be6

+ 4
- 2
startup.sh View File

@@ -1,6 +1,8 @@
#!/bin/bash
# Run this on start
mkdir bibles
wget http://api.heb12.com/translations/json/en/web.json
node biblec/compiler.js ../web.json web bibles
cd bibles
wget https://api.heb12.com/translations/biblec/web.i
wget https://api.heb12.com/translations/biblec/web.t
cd ..
cc biblec/biblec.c fbrp/fbrp.c app.c

Loading…
Cancel
Save