Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Commit

Permalink
Fix dovuto alla rimozione del tipo bool in phase1
Browse files Browse the repository at this point in the history
Fix cambiamento signature int main() a void main() #15
  • Loading branch information
jjak0b committed Mar 21, 2020
1 parent 2af1a8f commit 47059a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/devices/terminal.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include <devices/terminal.h>
#include "stdbool.h" // TODO RIMUOVI E SISTEMA GIU'
#include <utilities/types.h>

word tx_status(termreg_t *device) {
return ((device->transm_status) & TERMINAL_STATUS_MASK);
Expand Down Expand Up @@ -80,8 +80,8 @@ int terminal_gets(termreg_t *device, char *str_buffer, unsigned int size_str) {

int status = 0;
unsigned int length = 0;
bool flag_continue = true;
bool flag_EOL = false;
int flag_continue = TRUE;
int flag_EOL = FALSE;

/* Continua a riempire il buffer finchè:
* 1) c'è spazio;
Expand All @@ -101,8 +101,8 @@ int terminal_gets(termreg_t *device, char *str_buffer, unsigned int size_str) {
str_buffer++;
length++;
}else {
flag_EOL = true;
flag_continue = false;
flag_EOL = TRUE;
flag_continue = TRUE;
}
}

Expand Down
2 changes: 2 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,6 @@ int main(){
// Halt
//----------------------------------------------------
HALT();

return -1;
}

0 comments on commit 47059a8

Please sign in to comment.