mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-09 08:14:58 +01:00
Update libAAF (upstream v0.5-2-g4dfb754)
This commit is contained in:
parent
f5689f37b6
commit
c5db23a15c
13 changed files with 716 additions and 429 deletions
|
|
@ -16,6 +16,7 @@ laaf_new_debug (void)
|
|||
|
||||
dbg->debug_callback = &laaf_debug_callback;
|
||||
dbg->fp = stdout;
|
||||
dbg->ansicolor = 0;
|
||||
|
||||
return dbg;
|
||||
}
|
||||
|
|
@ -42,6 +43,7 @@ laaf_debug_callback (struct dbg* dbg, void* ctxdata, int libid, int type, const
|
|||
const char* color = "";
|
||||
|
||||
if (dbg->fp == NULL) {
|
||||
DBG_BUFFER_RESET (dbg);
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -70,25 +72,27 @@ laaf_debug_callback (struct dbg* dbg, void* ctxdata, int libid, int type, const
|
|||
switch (type) {
|
||||
case VERB_ERROR:
|
||||
typestr = " error ";
|
||||
color = ANSI_COLOR_RED;
|
||||
color = ANSI_COLOR_RED (dbg);
|
||||
break;
|
||||
case VERB_WARNING:
|
||||
typestr = "warning";
|
||||
color = ANSI_COLOR_YELLOW;
|
||||
color = ANSI_COLOR_YELLOW (dbg);
|
||||
break;
|
||||
case VERB_DEBUG:
|
||||
typestr = " debug ";
|
||||
color = ANSI_COLOR_DARKGREY;
|
||||
color = ANSI_COLOR_DARKGREY (dbg);
|
||||
break;
|
||||
}
|
||||
|
||||
if (libid != DEBUG_SRC_ID_TRACE && libid != DEBUG_SRC_ID_DUMP) {
|
||||
fprintf (dbg->fp, "[%s%s%s] ", color, typestr, ANSI_COLOR_RESET);
|
||||
fprintf (dbg->fp, "%s%s:%i in %s()%s : ", ANSI_COLOR_DARKGREY, srcfile, lineno, srcfunc, ANSI_COLOR_RESET);
|
||||
fprintf (dbg->fp, "[%s%s%s] ", color, typestr, ANSI_COLOR_RESET (dbg));
|
||||
fprintf (dbg->fp, "%s%s:%i in %s()%s : ", ANSI_COLOR_DARKGREY (dbg), srcfile, lineno, srcfunc, ANSI_COLOR_RESET (dbg));
|
||||
}
|
||||
|
||||
fprintf (dbg->fp, "%s\n", msg);
|
||||
|
||||
DBG_BUFFER_RESET (dbg);
|
||||
|
||||
/* avoids -Wunused-parameter -Wunused-but-set-variable */
|
||||
(void)aafi;
|
||||
(void)aafd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue