[towel-db commit] r39 - in trunk/c: . lib

0 views
Skip to first unread message

codesite...@google.com

unread,
Jul 7, 2008, 1:57:48 PM7/7/08
to toweldb...@googlegroups.com
Author: i80and
Date: Mon Jul 7 10:57:21 2008
New Revision: 39

Added:
trunk/c/lib/SConscript
- copied, changed from r37, /trunk/c/lib/SConstruct
Removed:
trunk/c/lib/SConstruct
Modified:
trunk/c/SConstruct
trunk/c/lib/database.c
trunk/c/lib/database.h

Log:
More work on subdividing the source into subdirs.


Modified: trunk/c/SConstruct
==============================================================================
--- trunk/c/SConstruct (original)
+++ trunk/c/SConstruct Mon Jul 7 10:57:21 2008
@@ -1,4 +1,4 @@
-SConscript( ['lib/SConstruct'] )
+SConscript( ['lib/SConscript'] )

Help("""
Currently, there are no special options or features available.

Copied: trunk/c/lib/SConscript (from r37, /trunk/c/lib/SConstruct)
==============================================================================
--- /trunk/c/lib/SConstruct (original)
+++ trunk/c/lib/SConscript Mon Jul 7 10:57:21 2008
@@ -1,4 +1,5 @@
env = Environment( CFLAGS = '-Wall -g' )
+env.Append( CPPPATH = ['#/include'] )
lib = env.SharedLibrary( 'toweldb',
['database.c', 'record.c', 'parser.c'] )
env.Install( '/usr/local/lib', lib )
env.Install( '/usr/local/include', source=['toweldb.h'] )

Modified: trunk/c/lib/database.c
==============================================================================
--- trunk/c/lib/database.c (original)
+++ trunk/c/lib/database.c Mon Jul 7 10:57:21 2008
@@ -15,7 +15,7 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

-#include "toweldb.h"
+#include "database.h"

toweldb_db*
toweldb_open( const char* path, const char mode )

Modified: trunk/c/lib/database.h
==============================================================================
--- trunk/c/lib/database.h (original)
+++ trunk/c/lib/database.h Mon Jul 7 10:57:21 2008
@@ -21,7 +21,7 @@
#include "toweldb.h"

/* Database */
-typedef struct
+static typedef struct
{
DIR* db_dir;
char* path;

Reply all
Reply to author
Forward
0 new messages