Moved types.h to header files (prototypes)

main
Thomas Ba. 13 years ago
parent 123ff51759
commit b0434371a1

@ -1,4 +1,3 @@
#include "types.h"
#include <stdio.h>
#include "html.h"
@ -52,4 +51,4 @@ void printFoot(FILE * fp) {
fprintf(fp," </table>\n");
fprintf(fp," </body>\n");
fprintf(fp,"</html>\n");
}
}

@ -1,6 +1,8 @@
#ifndef html_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define html_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
#include <stdio.h>
void genHTML(sudoku * s,FILE * fp);

@ -1,4 +1,3 @@
#include "types.h"
#include "input.h"
#include <string.h>
#include <stdio.h>
@ -60,4 +59,4 @@ int s_einlesen(char * path, sudoku * sf, options * o) {
fclose(fp);
if(z<9) return 0;
return 1;
}
}

@ -1,6 +1,8 @@
#ifndef input_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define input_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Reads the Sudoku from file
* @param path The File to read from

@ -1,4 +1,3 @@
#include "types.h"
#include "input.h"
#include <string.h>
#include <stdio.h>
@ -57,4 +56,4 @@ int s_b_einlesen(char * path, sudoku * sf) {
fclose(fp);
if(z<9) return 0;
return 1;
}
}

@ -1,6 +1,8 @@
#ifndef imput_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define imput_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Reads the Sudoku from file
* @param path The File to read from

@ -19,7 +19,6 @@
* MA 02110-1301, USA.
*/
#include "types.h"
#include "main.h"
#include "input.h"
#include "input_nstd.h"

@ -1,6 +1,8 @@
#ifndef main_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define main_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
int main(int argc, char **argv);
void readOptions(int argc, char **argv, options * o);
void newStandard(options * o);

@ -1,4 +1,3 @@
#include "types.h"
#include "output.h"
#include <stdio.h>
@ -48,4 +47,4 @@ void s_plain(sudoku* s, int color) {
}
printf("\n");
}
}
}

@ -1,6 +1,8 @@
#ifndef output_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define output_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Write the sudoku to a file
* @param fn The Filename

@ -1,4 +1,3 @@
#include "types.h"
#include "output_nstd.h"
#include <stdio.h>
@ -107,4 +106,4 @@ void nstd_ausgabe(sudoku* s,int color) {
printf("\n");
}
if(!color) printf("+-------+-------+-------+\n");
}
}

@ -1,6 +1,8 @@
#ifndef output_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define output_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Print the Sudoku on stdout using unicode borders
* @param s The Sudoku

@ -1,4 +1,3 @@
#include "types.h"
#include "output_std.h"
#include <stdio.h>
@ -58,4 +57,4 @@ void std_ausgabe(sudoku* s,int color) {
printf("|\n");
}
printf("+-------+-------+-------+\n");
}
}

@ -1,6 +1,8 @@
#ifndef output_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define output_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Print the Sudoku on stdout using unicode borders
* @param s The Sudoku

@ -1,4 +1,3 @@
#include "types.h"
#include "solver.h"
int sl_loes(sudoku* s, options * o) {
@ -40,4 +39,4 @@ int s_loes_track(sudoku * s, int pos, options * o) {
}
s->feld[x][y] = 0;
return 0;
}
}

@ -1,6 +1,8 @@
#ifndef solver_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define solver_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Tries to solve the Sudoku with logic
* @param s the sudokue to solve

@ -1,4 +1,3 @@
#include "types.h"
#include "solver_nstd.h"
int solver_nstd_check_nums(sudoku* s,int zahl,int z, int sp) {
@ -56,4 +55,4 @@ int solver_nstd_test(sudoku *s, int z, int sp, int zahl) {
}
}
return 1;
}
}

@ -1,6 +1,8 @@
#ifndef solver_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define solver_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Checks if there are other posibilities for the number if not return 1
* @param s The sudoku struct

@ -1,4 +1,3 @@
#include "types.h"
#include "solver_std.h"
int solver_check_nums(sudoku* s,int zahl,int z, int sp) {
@ -48,4 +47,4 @@ int solver_test(sudoku *s, int z, int sp, int zahl) {
for(j=0;j<3;j++)
if(s->feld[x+i][y+j] == zahl) return 0;
return 1;
}
}

@ -1,6 +1,8 @@
#ifndef solver_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define solver_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#include "types.h"
/**
* Checks if there are other posibilities for the number if not return 1
* @param s The sudoku struct

Loading…
Cancel
Save