[syslinux] [PATCH 18/28] com32/chain: remove common.h
Michal Soltys
soltys at ziu.info
Tue Jan 29 06:06:05 PST 2013
Only 2 defines there related to preliminary options.c's and chain.c's
hecks (real checks come later during mapping to real memory). So move
them to options.h and remove common.h.
Signed-off-by: Michal Soltys <soltys at ziu.info>
---
com32/chain/chain.c | 1 -
com32/chain/common.h | 39 ---------------------------------------
com32/chain/mangle.c | 1 -
com32/chain/options.c | 1 -
com32/chain/options.h | 3 +++
com32/chain/partiter.c | 1 -
6 files changed, 3 insertions(+), 43 deletions(-)
delete mode 100644 com32/chain/common.h
diff --git a/com32/chain/chain.c b/com32/chain/chain.c
index d6eab7c..87dea37 100644
--- a/com32/chain/chain.c
+++ b/com32/chain/chain.c
@@ -34,7 +34,6 @@
#include <syslinux/config.h>
#include <syslinux/disk.h>
#include <syslinux/video.h>
-#include "common.h"
#include "chain.h"
#include "utility.h"
#include "options.h"
diff --git a/com32/chain/common.h b/com32/chain/common.h
deleted file mode 100644
index 65f78f0..0000000
--- a/com32/chain/common.h
+++ /dev/null
@@ -1,39 +0,0 @@
-/* ----------------------------------------------------------------------- *
- *
- * Copyright 2003-2009 H. Peter Anvin - All Rights Reserved
- * Copyright 2009-2010 Intel Corporation; author: H. Peter Anvin
- * Copyright 2010 Shao Miller
- * Copyright 2010-2012 Michal Soltys
- *
- * Permission is hereby granted, free of charge, to any person
- * obtaining a copy of this software and associated documentation
- * files (the "Software"), to deal in the Software without
- * restriction, including without limitation the rights to use,
- * copy, modify, merge, publish, distribute, sublicense, and/or
- * sell copies of the Software, and to permit persons to whom
- * the Software is furnished to do so, subject to the following
- * conditions:
- *
- * The above copyright notice and this permission notice shall
- * be included in all copies or substantial portions of the Software.
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
- * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
- * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
- * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
- * OTHER DEALINGS IN THE SOFTWARE.
- *
- * ----------------------------------------------------------------------- */
-
-#ifndef COM32_CHAIN_COMMON_H
-#define COM32_CHAIN_COMMON_H
-
-#define ADDRMAX 0x9EFFFu
-#define ADDRMIN 0x500u
-
-#endif
-
-/* vim: set ts=8 sts=4 sw=4 noet: */
diff --git a/com32/chain/mangle.c b/com32/chain/mangle.c
index e1f7ae3..391554b 100644
--- a/com32/chain/mangle.c
+++ b/com32/chain/mangle.c
@@ -35,7 +35,6 @@
#include <stdint.h>
#include <dprintf.h>
#include <syslinux/config.h>
-#include "common.h"
#include "chain.h"
#include "options.h"
#include "utility.h"
diff --git a/com32/chain/options.c b/com32/chain/options.c
index 4044520..70f5069 100644
--- a/com32/chain/options.c
+++ b/com32/chain/options.c
@@ -31,7 +31,6 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
-#include "common.h"
#include "chain.h"
#include "partiter.h"
#include "utility.h"
diff --git a/com32/chain/options.h b/com32/chain/options.h
index 5ae4109..a53f38b 100644
--- a/com32/chain/options.h
+++ b/com32/chain/options.h
@@ -34,6 +34,9 @@
#include <stdint.h>
#include <syslinux/bootrm.h>
+#define ADDRMAX 0x9EFFFu
+#define ADDRMIN 0x500u
+
enum {HIDE_OFF = 0, HIDE_ON = 1, HIDE_EXT = 2, HIDE_REV = 4};
struct options {
diff --git a/com32/chain/partiter.c b/com32/chain/partiter.c
index 3c7670d..2e03fb5 100644
--- a/com32/chain/partiter.c
+++ b/com32/chain/partiter.c
@@ -40,7 +40,6 @@
#include <stdarg.h>
#include <zlib.h>
#include <syslinux/disk.h>
-#include "common.h"
#include "partiter.h"
#include "utility.h"
--
1.7.10.4
More information about the Syslinux
mailing list