Drop C/C++ DEBUG macro
...(that was defined iff OSL_DEBUG_LEVEL >= 2) and replace its uses with OSL_DEBUG_LEVEL directly Change-Id: I807c15a02cc8ced9852287df0afb4808761d19d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165067 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
This commit is contained in:
parent
03ab46c8a1
commit
9adcf67c9b
37 changed files with 92 additions and 99 deletions
|
@ -48,7 +48,7 @@ static const char* AppleRemoteDeviceName = "AppleIRController";
|
|||
- (void) setCookieMappingInDictionary: (NSMutableDictionary*) _cookieToButtonMapping {
|
||||
|
||||
// TODO : avoid such magics
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple Remote: setting 10.6 cookies" );
|
||||
#endif
|
||||
// 10.6.x Snow Leopard
|
||||
|
|
|
@ -111,7 +111,7 @@ static OSStatus hotKeyEventHandler(EventHandlerCallRef, EventRef, void*);
|
|||
defaultsKey = @"playhold";
|
||||
break;
|
||||
default:
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple Remote: Unknown global keyboard defaults key for button identifier %d", remoteButtonIdentifier);
|
||||
#endif
|
||||
break;
|
||||
|
|
|
@ -51,7 +51,7 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
|
|||
- (id) initWithDelegate: (id) _remoteControlDelegate {
|
||||
if ( (self = [super init]) ) {
|
||||
delegate = [_remoteControlDelegate retain];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl initWithDelegate ok");
|
||||
#endif
|
||||
}
|
||||
|
@ -64,7 +64,7 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
|
|||
}
|
||||
|
||||
- (void) setListeningToRemote: (BOOL) value {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl setListeningToRemote ok");
|
||||
#endif
|
||||
(void)value;
|
||||
|
@ -74,13 +74,13 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
|
|||
}
|
||||
|
||||
- (void) startListening: (id) sender {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl startListening ok");
|
||||
#endif
|
||||
(void)sender;
|
||||
}
|
||||
- (void) stopListening: (id) sender {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl stopListening ok");
|
||||
#endif
|
||||
(void)sender;
|
||||
|
@ -94,7 +94,7 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
|
|||
}
|
||||
|
||||
- (BOOL) sendsEventForButtonIdentifier: (RemoteControlEventIdentifier) identifier {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl: sending event for button identifier\n");
|
||||
#endif
|
||||
(void)identifier;
|
||||
|
@ -110,7 +110,7 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
|
|||
targetIdentifier /*value = AppleIRController -> OK */,
|
||||
kTargetApplicationIdentifier /*targetBundleIdentifier -> does not appear, since the peer is nil*/,
|
||||
nil];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple Remote: sendDistributedNotification ...");
|
||||
// Debug purpose: returns all the existing dictionary keys.
|
||||
NSEnumerator* itKey = [userInfo keyEnumerator];
|
||||
|
@ -134,13 +134,13 @@ NSString* kTargetApplicationIdentifier = @"TargetBundleIdentifier";
|
|||
|
||||
+ (void) sendFinishedNotificationForAppIdentifier: (NSString*) identifier {
|
||||
[self sendDistributedNotification:FINISHED_USING_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:identifier];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl: sendFinishedNotificationForAppIdentifier ...");
|
||||
#endif
|
||||
}
|
||||
+ (void) sendRequestForRemoteControlNotification {
|
||||
[self sendDistributedNotification:REQUEST_FOR_REMOTE_CONTROL_NOTIFICATION targetBundleIdentifier:nil];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple RemoteControl: sendRequestForRemoteControlNotification ...");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@
|
|||
- (id) initWithDelegate: (id) _remoteControlDelegate {
|
||||
if ( (self = [super initWithDelegate:_remoteControlDelegate]) ) {
|
||||
remoteControls = [[NSMutableArray alloc] init];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog( @"Apple Remote: ControlContainer initWithDelegate ok");
|
||||
}
|
||||
else {
|
||||
|
@ -61,7 +61,7 @@
|
|||
[remoteControl addObserver: self forKeyPath:@"listeningToRemote" options:NSKeyValueObservingOptionNew context:nil];
|
||||
toReturn = YES;
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
else {
|
||||
NSLog( @"Apple Remote: ControlContainer instantiateAndAddRemoteControlDeviceWithClass failed");
|
||||
toReturn = NO;
|
||||
|
@ -77,7 +77,7 @@
|
|||
- (void) reset {
|
||||
[self willChangeValueForKey:@"listeningToRemote"];
|
||||
[self didChangeValueForKey:@"listeningToRemote"];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
// debug purpose
|
||||
NSLog( @"Apple Remote: reset... (after listening)");
|
||||
#endif
|
||||
|
@ -107,7 +107,7 @@
|
|||
}
|
||||
|
||||
- (void) startListening: (id) sender {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"Apple Remote: start listening to events... ");
|
||||
#endif
|
||||
for(NSUInteger i=0; i < [remoteControls count]; i++) {
|
||||
|
@ -115,7 +115,7 @@
|
|||
}
|
||||
}
|
||||
- (void) stopListening: (id) sender {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"Apple Remote: stopListening to events... ");
|
||||
#endif
|
||||
for(NSUInteger i=0; i < [remoteControls count]; i++) {
|
||||
|
|
|
@ -56,7 +56,7 @@
|
|||
RemoteControlContainer* container = [[RemoteControlContainer alloc] initWithDelegate: remoteControlBehavior];
|
||||
|
||||
if ( [container instantiateAndAddRemoteControlDeviceWithClass: [AppleRemote class]] != 0 ) {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"[container instantiateAndAddRemoteControlDeviceWithClass: [AppleRemote class]] successful");
|
||||
}
|
||||
else {
|
||||
|
@ -65,7 +65,7 @@
|
|||
}
|
||||
|
||||
if ( [container instantiateAndAddRemoteControlDeviceWithClass: [GlobalKeyboardDevice class]] != 0 ) {
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"[container instantiateAndAddRemoteControlDeviceWithClass: [GlobalKeyboardDevice class]] successful");
|
||||
}
|
||||
else {
|
||||
|
@ -74,7 +74,7 @@
|
|||
}
|
||||
// to give the binding mechanism a chance to see the change of the attribute
|
||||
[self setValue: container forKey: @"remoteControl"];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"AppleRemoteMainController init done");
|
||||
#endif
|
||||
}
|
||||
|
@ -105,13 +105,13 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
|
|||
- (void) remoteButton: (RemoteControlEventIdentifier)buttonIdentifier pressedDown: (BOOL) pressedDown clickCount: (unsigned int)clickCount
|
||||
{
|
||||
(void)clickCount;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSString* pressed = @"";
|
||||
NSString* buttonName = nil;
|
||||
#endif
|
||||
if (pressedDown)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
pressed = @"(AppleRemoteMainController: button pressed)";
|
||||
|
||||
switch(buttonIdentifier)
|
||||
|
@ -137,12 +137,12 @@ SAL_WNODEPRECATED_DECLARATIONS_POP
|
|||
}
|
||||
else // not pressed
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
pressed = @"(AppleRemoteMainController: button released)";
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
//NSLog(@"Button %@ pressed %@", buttonName, pressed);
|
||||
NSString* clickCountString = @"";
|
||||
if (clickCount > 1) clickCountString = [NSString stringWithFormat: @"%d clicks", clickCount];
|
||||
|
|
|
@ -255,7 +255,7 @@ static bool impl_checkDependencies( const uno::Reference< uno::XComponentContext
|
|||
e.Context, anyEx );
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
sal_Int32 const nMax = 3;
|
||||
#else
|
||||
sal_Int32 const nMax = 2;
|
||||
|
@ -362,7 +362,7 @@ static bool impl_needsCompatCheck()
|
|||
pset->setPropertyValue("LastCompatibilityCheckID", result );
|
||||
Reference< util::XChangesBatch >( pset, UNO_QUERY_THROW )->commitChanges();
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
bNeedsCheck = true;
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ LanguageType EditView::CheckLanguage(
|
|||
aLangList[2] = rSettings.GetLanguageTag().getLanguageType();
|
||||
// en-US
|
||||
aLangList[3] = LANGUAGE_ENGLISH_US;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
lang::Locale a0( LanguageTag::convertToLocale( aLangList[0] ) );
|
||||
lang::Locale a1( LanguageTag::convertToLocale( aLangList[1] ) );
|
||||
lang::Locale a2( LanguageTag::convertToLocale( aLangList[2] ) );
|
||||
|
|
|
@ -1537,7 +1537,7 @@ bool ImpEditEngine::HasConvertibleTextPortion( LanguageType nSrcLang )
|
|||
if (nEnd > nStart) // empty para?
|
||||
++nStart;
|
||||
LanguageType nLangFound = mpEditEngine->GetLanguage( k, nStart ).nLang;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
lang::Locale aLocale( LanguageTag::convertToLocale( nLangFound ) );
|
||||
#endif
|
||||
bHasConvTxt = (nSrcLang == nLangFound) ||
|
||||
|
@ -1721,7 +1721,7 @@ void ImpEditEngine::ImpConvert( OUString &rConvTxt, LanguageType &rConvTxtLang,
|
|||
// of the text right to the cursor position
|
||||
const sal_Int32 nLangIdx = nEnd > nStart ? nStart + 1 : nStart;
|
||||
LanguageType nLangFound = mpEditEngine->GetLanguage( aCurStart.nPara, nLangIdx ).nLang;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
lang::Locale aLocale( LanguageTag::convertToLocale( nLangFound ) );
|
||||
#endif
|
||||
bool bLangOk = (nLangFound == nSrcLang) ||
|
||||
|
|
|
@ -70,7 +70,7 @@ namespace xml = com::sun::star::xml ;
|
|||
namespace
|
||||
{
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
|
||||
class InputStreamWrapper : public ::cppu::WeakImplHelper< io::XInputStream >
|
||||
{
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include "hwpeq.h"
|
||||
#include <iostream>
|
||||
|
||||
#ifndef DEBUG
|
||||
#if OSL_DEBUG_LEVEL < 2
|
||||
|
||||
#include "hcode.h"
|
||||
|
||||
|
@ -46,7 +46,7 @@ void Formula::makeMathML(Node *res)
|
|||
{
|
||||
Node *tmp = res;
|
||||
if( !tmp ) return;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:math xmlns:math=\"http://www.w3.org/1998/Math/MathML\">\n");
|
||||
#else
|
||||
|
@ -58,7 +58,7 @@ void Formula::makeMathML(Node *res)
|
|||
if( tmp->child )
|
||||
makeLines( tmp->child );
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:semantics/>\n");
|
||||
indo;
|
||||
|
@ -88,14 +88,14 @@ void Formula::makeLines(Node *res)
|
|||
void Formula::makeLine(Node *res)
|
||||
{
|
||||
if( !res ) return;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds; fprintf(stderr,"<math:mrow>\n");
|
||||
#else
|
||||
rstartEl("math:mrow", mxList);
|
||||
#endif
|
||||
if( res->child )
|
||||
makeExprList( res->child );
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde; fprintf(stderr,"</math:mrow>\n");
|
||||
#else
|
||||
rendEl("math:mrow");
|
||||
|
@ -126,7 +126,7 @@ void Formula::makeExpr(Node *res)
|
|||
switch( tmp->id ) {
|
||||
case ID_PRIMARYEXPR:
|
||||
if( tmp->next ){
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mrow>\n");
|
||||
#else
|
||||
|
@ -137,7 +137,7 @@ void Formula::makeExpr(Node *res)
|
|||
makePrimary(tmp);
|
||||
|
||||
if( tmp->next ){
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde; fprintf(stderr,"</math:mrow>\n");
|
||||
#else
|
||||
rendEl("math:mrow");
|
||||
|
@ -188,7 +188,7 @@ void Formula::makeIdentifier(Node *res)
|
|||
if( !tmp->value ) return;
|
||||
switch( tmp->id ){
|
||||
case ID_CHARACTER :
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mi>%s</math:mi>\n",tmp->value.get());
|
||||
indo;
|
||||
|
@ -200,7 +200,7 @@ void Formula::makeIdentifier(Node *res)
|
|||
break;
|
||||
case ID_STRING :
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
#else
|
||||
rstartEl("math:mi", mxList);
|
||||
reucstr(tmp->value.get(), strlen(tmp->value.get()));
|
||||
|
@ -209,7 +209,7 @@ void Formula::makeIdentifier(Node *res)
|
|||
}
|
||||
break;
|
||||
case ID_IDENTIFIER :
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mi>%s</math:mi>\n",
|
||||
getMathMLEntity(tmp->value.get()).c_str());
|
||||
|
@ -221,7 +221,7 @@ void Formula::makeIdentifier(Node *res)
|
|||
#endif
|
||||
break;
|
||||
case ID_NUMBER :
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mn>%s</math:mn>\n",tmp->value.get());
|
||||
indo;
|
||||
|
@ -234,7 +234,7 @@ void Formula::makeIdentifier(Node *res)
|
|||
case ID_OPERATOR :
|
||||
case ID_DELIMITER :
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds; fprintf(stderr,"<math:mo>%s</math:mo>\n",tmp->value.get()); indo;
|
||||
#else
|
||||
rstartEl("math:mo", mxList);
|
||||
|
@ -267,7 +267,7 @@ void Formula::makeSubSup(Node *res)
|
|||
Node *tmp = res;
|
||||
if( !tmp ) return;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
if( res->id == ID_SUBEXPR )
|
||||
fprintf(stderr,"<math:msub>\n");
|
||||
|
@ -295,7 +295,7 @@ void Formula::makeSubSup(Node *res)
|
|||
makeExpr(tmp->next);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
if( res->id == ID_SUBEXPR )
|
||||
fprintf(stderr,"</math:msub>\n");
|
||||
|
@ -318,7 +318,7 @@ void Formula::makeFraction(Node *res)
|
|||
Node *tmp = res;
|
||||
if( !tmp ) return;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mfrac>\n");
|
||||
#else
|
||||
|
@ -326,7 +326,7 @@ void Formula::makeFraction(Node *res)
|
|||
#endif
|
||||
|
||||
tmp = tmp->child;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mrow>\n");
|
||||
#else
|
||||
|
@ -338,7 +338,7 @@ void Formula::makeFraction(Node *res)
|
|||
else
|
||||
makeExprList(tmp);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
fprintf(stderr,"</math:mrow>\n");
|
||||
inds;
|
||||
|
@ -353,7 +353,7 @@ void Formula::makeFraction(Node *res)
|
|||
else
|
||||
makeExprList(tmp->next);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
fprintf(stderr,"</math:mrow>\n");
|
||||
inde;
|
||||
|
@ -371,7 +371,7 @@ void Formula::makeDecoration(Node *res)
|
|||
if( !tmp ) return;
|
||||
if( !strncmp(tmp->value.get(),"under", 5) )
|
||||
isover = 0;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
if( isover )
|
||||
fprintf(stderr,"<math:mover>\n");
|
||||
|
@ -392,7 +392,7 @@ void Formula::makeDecoration(Node *res)
|
|||
|
||||
makeBlock(tmp->next);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mo>%s</math:mo>\n",
|
||||
getMathMLEntity(tmp->value.get()).c_str());
|
||||
|
@ -403,7 +403,7 @@ void Formula::makeDecoration(Node *res)
|
|||
rendEl("math:mo");
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
if( isover )
|
||||
fprintf(stderr,"</math:mover>\n");
|
||||
|
@ -421,7 +421,7 @@ void Formula::makeRoot(Node *res)
|
|||
{
|
||||
Node *tmp = res;
|
||||
if( !tmp ) return;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
if( tmp->id == ID_SQRTEXPR )
|
||||
fprintf(stderr,"<math:msqrt>\n");
|
||||
|
@ -442,7 +442,7 @@ void Formula::makeRoot(Node *res)
|
|||
makeBlock(tmp->child->next);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
if( tmp->id == ID_SQRTEXPR )
|
||||
fprintf(stderr,"</math:msqrt>\n");
|
||||
|
@ -463,7 +463,7 @@ void Formula::makeParenth(Node *res)
|
|||
{
|
||||
Node *tmp = res;
|
||||
if( !tmp ) return;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mrow>\n");
|
||||
inds;
|
||||
|
@ -488,7 +488,7 @@ void Formula::makeParenth(Node *res)
|
|||
if( tmp->child )
|
||||
makeExprList(tmp->child);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
fprintf(stderr,"</math:mrow>\n");
|
||||
inds;
|
||||
|
@ -514,7 +514,7 @@ void Formula::makeParenth(Node *res)
|
|||
void Formula::makeFence(Node *res)
|
||||
{
|
||||
Node *tmp = res->child;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mfenced open=\"%s\" close=\"%s\">\n",
|
||||
getMathMLEntity(tmp->value.get()).c_str(),
|
||||
|
@ -530,7 +530,7 @@ void Formula::makeFence(Node *res)
|
|||
|
||||
makeExprList(tmp->next);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
fprintf(stderr,"</math:mfenced>\n");
|
||||
#else
|
||||
|
@ -545,7 +545,7 @@ void Formula::makeBracket(Node *res)
|
|||
|
||||
void Formula::makeBlock(Node *res)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inds;
|
||||
fprintf(stderr,"<math:mrow>\n");
|
||||
#else
|
||||
|
@ -555,7 +555,7 @@ void Formula::makeBlock(Node *res)
|
|||
if( res->child )
|
||||
makeExprList(res->child);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inde;
|
||||
fprintf(stderr,"</math:mrow>\n");
|
||||
#else
|
||||
|
|
|
@ -360,7 +360,7 @@ const struct FormulaEntry FormulaMapTab[] = {
|
|||
|
||||
};
|
||||
|
||||
#ifndef DEBUG
|
||||
#if OSL_DEBUG_LEVEL < 2
|
||||
hchar_string getMathMLEntity(const char *tex)
|
||||
{
|
||||
static const size_t tabSize = SAL_N_ELEMENTS(FormulaMapTab);
|
||||
|
|
|
@ -104,7 +104,7 @@ static void getPlatformSystemLanguageImpl( LanguageType& rSystemLanguage,
|
|||
nLang = LanguageTag( *procLocale ).makeFallback().getLanguageType();
|
||||
OSL_DOUBLE_CHECKED_LOCKING_MEMORY_BARRIER();
|
||||
rSystemLanguage = nLang;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
if ( rSystemLanguage == LANGUAGE_DONTKNOW )
|
||||
fprintf( stderr, "intnunx.cxx: failed to convert osl_getProcessLocale() language to system language.\n" );
|
||||
#endif
|
||||
|
|
|
@ -29,7 +29,7 @@ VS_VERSION_INFO VERSIONINFO
|
|||
PRODUCTVERSION VERSION, SUBVERSION, MICROVERSION, VERVARIANT
|
||||
FILEFLAGSMASK 0x3F
|
||||
FILEFLAGS
|
||||
#if defined(DEBUG)
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
VS_FF_DEBUG |
|
||||
#endif
|
||||
#ifdef VER_PREL
|
||||
|
|
|
@ -118,7 +118,7 @@ void CustomShapeProperties::pushToPropSet(
|
|||
"found property map for preset: " << mnShapePresetType);
|
||||
|
||||
aPropertyMap = maPresetDataMap[mnShapePresetType];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
aPropertyMap.dumpCode( aPropertyMap.makePropertySet() );
|
||||
#endif
|
||||
}
|
||||
|
@ -372,7 +372,7 @@ void CustomShapeProperties::pushToPropSet(
|
|||
aPropertyMap.setProperty( PROP_Extrusion, aExtrusionSequence);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
// Note that the script oox/source/drawingml/customshapes/generatePresetsData.pl looks
|
||||
// for these ==cscode== and ==csdata== markers, so don't "clean up" these SAL_INFOs.
|
||||
SAL_INFO("oox.cscode", "==cscode== begin");
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
set -o errexit
|
||||
|
||||
# oox needs to be build with dbglevel=2 so that DEBUG is defined.
|
||||
# oox needs to be build with dbglevel=2 so that OSL_DEBUG_LEVEL=2 is defined.
|
||||
|
||||
make oox.clean && make oox dbglevel=2
|
||||
|
||||
|
|
|
@ -2644,7 +2644,7 @@ HtmlTextBoxModel::HtmlTextBoxModel()
|
|||
bool
|
||||
HtmlTextBoxModel::importBinaryModel( BinaryInputStream& rInStrm )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
OUString sStringContents = rInStrm.readUnicodeArray( rInStrm.size() );
|
||||
// in msocximex ( where this is ported from, it appears *nothing* is read
|
||||
// from the control stream ), surely there is some useful info there ?
|
||||
|
|
|
@ -337,7 +337,7 @@ void CustomAnimationPresets::importResources()
|
|||
|
||||
void CustomAnimationPresets::importPresets( const Reference< XMultiServiceFactory >& xConfigProvider, const OUString& rNodePath, PresetCategoryList& rPresetMap )
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
OUString aMissedPresetIds;
|
||||
#endif
|
||||
|
||||
|
@ -370,7 +370,7 @@ void CustomAnimationPresets::importPresets( const Reference< XMultiServiceFactor
|
|||
{
|
||||
aEffectsList.push_back( pEffect );
|
||||
}
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
else
|
||||
{
|
||||
aMissedPresetIds += OUString(rEffectName);
|
||||
|
@ -388,7 +388,7 @@ void CustomAnimationPresets::importPresets( const Reference< XMultiServiceFactor
|
|||
TOOLS_WARN_EXCEPTION( "sd", "sd::CustomAnimationPresets::importPresets()" );
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
SAL_WARN_IF(!aMissedPresetIds.isEmpty(), "sd", "sd::CustomAnimationPresets::importPresets(), invalid preset id: "
|
||||
<< aMissedPresetIds);
|
||||
#endif
|
||||
|
|
|
@ -1585,7 +1585,7 @@ void PowerPointExport::ImplWritePPTXLayout(sal_Int32 nOffset, sal_uInt32 nMaster
|
|||
Reference< drawing::XDrawPages > xDrawPages = xDPS->getDrawPages();
|
||||
Reference< drawing::XDrawPage > xSlide = xDrawPages->insertNewByIndex(xDrawPages->getCount());
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
if (xSlide.is())
|
||||
printf("new page created\n");
|
||||
#endif
|
||||
|
|
|
@ -107,7 +107,7 @@ void SAL_CALL ShellStackGuard::disposing (
|
|||
|
||||
IMPL_LINK(ShellStackGuard, TimeoutHandler, Timer*, pIdle, void)
|
||||
{
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
OSL_ASSERT(pIdle==&maPrinterPollingIdle);
|
||||
#else
|
||||
(void)pIdle;
|
||||
|
|
|
@ -72,7 +72,7 @@ const int VISIO_END = 32;
|
|||
// ".ppam", // Office PowerPoint 2007 macro-enabled XML add-in
|
||||
// ".ppsm", // Office PowerPoint 2007 macro-enabled XML show
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inline void OutputDebugStringFormatW( LPCWSTR pFormat, ... )
|
||||
{
|
||||
WCHAR buffer[1024];
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include <strsafe.h>
|
||||
#include <systools/win32/uwinapi.h>
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
|
||||
{
|
||||
WCHAR buffer[1024];
|
||||
|
|
|
@ -50,7 +50,7 @@ static bool GetMsiPropW( MSIHANDLE hMSI, const wchar_t* pPropName, wchar_t** ppV
|
|||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
|
||||
{
|
||||
WCHAR buffer[1024];
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
#include "seterror.hxx"
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inline void OutputDebugStringFormatW( PCWSTR pFormat, ... )
|
||||
{
|
||||
WCHAR buffer[1024];
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
#include <vcl/outdev.hxx>
|
||||
#include <vcl/ptrstyle.hxx>
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
#include <sfx2/sidebar/Tools.hxx>
|
||||
#endif
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@
|
|||
#include <tools/json_writer.hxx>
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
#include <sfx2/sidebar/Tools.hxx>
|
||||
#include <sfx2/sidebar/Deck.hxx>
|
||||
#endif
|
||||
|
|
|
@ -908,7 +908,7 @@ void SidebarController::SwitchToDeck (
|
|||
if ( ! mpCurrentDeck)
|
||||
return;
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
// Show the context name in the deck title bar.
|
||||
DeckTitleBar* pDebugTitleBar = mpCurrentDeck->GetTitleBar();
|
||||
if (pDebugTitleBar)
|
||||
|
|
|
@ -75,7 +75,7 @@ SidebarToolBox::SidebarToolBox (vcl::Window* pParentWindow)
|
|||
mxImageController = sfx2::sidebar::ControllerFactory::CreateImageController(xFrame, xWidget);
|
||||
}
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
SetText(OUString("SidebarToolBox"));
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -82,7 +82,7 @@ TabBar::TabBar(vcl::Window* pParentWindow,
|
|||
|
||||
mxMenuButton->connect_toggled(LINK(this, TabBar, OnToolboxClicked));
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
SetText(OUString("TabBar"));
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -74,7 +74,7 @@ std::wstring getShortPathName(const std::wstring& aLongName);
|
|||
|
||||
LCID LocaleSetToLCID(const LocaleSet_t& Locale);
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
inline void OutputDebugStringFormatW(LPCWSTR pFormat, ...)
|
||||
{
|
||||
WCHAR buffer[1024];
|
||||
|
|
|
@ -254,13 +254,6 @@ gb_GLOBALDEFS += -DSAL_LOG_INFO \
|
|||
|
||||
endif
|
||||
|
||||
ifneq ($(gb_DEBUGLEVEL),0)
|
||||
ifneq ($(gb_DEBUGLEVEL),1) # 2 or more
|
||||
gb_GLOBALDEFS += -DDEBUG \
|
||||
|
||||
endif
|
||||
endif
|
||||
|
||||
gb_GLOBALDEFS += \
|
||||
$(call gb_Helper_define_if_set,\
|
||||
DISABLE_DYNLOADING \
|
||||
|
|
|
@ -77,7 +77,7 @@ in this Software without prior written authorization from the X Consortium.
|
|||
#define ELIFFALSE 16 /* pseudo value --- never matched */
|
||||
#define ELIFGUESSFALSE 19 /* pseudo value --- never matched */
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
extern int _debugmask;
|
||||
/*
|
||||
* debug levels are:
|
||||
|
|
|
@ -83,7 +83,7 @@ typedef _W64 int ssize_t;
|
|||
#define USE_CHMOD 1
|
||||
#endif
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
int _debugmask;
|
||||
#endif
|
||||
|
||||
|
@ -309,7 +309,7 @@ int main(int argc, char **argv)
|
|||
case 'v':
|
||||
if (endmarker) break;
|
||||
verbose = TRUE;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
if (argv[0][2])
|
||||
_debugmask = atoi(argv[0]+2);
|
||||
#endif
|
||||
|
|
|
@ -343,14 +343,14 @@ private:
|
|||
std::map< const SfxItemSet*, OUString> maParentNames;
|
||||
// #i86923#
|
||||
std::unique_ptr<SfxItemSet> mpIgnorableItems;
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
sal_Int32 mnCount;
|
||||
#endif
|
||||
public:
|
||||
// #i86923#
|
||||
explicit StylePoolImpl( SfxItemSet const * pIgnorableItems )
|
||||
:
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
mnCount(0),
|
||||
#endif
|
||||
mpIgnorableItems( pIgnorableItems != nullptr
|
||||
|
@ -416,14 +416,14 @@ std::shared_ptr<SfxItemSet> StylePoolImpl::insertItemSet( const SfxItemSet& rSet
|
|||
{
|
||||
pCurNode->setItemSet( rSet );
|
||||
bNonShareable = false; // to avoid a double insertion
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
++mnCount;
|
||||
#endif
|
||||
}
|
||||
// If rSet contains at least one non poolable item, a new itemset has to be inserted
|
||||
if( bNonShareable )
|
||||
pCurNode->setItemSet( rSet );
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
{
|
||||
sal_Int32 nCheck = -1;
|
||||
std::unique_ptr<IStylePoolIteratorAccess> pIter = createIterator(false,false);
|
||||
|
|
|
@ -1078,7 +1078,7 @@ bool AquaSalInstance::SVMainHook(int* pnInit)
|
|||
osl_getSystemPathFromFileURL( aExeURL.pData, &aExe.pData );
|
||||
OString aByteExe( OUStringToOString( aExe, osl_getThreadTextEncoding() ) );
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
aByteExe += OString ( " NSAccessibilityDebugLogLevel 1" );
|
||||
const char* pArgv[] = { aByteExe.getStr(), NULL };
|
||||
NSApplicationMain( 3, pArgv );
|
||||
|
|
|
@ -391,7 +391,7 @@
|
|||
// workaround : declare remoteControl instance variable as public in RemoteMainController.m
|
||||
|
||||
[pAppleRemoteCtrl->remoteControl startListening: self];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"Apple Remote will become active - Using remote controls");
|
||||
#endif
|
||||
}
|
||||
|
@ -419,7 +419,7 @@
|
|||
// workaround : declare remoteControl instance variable as public in RemoteMainController.m
|
||||
|
||||
[pAppleRemoteCtrl->remoteControl stopListening: self];
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
NSLog(@"Apple Remote will resign active - Releasing remote controls");
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -133,7 +133,7 @@ bool FcPreMatchSubstitution::FindFontSubstitute(vcl::font::FontSelectPattern &rF
|
|||
|
||||
const bool bHaveSubstitute = !uselessmatch( rFontSelData, aOut );
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
std::ostringstream oss;
|
||||
oss << "FcPreMatchSubstitution \""
|
||||
<< rFontSelData.maTargetName
|
||||
|
@ -191,7 +191,7 @@ bool FcGlyphFallbackSubstitution::FindFontSubstitute(vcl::font::FontSelectPatter
|
|||
|
||||
const bool bHaveSubstitute = !uselessmatch( rFontSelData, aOut );
|
||||
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
std::ostringstream oss;
|
||||
oss << "FcGFSubstitution \""
|
||||
<< rFontSelData.maTargetName
|
||||
|
|
|
@ -186,7 +186,7 @@ void X11SalGraphics::GetResolution( sal_Int32 &rDPIX, sal_Int32 &rDPIY ) // cons
|
|||
|
||||
// different x- and y- resolutions are usually artifacts of
|
||||
// a wrongly calculated screen size.
|
||||
#ifdef DEBUG
|
||||
#if OSL_DEBUG_LEVEL >= 2
|
||||
SAL_INFO("vcl.gdi", "Forcing Resolution from "
|
||||
<< std::hex << rDPIX
|
||||
<< std::dec << rDPIX
|
||||
|
|
Loading…
Reference in a new issue