Browse Source

Update naming

master
Daniel 2 months ago
parent
commit
f27d0ad704
2 changed files with 6 additions and 7 deletions
  1. +1
    -1
      fbrp.c
  2. +5
    -6
      fbrp.h

+ 1
- 1
fbrp.c View File

@@ -82,7 +82,7 @@ void setInt(struct FbrpReference *ref, int on, int currentlyOn, int value, int a
}

// Main parsing function.
void parseReference(struct FbrpReference *ref, char string[]) {
void fbrp_parse(struct FbrpReference *ref, char string[]) {
// 2D Array for interpreting
struct Read read[MAX_READ];
int readX = 0;


+ 5
- 6
fbrp.h View File

@@ -5,7 +5,7 @@
#define MAX_READ 25
#define MAX_WORD 20

struct Reference {
struct FbrpReference {
char book[BOOK_LENGTH];
struct Chapter {
int type;
@@ -21,11 +21,10 @@ struct Reference {
int verseLength;
};

// !! Use these instead of the default functions,
// !! keeping the old ones until everything is fixed.
#define FbrpReference Reference
#define fbrp_parse parseReference
// For compatibility
#define Reference FbrpReference
#define parseReference fbrp_parse

void parseReference(struct Reference *ref, char string[]);
void fbrp_parse(struct FbrpReference *ref, char string[]);

#endif

Loading…
Cancel
Save