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 <stdio.h>
#include "html.h" #include "html.h"

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

@ -1,4 +1,3 @@
#include "types.h"
#include "input.h" #include "input.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

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

@ -1,4 +1,3 @@
#include "types.h"
#include "input.h" #include "input.h"
#include <string.h> #include <string.h>
#include <stdio.h> #include <stdio.h>

@ -1,6 +1,8 @@
#ifndef imput_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__ #ifndef imput_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define 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 * Reads the Sudoku from file
* @param path The File to read from * @param path The File to read from

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

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

@ -1,4 +1,3 @@
#include "types.h"
#include "output.h" #include "output.h"
#include <stdio.h> #include <stdio.h>

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

@ -1,4 +1,3 @@
#include "types.h"
#include "output_nstd.h" #include "output_nstd.h"
#include <stdio.h> #include <stdio.h>

@ -1,6 +1,8 @@
#ifndef output_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__ #ifndef output_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define 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 * Print the Sudoku on stdout using unicode borders
* @param s The Sudoku * @param s The Sudoku

@ -1,4 +1,3 @@
#include "types.h"
#include "output_std.h" #include "output_std.h"
#include <stdio.h> #include <stdio.h>

@ -1,6 +1,8 @@
#ifndef output_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__ #ifndef output_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define 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 * Print the Sudoku on stdout using unicode borders
* @param s The Sudoku * @param s The Sudoku

@ -1,4 +1,3 @@
#include "types.h"
#include "solver.h" #include "solver.h"
int sl_loes(sudoku* s, options * o) { int sl_loes(sudoku* s, options * o) {

@ -1,6 +1,8 @@
#ifndef solver_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__ #ifndef solver_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define 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 * Tries to solve the Sudoku with logic
* @param s the sudokue to solve * @param s the sudokue to solve

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

@ -1,6 +1,8 @@
#ifndef solver_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__ #ifndef solver_nstd_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define 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 * Checks if there are other posibilities for the number if not return 1
* @param s The sudoku struct * @param s The sudoku struct

@ -1,4 +1,3 @@
#include "types.h"
#include "solver_std.h" #include "solver_std.h"
int solver_check_nums(sudoku* s,int zahl,int z, int sp) { int solver_check_nums(sudoku* s,int zahl,int z, int sp) {

@ -1,6 +1,8 @@
#ifndef solver_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__ #ifndef solver_std_2b894a04_3a0c_4223_bf83_6ab40c0f5e57_h__
#define 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 * Checks if there are other posibilities for the number if not return 1
* @param s The sudoku struct * @param s The sudoku struct

Loading…
Cancel
Save