Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
ccan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
mirror
ccan
Commits
53de95c6
Commit
53de95c6
authored
Nov 30, 2011
by
Rusty Russell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configurator: HAVE_BACKTRACE
parent
15c6ce42
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
config.h
config.h
+1
-0
tools/configurator/configurator.c
tools/configurator/configurator.c
+6
-0
No files found.
config.h
View file @
53de95c6
...
...
@@ -17,6 +17,7 @@
#define HAVE_ATTRIBUTE_PRINTF 1
#define HAVE_ATTRIBUTE_UNUSED 1
#define HAVE_ATTRIBUTE_USED 1
#define HAVE_BACKTRACE 1
#define HAVE_BIG_ENDIAN 0
#define HAVE_BSWAP_64 1
#define HAVE_BUILTIN_CHOOSE_EXPR 1
...
...
tools/configurator/configurator.c
View file @
53de95c6
...
...
@@ -89,6 +89,12 @@ static struct test tests[] = {
"static int __attribute__((unused)) func(int x) { return x; }"
},
{
"HAVE_ATTRIBUTE_USED"
,
OUTSIDE_MAIN
,
NULL
,
"static int __attribute__((used)) func(int x) { return x; }"
},
{
"HAVE_BACKTRACE"
,
DEFINES_FUNC
,
NULL
,
"#include <execinfo.h>
\n
"
"static int func(int x) {"
" void *bt[10];
\n
"
" return backtrace(bt, 10) < x;
\n
"
"}"
},
{
"HAVE_BIG_ENDIAN"
,
INSIDE_MAIN
|
EXECUTE
,
NULL
,
"union { int i; char c[sizeof(int)]; } u;
\n
"
"u.i = 0x01020304;
\n
"
...
...
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