diff options
author | Tomohiro Kusumi <tkusumi@tuxera.com> | 2017-04-15 00:06:21 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-04-26 12:43:10 -0600 |
commit | fada2fcd693a2c7fde5ebd36ff9255b549b102ab (patch) | |
tree | 47d781b35a4708f515774f37c3cf4e9dd7f27d55 /lib/pattern.c | |
parent | 2c48ab2efb7397b933d5b7e552da8c8245744c10 (diff) | |
download | fio-fada2fcd693a2c7fde5ebd36ff9255b549b102ab.tar.gz fio-fada2fcd693a2c7fde5ebd36ff9255b549b102ab.tar.bz2 |
Make lib/pattern.c a stand-alone library
lib/pattern.c not having dependency on fio.h enables it to be
a stand-alone library, which is useful for debugging purpose.
In fact, most of the files under lib/ directory do things this way.
This requires the previous commit.
--
# cat ./test6.c
#include <stdio.h>
#include "lib/pattern.h"
int main(void) {
/* just to see if it compiles */
paste_format_inplace(NULL, 0, NULL, 0, NULL);
return 0;
}
# gcc -Wall -g ./test6.c ./lib/pattern.c ./lib/strntol.c
Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'lib/pattern.c')
-rw-r--r-- | lib/pattern.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/pattern.c b/lib/pattern.c index b8ae8090..0aeb9352 100644 --- a/lib/pattern.c +++ b/lib/pattern.c @@ -1,6 +1,13 @@ -#include "fio.h" +#include <stdio.h> +#include <stdlib.h> +#include <string.h> +#include <limits.h> +#include <errno.h> +#include <assert.h> + #include "strntol.h" #include "pattern.h" +#include "../minmax.h" #include "../oslib/strcasestr.h" /** |