renamed sunxi-tools.h to common.h
This commit is contained in:
parent
a4c457453e
commit
352188a376
2
Makefile
2
Makefile
@ -11,7 +11,7 @@ clean:
|
||||
@rm -vf $(TOOLS)
|
||||
|
||||
|
||||
$(TOOLS): Makefile sunxi-tools.h
|
||||
$(TOOLS): Makefile common.h
|
||||
|
||||
fex2bin: script.c script.h script_bin.h script_bin.c
|
||||
bin2fex: script.h
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "sunxi-tools.h"
|
||||
#include "common.h"
|
||||
#include "bin2fex.h"
|
||||
|
||||
#include <errno.h>
|
||||
|
||||
@ -14,8 +14,8 @@
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#ifndef _SUNXI_TOOLS_H
|
||||
#define _SUNXI_TOOLS_H
|
||||
#ifndef _SUNXI_TOOLS_COMMON_H
|
||||
#define _SUNXI_TOOLS_COMMON_H
|
||||
|
||||
#include <stddef.h> /* offsetof */
|
||||
|
||||
@ -35,6 +35,10 @@
|
||||
/** shortcut to printf to stderr */
|
||||
#define errf(...) fprintf(stderr, __VA_ARGS__)
|
||||
|
||||
/*
|
||||
* list
|
||||
*/
|
||||
|
||||
/** a list hook */
|
||||
struct list_entry {
|
||||
struct list_entry *prev;
|
||||
@ -17,7 +17,7 @@
|
||||
#ifndef _SUNXI_TOOLS_FEX2BIN_H
|
||||
#define _SUNXI_TOOLS_FEX2BIN_H
|
||||
|
||||
#include "sunxi-tools.h"
|
||||
#include "common.h"
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
2
script.c
2
script.c
@ -15,7 +15,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sunxi-tools.h"
|
||||
#include "common.h"
|
||||
|
||||
#include <assert.h>
|
||||
#include <stdint.h>
|
||||
|
||||
@ -15,7 +15,7 @@
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "sunxi-tools.h"
|
||||
#include "common.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdint.h>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user