Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Sunxi Tools
Commits
352188a3
Commit
352188a3
authored
May 10, 2012
by
Alejandro Mery
Browse files
renamed sunxi-tools.h to common.h
parent
a4c45745
Changes
6
Show whitespace changes
Inline
Side-by-side
Makefile
View file @
352188a3
...
@@ -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
...
...
bin2fex.c
View file @
352188a3
...
@@ -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>
...
...
sunxi-tools
.h
→
common
.h
View file @
352188a3
...
@@ -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
;
...
...
fex2bin.h
View file @
352188a3
...
@@ -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>
...
...
script.c
View file @
352188a3
...
@@ -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>
...
...
script_bin.c
View file @
352188a3
...
@@ -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>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment