Move array implementation to shared directory

This commit is contained in:
Lucas De Marchi 2014-10-03 00:22:36 -03:00
parent 8eded79c50
commit 74d1df6682
6 changed files with 10 additions and 7 deletions

View File

@ -45,13 +45,13 @@ LIBKMOD_AGE=2
noinst_LTLIBRARIES = libkmod/libkmod-util.la noinst_LTLIBRARIES = libkmod/libkmod-util.la
libkmod_libkmod_util_la_SOURCES = \ libkmod_libkmod_util_la_SOURCES = \
shared/macro.h \ shared/macro.h \
shared/missing.h\ shared/missing.h \
shared/array.c \
shared/array.h \
shared/util.c \ shared/util.c \
shared/util.h \ shared/util.h \
libkmod/libkmod-hash.c \ libkmod/libkmod-hash.c \
libkmod/libkmod-hash.h \ libkmod/libkmod-hash.h \
libkmod/libkmod-array.c \
libkmod/libkmod-array.h \
libkmod/libkmod-util.c \ libkmod/libkmod-util.c \
libkmod/libkmod-util.h libkmod/libkmod-util.h

View File

@ -22,7 +22,6 @@ CFILE_GLOB = $(top_srcdir)/libkmod/libkmod.c $(top_srcdir)/libkmod/libkmod-modul
IGNORE_HFILES = libkmod-internal.h \ IGNORE_HFILES = libkmod-internal.h \
libkmod-util.h \ libkmod-util.h \
libkmod-array.h \
libkmod-hash.h \ libkmod-hash.h \
libkmod-index.h libkmod-index.h

View File

@ -18,8 +18,9 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
#include <shared/array.h>
#include "libkmod.h" #include "libkmod.h"
#include "libkmod-array.h"
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -1,5 +1,7 @@
#pragma once #pragma once
#include <stddef.h>
/* /*
* Declaration of struct array is in header because we may want to embed the * Declaration of struct array is in header because we may want to embed the
* structure into another, so we need to know its size * structure into another, so we need to know its size

View File

@ -17,10 +17,10 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "libkmod.h" #include "libkmod.h"
#include "libkmod-array.h"
#include "libkmod-hash.h" #include "libkmod-hash.h"
#include "libkmod-util.h" #include "libkmod-util.h"
#include <shared/array.h>
#include <shared/macro.h> #include <shared/macro.h>
#include <shared/util.h> #include <shared/util.h>

View File

@ -32,7 +32,8 @@
#include <limits.h> #include <limits.h>
#include "libkmod.h" #include "libkmod.h"
#include "libkmod-array.h"
#include <shared/array.h>
#include <shared/macro.h> #include <shared/macro.h>
#include "kmod.h" #include "kmod.h"