tidy
This commit is contained in:
7 files changed
+4
-4
No files matched your search
@@ -1,3 +1,4 @@
|
|||||||
|
#include <stdint.h>
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
#include "csv.h"
|
#include "csv.h"
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
#ifndef CSV_H_INCLUDED
|
#ifndef CSV_H_INCLUDED
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
#include <stdint.h>
|
||||||
#include "csv.h"
|
#include "csv.h"
|
||||||
#include "main.h"
|
#include "main.h"
|
||||||
|
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ typedef struct {
|
|||||||
bool alternate;
|
bool alternate;
|
||||||
} CSV_LINE;
|
} CSV_LINE;
|
||||||
|
|
||||||
// Dumbass me set this to size_t earlier, forgot that size_t is unsigned and I can't return -1 on failure
|
|
||||||
int count_lines(char data_dir[]) {
|
int count_lines(char data_dir[]) {
|
||||||
FILE *stream = fopen(data_dir, "r");
|
FILE *stream = fopen(data_dir, "r");
|
||||||
if (!stream) {
|
if (!stream) {
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "../include/students.h"
|
#include "../include/students.h"
|
||||||
|
|||||||
+1
-1
@@ -50,7 +50,7 @@ TIMETABLE generateTimetable(STUDENT *students, size_t size_students, COURSE *cou
|
|||||||
TIMETABLE timetable = {{{{0}}}, false};
|
TIMETABLE timetable = {{{{0}}}, false};
|
||||||
|
|
||||||
uint8_t MEDIAN = floor((MIN_REQ + CLASS_CAP) / 2);
|
uint8_t MEDIAN = floor((MIN_REQ + CLASS_CAP) / 2);
|
||||||
// uint8_t BLOCKS_PER_SEMESTER = TOTAL_BLOCKS / 2;
|
uint8_t BLOCKS_PER_SEMESTER = TOTAL_BLOCKS / 2;
|
||||||
|
|
||||||
|
|
||||||
// Step 1 - Tally requests to check which courses are eligable to run
|
// Step 1 - Tally requests to check which courses are eligable to run
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include "students.h"
|
|
||||||
#include "../include/main.h"
|
#include "../include/main.h"
|
||||||
#include "../include/csv.h"
|
#include "../include/csv.h"
|
||||||
#include "../include/students.h"
|
#include "../include/students.h"
|
||||||
|
|||||||
Reference in new issue
Block a user