Skip to content

Commit

Permalink
1.1.2 - Merge pull request #124 from algosup/dev
Browse files Browse the repository at this point in the history
fixing minors issues not solved before today
  • Loading branch information
MistzSoftware authored Dec 19, 2024
2 parents cec596b + 6a22456 commit ca4ed72
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions src/ast.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ bool addVar(varList_t *varList, char *name, char *value, long lineNb, asm_error_
return true;
}
}
unknowError("On variable declaration", errData);
unknownError("On variable declaration", errData);
return false;
}

Expand Down Expand Up @@ -197,7 +197,7 @@ int addLabel(labelList_t *labelList, char *name, long nodeId, long lineNb, asm_e
}
}

unknowError("On label declaration", errData);
unknownError("On label declaration", errData);
return -1;
}

Expand Down
2 changes: 1 addition & 1 deletion src/binExporter.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ void exportToBin(instList_t *nodeList, char *filename, asm_error_t *errData){

// Check if the file was opened
if(file == NULL){
unknowError("File cannot be opened", errData);
unknownError("File cannot be opened", errData);
return;
}
instNode_t *node = nodeList->head;
Expand Down
6 changes: 3 additions & 3 deletions src/builder.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ void buildNode(instNode_t *node, varList_t *varList, labelList_t *labeList, asm_
node->isBuilt = true;
break;
default:
unknowError("Operation code not found during build", errData);
unknownError("Operation code not found during build", errData);
node->isBuilt = true;
break;
}
Expand Down Expand Up @@ -341,7 +341,7 @@ void buildMov(instNode_t *node, varList_t *varList, asm_error_t *errData){
return;
}
}
unknowError("Mov build is failed", errData);
unknownError("Mov build is failed", errData);

return;
}
Expand Down Expand Up @@ -441,7 +441,7 @@ void buildOperation(instNode_t *node, varList_t *varList, asm_error_t *errData){

return;
}
unknowError("Operation connot be built", errData);
unknownError("Operation cannot be built", errData);
return;
}

Expand Down
2 changes: 1 addition & 1 deletion src/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ void printAst(instList_t *nodeList, asm_error_t *errData){
void printNodeData(instNode_t *node, asm_error_t *errData){
FILE *file = fopen(logFile, "ab");
if(file == NULL){
unknowError("File cannot be opened", errData);
unknownError("File cannot be opened", errData);
exit(EXIT_FAILURE);
}
// Get current time
Expand Down
2 changes: 1 addition & 1 deletion src/error.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ void errorIntCodeNotSupported(long code, asm_error_t *errData){
displayError(errType, errDetails, NULL, errorFile, errData);
}

void unknowError(char *details, asm_error_t *errData){
void unknownError(char *details, asm_error_t *errData){
char *errType = "Unknown Error";
displayError(errType, details, NULL, errorFile, errData);
}
Expand Down
2 changes: 1 addition & 1 deletion src/error.h
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ void errorIntCodeNotSupported(long code, asm_error_t *errData);
details: Details about the error
errData: Error history
*/
void unknowError(char *details, asm_error_t *errData);
void unknownError(char *details, asm_error_t *errData);

/*
Display error messages for binary conversion issues
Expand Down

0 comments on commit ca4ed72

Please sign in to comment.