Skip to content

Commit 6a22456

Browse files
author
Mathias "Mistz" Gagnepain
committed
fixing minors issues not solved before today
fixes #100 , #94
1 parent 0595657 commit 6a22456

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

src/ast.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ bool addVar(varList_t *varList, char *name, char *value, long lineNb, asm_error_
9393
return true;
9494
}
9595
}
96-
unknowError("On variable declaration", errData);
96+
unknownError("On variable declaration", errData);
9797
return false;
9898
}
9999

@@ -197,7 +197,7 @@ int addLabel(labelList_t *labelList, char *name, long nodeId, long lineNb, asm_e
197197
}
198198
}
199199

200-
unknowError("On label declaration", errData);
200+
unknownError("On label declaration", errData);
201201
return -1;
202202
}
203203

src/binExporter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ void exportToBin(instList_t *nodeList, char *filename, asm_error_t *errData){
1717

1818
// Check if the file was opened
1919
if(file == NULL){
20-
unknowError("File cannot be opened", errData);
20+
unknownError("File cannot be opened", errData);
2121
return;
2222
}
2323
instNode_t *node = nodeList->head;

src/builder.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ void buildNode(instNode_t *node, varList_t *varList, labelList_t *labeList, asm_
6666
node->isBuilt = true;
6767
break;
6868
default:
69-
unknowError("Operation code not found during build", errData);
69+
unknownError("Operation code not found during build", errData);
7070
node->isBuilt = true;
7171
break;
7272
}
@@ -341,7 +341,7 @@ void buildMov(instNode_t *node, varList_t *varList, asm_error_t *errData){
341341
return;
342342
}
343343
}
344-
unknowError("Mov build is failed", errData);
344+
unknownError("Mov build is failed", errData);
345345

346346
return;
347347
}
@@ -441,7 +441,7 @@ void buildOperation(instNode_t *node, varList_t *varList, asm_error_t *errData){
441441

442442
return;
443443
}
444-
unknowError("Operation connot be built", errData);
444+
unknownError("Operation cannot be built", errData);
445445
return;
446446
}
447447

src/debug.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ void printAst(instList_t *nodeList, asm_error_t *errData){
2424
void printNodeData(instNode_t *node, asm_error_t *errData){
2525
FILE *file = fopen(logFile, "ab");
2626
if(file == NULL){
27-
unknowError("File cannot be opened", errData);
27+
unknownError("File cannot be opened", errData);
2828
exit(EXIT_FAILURE);
2929
}
3030
// Get current time

src/error.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ void errorIntCodeNotSupported(long code, asm_error_t *errData){
435435
displayError(errType, errDetails, NULL, errorFile, errData);
436436
}
437437

438-
void unknowError(char *details, asm_error_t *errData){
438+
void unknownError(char *details, asm_error_t *errData){
439439
char *errType = "Unknown Error";
440440
displayError(errType, details, NULL, errorFile, errData);
441441
}

src/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ void errorIntCodeNotSupported(long code, asm_error_t *errData);
339339
details: Details about the error
340340
errData: Error history
341341
*/
342-
void unknowError(char *details, asm_error_t *errData);
342+
void unknownError(char *details, asm_error_t *errData);
343343

344344
/*
345345
Display error messages for binary conversion issues

0 commit comments

Comments
 (0)