elflink: Delete core-elf.h
authorMatt Fleming <matt.fleming@linux.intel.com>
Wed, 13 Apr 2011 23:59:12 +0000 (00:59 +0100)
committerMatt Fleming <matt.fleming@linux.intel.com>
Tue, 26 Apr 2011 08:54:11 +0000 (09:54 +0100)
This header file really just duplicates code that is available in
other header files. It has no reason to exist.

Signed-off-by: Matt Fleming <matt.fleming@linux.intel.com>
com32/elflink/ldlinux/cli.c
com32/elflink/ldlinux/colors.c
com32/elflink/ldlinux/execute.c
com32/elflink/ldlinux/kernel.c
com32/elflink/ldlinux/ldlinux.c
com32/elflink/ldlinux/readconfig.c
core/elflink/core-elf.h [deleted file]
core/elflink/load_env32.c

index 3026cac..4749dda 100644 (file)
@@ -12,7 +12,6 @@
 #include <linux/list.h>
 #include <sys/exec.h>
 #include <sys/module.h>
-#include <core-elf.h>
 #include <dprintf.h>
 
 #include "getkey.h"
index c1ef390..68732bd 100644 (file)
@@ -14,7 +14,6 @@
 #include <string.h>
 #include <stdio.h>
 #include <colortbl.h>
-#include <core-elf.h>
 #include "menu.h"
 
 /*
index f67d707..a00a5b1 100644 (file)
@@ -18,7 +18,7 @@
 #include <com32.h>
 #include <sys/exec.h>
 #include "core.h"
-#include "core-elf.h"
+#include "menu.h"
 
 /* Must match enum kernel_type */
 const char *const kernel_types[] = {
@@ -36,11 +36,6 @@ const char *const kernel_types[] = {
     NULL
 };
 
-static inline int my_isspace(char c)
-{
-    return (unsigned char)c <= ' ';
-}
-
 void execute(const char *cmdline, enum kernel_type type)
 {
        const char *p, *const *pp;
index 3ce2358..2438d11 100644 (file)
@@ -8,7 +8,6 @@
 #include <syslinux/linux.h>
 #include <syslinux/pxe.h>
 #include "core.h"
-#include "core-elf.h"
 
 const char *globaldefault = NULL;
 const char *append = NULL;
index 5f4b058..9ba1aeb 100644 (file)
@@ -2,7 +2,6 @@
 #include <sys/times.h>
 #include <stdbool.h>
 #include <core.h>
-#include <core-elf.h>
 #include "cli.h"
 #include "console.h"
 #include "com32.h"
index d78c015..441651e 100644 (file)
@@ -22,7 +22,6 @@
 #include <com32.h>
 #include <syslinux/adv.h>
 #include <syslinux/config.h>
-#include <core-elf.h>
 #include <dprintf.h>
 
 #include "menu.h"
diff --git a/core/elflink/core-elf.h b/core/elflink/core-elf.h
deleted file mode 100644 (file)
index dcca900..0000000
+++ /dev/null
@@ -1,29 +0,0 @@
-#ifndef _CORE_ELF_H
-#define _coRE_ELF_H
-
-enum kernel_type {
-    /* Meta-types for internal use */
-    KT_NONE,
-    KT_LOCALBOOT,
-
-    /* The ones we can pass off to SYSLINUX, in order */
-    KT_KERNEL,                 /* Undefined type */
-    KT_LINUX,                  /* Linux kernel */
-    KT_BOOT,                   /* Bootstrap program */
-    KT_BSS,                    /* Boot sector with patch */
-    KT_PXE,                    /* PXE NBP */
-    KT_FDIMAGE,                        /* Floppy disk image */
-    KT_COMBOOT,                        /* COMBOOT image */
-    KT_COM32,                  /* COM32 image */
-    KT_CONFIG,                 /* Configuration file */
-};
-
-extern const char *append;
-extern char *ippappend;
-extern const char *globaldefault;
-extern short onerrorlen;
-
-extern int new_linux_kernel(char *okernel, char *ocmdline);
-
-extern void start_ui(char *config_file);
-#endif
index 8a71634..16b21a6 100644 (file)
@@ -16,7 +16,6 @@
 #include <sys/module.h>
 #include "common.h"
 #include "menu.h"
-#include "core-elf.h"
 
 #define LDLINUX        "ldlinux.c32"