lib: move includes to include/lib/

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
This commit is contained in:
Vegard Nossum
2009-06-11 09:18:21 +02:00
parent cd779b9511
commit 618082bcab
6 changed files with 15 additions and 13 deletions

View File

@@ -9,4 +9,4 @@ xlib: $(obj)
gcc -Wall -o $@ $^
.c.o:
gcc -Wall -I. -I.. -Iinclude -g -c -o $@ $<
gcc -Wall -I. -I.. -I../../include -g -c -o $@ $<

View File

@@ -1,13 +0,0 @@
#ifndef LIBRARY_H
#define LIBRARY_H
#include "libwrap.h"
extern sLibrary *lib_Read(char *filename);
extern BBOOL lib_Write(sLibrary * lib, char *filename);
extern sLibrary *lib_AddReplace(sLibrary * lib, char *filename);
extern void lib_Free(sLibrary * lib);
extern sLibrary *lib_DeleteModule(sLibrary * lib, char *filename);
extern sLibrary *lib_Find(sLibrary * lib, char *filename);
#endif

View File

@@ -1,19 +0,0 @@
#ifndef LIBWRAP_H
#define LIBWRAP_H
#include "types.h"
#define MAXNAMELENGTH 256
struct LibraryWrapper {
char tName[MAXNAMELENGTH];
UWORD uwTime;
UWORD uwDate;
SLONG nByteLength;
UBYTE *pData;
struct LibraryWrapper *pNext;
};
typedef struct LibraryWrapper sLibrary;
#endif

View File

@@ -1,16 +0,0 @@
#ifndef TYPES_H
#define TYPES_H 1
#if defined(AMIGA) || defined(__GNUC__)
#define _MAX_PATH 512
#endif
typedef unsigned char UBYTE;
typedef signed char SBYTE;
typedef unsigned short UWORD;
typedef signed short SWORD;
typedef unsigned long ULONG;
typedef signed long SLONG;
typedef signed char BBOOL;
#endif

View File

@@ -1,8 +1,9 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "types.h"
#include "libwrap.h"
#include "lib/types.h"
#include "lib/libwrap.h"
extern void fatalerror(char *s);

View File

@@ -4,8 +4,9 @@
#include <ctype.h>
#include "asmotor.h"
#include "types.h"
#include "library.h"
#include "lib/types.h"
#include "lib/library.h"
// Quick and dirty...but it works
#ifdef __GNUC__