Mercurial > garten
comparison db.c @ 18:5937504619f2
rename game.h -> modules.h; added some error handling; and more
author | meillo@marmaro.de |
---|---|
date | Wed, 23 Jul 2008 17:40:55 +0200 |
parents | 5e6c9260913a |
children | 17b2bcc42d72 |
comparison
equal
deleted
inserted
replaced
17:5e6c9260913a | 18:5937504619f2 |
---|---|
1 #include <stdio.h> | 1 #include <stdio.h> |
2 #include <stdlib.h> | 2 #include <stdlib.h> |
3 #include "db.h" | 3 #include "db.h" |
4 #include "game.h" | |
5 | 4 |
6 | 5 |
7 | 6 |
8 void db_connect() { | 7 void db_connect() { |
9 if (sqlite3_open(database, &db) != SQLITE_OK) { | 8 if (sqlite3_open(database, &db) != SQLITE_OK) { |