Commit 352188a3 authored by Alejandro Mery's avatar Alejandro Mery
Browse files

renamed sunxi-tools.h to common.h

parent a4c45745
...@@ -11,7 +11,7 @@ clean: ...@@ -11,7 +11,7 @@ clean:
@rm -vf $(TOOLS) @rm -vf $(TOOLS)
$(TOOLS): Makefile sunxi-tools.h $(TOOLS): Makefile common.h
fex2bin: script.c script.h script_bin.h script_bin.c fex2bin: script.c script.h script_bin.h script_bin.c
bin2fex: script.h bin2fex: script.h
......
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* 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 "sunxi-tools.h" #include "common.h"
#include "bin2fex.h" #include "bin2fex.h"
#include <errno.h> #include <errno.h>
......
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#ifndef _SUNXI_TOOLS_H #ifndef _SUNXI_TOOLS_COMMON_H
#define _SUNXI_TOOLS_H #define _SUNXI_TOOLS_COMMON_H
#include <stddef.h> /* offsetof */ #include <stddef.h> /* offsetof */
...@@ -35,6 +35,10 @@ ...@@ -35,6 +35,10 @@
/** shortcut to printf to stderr */ /** shortcut to printf to stderr */
#define errf(...) fprintf(stderr, __VA_ARGS__) #define errf(...) fprintf(stderr, __VA_ARGS__)
/*
* list
*/
/** a list hook */ /** a list hook */
struct list_entry { struct list_entry {
struct list_entry *prev; struct list_entry *prev;
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#ifndef _SUNXI_TOOLS_FEX2BIN_H #ifndef _SUNXI_TOOLS_FEX2BIN_H
#define _SUNXI_TOOLS_FEX2BIN_H #define _SUNXI_TOOLS_FEX2BIN_H
#include "sunxi-tools.h" #include "common.h"
#include <stdint.h> #include <stdint.h>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* 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 "sunxi-tools.h" #include "common.h"
#include <assert.h> #include <assert.h>
#include <stdint.h> #include <stdint.h>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
* 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 "sunxi-tools.h" #include "common.h"
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h> #include <stdint.h>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment