Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libplist
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
pwn
libplist
Commits
0691e6e4
Commit
0691e6e4
authored
Oct 25, 2008
by
Jonathan Beck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add an option to strip off debug code
parent
113b2250
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
configure.ac
configure.ac
+7
-0
utils.c
src/utils.c
+3
-3
No files found.
configure.ac
View file @
0691e6e4
...
...
@@ -45,4 +45,11 @@ AC_ARG_ENABLE([dev-tools],
[build_dev_tools=false])
AM_CONDITIONAL(BUILD_DEV_TOOLS, test x$build_dev_tools = xtrue)
AC_ARG_ENABLE([debug-code],
[AS_HELP_STRING([--enable-debug-code],
[enable debug message reporting in library (default is yes)])],
[debug_code=true],
[debug_code=false])
AM_CONDITIONAL(STRIP_DEBUG_CODE, test x$debug_code = xfalse)
AC_OUTPUT(Makefile src/Makefile include/Makefile fdi/Makefile libiphone-1.0.pc)
src/utils.c
View file @
0691e6e4
...
...
@@ -39,7 +39,7 @@ void iphone_set_debug(int level)
void
log_debug_msg
(
const
char
*
format
,
...)
{
#ifndef STRIP_DEBUG
#ifndef STRIP_DEBUG
_CODE
va_list
args
;
/* run the real fprintf */
...
...
@@ -55,7 +55,7 @@ void log_debug_msg(const char *format, ...)
inline
void
log_debug_buffer
(
const
char
*
data
,
const
int
length
)
{
#ifndef STRIP_DEBUG
#ifndef STRIP_DEBUG
_CODE
/* run the real fprintf */
if
(
toto_debug
)
...
...
@@ -66,7 +66,7 @@ inline void log_debug_buffer(const char *data, const int length)
inline
void
dump_debug_buffer
(
const
char
*
file
,
const
char
*
data
,
const
int
length
)
{
#ifndef STRIP_DEBUG
#ifndef STRIP_DEBUG
_CODE
/* run the real fprintf */
if
(
toto_debug
)
{
...
...
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