Archived
1
0
Fork 0

moving src/common to src/

This commit is contained in:
Henrik Hautakoski 2010-10-19 13:34:06 +02:00
parent 22d7238b36
commit cfb5e85699
20 changed files with 49 additions and 50 deletions

View file

@ -38,11 +38,11 @@ else
obj += src/client/mysql.o obj += src/client/mysql.o
endif endif
obj += src/common/rbtree.o obj += src/rbtree.o
obj += src/common/path.o obj += src/path.o
obj += src/common/strbuf.o obj += src/strbuf.o
obj += src/common/xalloc.o obj += src/xalloc.o
obj += src/common/die.o obj += src/die.o
obj += src/inotify.o obj += src/inotify.o
obj += src/event.o obj += src/event.o

View file

@ -18,10 +18,10 @@
#include "../notify.h" #include "../notify.h"
#include "../event.h" #include "../event.h"
#include "../common/xalloc.h" #include "../xalloc.h"
#include "../ini/iniparser.h" #include "../ini/iniparser.h"
#include "../common/util.h" #include "../util.h"
#include "../common/debug.h" #include "../debug.h"
typedef struct { typedef struct {
char *host; char *host;

View file

@ -1,4 +1,4 @@
/* common/debug.h - debugging macros and definitions /* debug.h - debugging macros and definitions
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/die.c - functionality for killing things in creative ways. /* die.c - functionality for killing things in creative ways.
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -13,7 +13,6 @@
#include <string.h> #include <string.h>
#include "event.h" #include "event.h"
#include "common/path.h"
#define dealloc_data(ev) \ #define dealloc_data(ev) \
if (ev->path) \ if (ev->path) \

View file

@ -13,9 +13,9 @@
#include <errno.h> #include <errno.h>
#include <dirent.h> #include <dirent.h>
#include "common/strbuf.h" #include "strbuf.h"
#include "common/path.h" #include "path.h"
#include "common/debug.h" #include "debug.h"
#include "fscrawl.h" #include "fscrawl.h"
#define MAX_DEPTH 0x20 #define MAX_DEPTH 0x20

View file

@ -16,11 +16,11 @@
#include <sys/ioctl.h> #include <sys/ioctl.h>
#include <sys/inotify.h> #include <sys/inotify.h>
#include "common/util.h" #include "util.h"
/* red black tree for watch descriptors */ /* red black tree for watch descriptors */
#include "common/rbtree.h" #include "rbtree.h"
#include "common/debug.h" #include "debug.h"
#include "common/path.h" #include "path.h"
#include "queue.h" #include "queue.h"
#include "fscrawl.h" #include "fscrawl.h"
#include "notify.h" #include "notify.h"

View file

@ -1,4 +1,4 @@
/* common/path.c - path handling routines /* path.c - path handling routines
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik.hautakoski@gmail.com> * Copyright (C) 2010 Henrik Hautakoski <henrik.hautakoski@gmail.com>
* *

View file

@ -1,4 +1,4 @@
/* common/path.h - path handling routines /* path.h - path handling routines
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/rbtree.c - red black tree implementation /* rbtree.c - red black tree implementation
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/rbtree.h /* rbtree.h
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/strbuf.c /* strbuf.c
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/strbuf.h /* strbuf.h
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/util.h /* util.h
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/xalloc.c /* xalloc.c
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -1,4 +1,4 @@
/* common/xalloc.h - stricter memory allocation. /* xalloc.h - stricter memory allocation.
* *
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org> * Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* *

View file

@ -10,35 +10,35 @@ raw_inotify :
strbuf : strbuf :
$(CC) $(CFLAGS) \ $(CC) $(CFLAGS) \
../src/common/strbuf.c \ ../src/strbuf.c \
../src/common/xalloc.c \ ../src/xalloc.c \
../src/common/die.c \ ../src/die.c \
t_strbuf.c -o test_strbuf t_strbuf.c -o test_strbuf
path : path :
$(CC) $(CFLAGS) \ $(CC) $(CFLAGS) \
unit.c \ unit.c \
../src/common/xalloc.c \ ../src/xalloc.c \
../src/common/die.c \ ../src/die.c \
../src/common/strbuf.c \ ../src/strbuf.c \
../src/common/path.c \ ../src/path.c \
t_path.c -o test_path t_path.c -o test_path
rbtree : rbtree :
$(CC) $(CFLAGS) \ $(CC) $(CFLAGS) \
unit.c \ unit.c \
../src/common/die.c \ ../src/die.c \
../src/common/xalloc.c \ ../src/xalloc.c \
../src/common/rbtree.c \ ../src/rbtree.c \
t_rbtree.c -o test_rbtree t_rbtree.c -o test_rbtree
inotify : inotify :
$(CC) -lpthread -D INOTIFY_DEBUG -D RB_DEBUG $(CFLAGS) \ $(CC) -lpthread -D INOTIFY_DEBUG -D RB_DEBUG $(CFLAGS) \
../src/common/rbtree.c \ ../src/rbtree.c \
../src/common/xalloc.c \ ../src/xalloc.c \
../src/common/die.c \ ../src/die.c \
../src/common/strbuf.c \ ../src/strbuf.c \
../src/common/path.c \ ../src/path.c \
../src/event.c \ ../src/event.c \
../src/fscrawl.c \ ../src/fscrawl.c \
../src/queue.c \ ../src/queue.c \
@ -47,11 +47,11 @@ inotify :
fscrawl : fscrawl :
$(CC) $(CFLAGS) \ $(CC) $(CFLAGS) \
../src/common/path.c \ ../src/path.c \
../src/fscrawl.c \ ../src/fscrawl.c \
../src/common/xalloc.c \ ../src/xalloc.c \
../src/common/die.c \ ../src/die.c \
../src/common/strbuf.c \ ../src/strbuf.c \
t_fscrawl.c -o test_fscrawl t_fscrawl.c -o test_fscrawl
queue : queue :

View file

@ -3,7 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "unit.h" #include "unit.h"
#include "../src/common/path.h" #include "../src/path.h"
void test_normalize() { void test_normalize() {

View file

@ -8,8 +8,8 @@
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include "unit.h" #include "unit.h"
#include "../src/common/rbtree.h" #include "../src/rbtree.h"
#include "../src/common/debug.h" #include "../src/debug.h"
#define MAX_VAL 500 #define MAX_VAL 500
#define NODES 20 #define NODES 20

View file

@ -3,7 +3,7 @@
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>
#include <malloc.h> #include <malloc.h>
#include "../src/common/strbuf.h" #include "../src/strbuf.h"
typedef unsigned int uint; typedef unsigned int uint;