Fix errors when building with DEBUG=2
Fixes #8306. Please define DEBUG in UserBuildConfig or Jamfiles if needed.
This commit is contained in:
@@ -9,8 +9,6 @@
|
|||||||
#include <Accelerant.h>
|
#include <Accelerant.h>
|
||||||
#include "video_overlay.h"
|
#include "video_overlay.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
|
|
||||||
status_t INIT_ACCELERANT(int fd);
|
status_t INIT_ACCELERANT(int fd);
|
||||||
ssize_t ACCELERANT_CLONE_INFO_SIZE(void);
|
ssize_t ACCELERANT_CLONE_INFO_SIZE(void);
|
||||||
void GET_ACCELERANT_CLONE_INFO(void *data);
|
void GET_ACCELERANT_CLONE_INFO(void *data);
|
||||||
|
|||||||
@@ -9,8 +9,6 @@
|
|||||||
#include <Accelerant.h>
|
#include <Accelerant.h>
|
||||||
#include "video_overlay.h"
|
#include "video_overlay.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
|
|
||||||
status_t INIT_ACCELERANT(int fd);
|
status_t INIT_ACCELERANT(int fd);
|
||||||
ssize_t ACCELERANT_CLONE_INFO_SIZE(void);
|
ssize_t ACCELERANT_CLONE_INFO_SIZE(void);
|
||||||
void GET_ACCELERANT_CLONE_INFO(void *data);
|
void GET_ACCELERANT_CLONE_INFO(void *data);
|
||||||
|
|||||||
@@ -11,8 +11,6 @@
|
|||||||
#include <Accelerant.h>
|
#include <Accelerant.h>
|
||||||
#include <video_overlay.h>
|
#include <video_overlay.h>
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
|
|
||||||
status_t INIT_ACCELERANT(int fd);
|
status_t INIT_ACCELERANT(int fd);
|
||||||
ssize_t ACCELERANT_CLONE_INFO_SIZE(void);
|
ssize_t ACCELERANT_CLONE_INFO_SIZE(void);
|
||||||
void GET_ACCELERANT_CLONE_INFO(void *data);
|
void GET_ACCELERANT_CLONE_INFO(void *data);
|
||||||
|
|||||||
@@ -259,7 +259,7 @@ AcpiUtDeleteInternalObj (
|
|||||||
/* Global Lock has extra semaphore */
|
/* Global Lock has extra semaphore */
|
||||||
|
|
||||||
(void) AcpiOsDeleteSemaphore (AcpiGbl_GlobalLockSemaphore);
|
(void) AcpiOsDeleteSemaphore (AcpiGbl_GlobalLockSemaphore);
|
||||||
AcpiGbl_GlobalLockSemaphore = NULL;
|
AcpiGbl_GlobalLockSemaphore = 0;
|
||||||
|
|
||||||
AcpiOsDeleteMutex (Object->Mutex.OsMutex);
|
AcpiOsDeleteMutex (Object->Mutex.OsMutex);
|
||||||
AcpiGbl_GlobalLockMutex = NULL;
|
AcpiGbl_GlobalLockMutex = NULL;
|
||||||
@@ -278,7 +278,7 @@ AcpiUtDeleteInternalObj (
|
|||||||
Object, Object->Event.OsSemaphore));
|
Object, Object->Event.OsSemaphore));
|
||||||
|
|
||||||
(void) AcpiOsDeleteSemaphore (Object->Event.OsSemaphore);
|
(void) AcpiOsDeleteSemaphore (Object->Event.OsSemaphore);
|
||||||
Object->Event.OsSemaphore = NULL;
|
Object->Event.OsSemaphore = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACPI_TYPE_METHOD:
|
case ACPI_TYPE_METHOD:
|
||||||
|
|||||||
@@ -283,7 +283,7 @@ AcpiUtInitGlobals (
|
|||||||
|
|
||||||
/* Global Lock support */
|
/* Global Lock support */
|
||||||
|
|
||||||
AcpiGbl_GlobalLockSemaphore = NULL;
|
AcpiGbl_GlobalLockSemaphore = 0;
|
||||||
AcpiGbl_GlobalLockMutex = NULL;
|
AcpiGbl_GlobalLockMutex = NULL;
|
||||||
AcpiGbl_GlobalLockAcquired = FALSE;
|
AcpiGbl_GlobalLockAcquired = FALSE;
|
||||||
AcpiGbl_GlobalLockHandle = 0;
|
AcpiGbl_GlobalLockHandle = 0;
|
||||||
|
|||||||
@@ -53,8 +53,6 @@
|
|||||||
#define mutex_unlock UNLOCK
|
#define mutex_unlock UNLOCK
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
|
|
||||||
#include "nbd.h"
|
#include "nbd.h"
|
||||||
|
|
||||||
#define DRV "nbd"
|
#define DRV "nbd"
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ THE SOFTWARE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include "Link.h"
|
#include "Link.h"
|
||||||
|
|||||||
@@ -14,8 +14,6 @@
|
|||||||
|
|
||||||
#include "Selectable.h"
|
#include "Selectable.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
|
|
||||||
// constructor
|
// constructor
|
||||||
Selection::Selection()
|
Selection::Selection()
|
||||||
: fSelected(20)
|
: fSelected(20)
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
#define UNICODE_INVALID 0xFFFD
|
#define UNICODE_INVALID 0xFFFD
|
||||||
|
|
||||||
#if defined(DEBUG) && DEBUG > 1
|
#if defined(DEBUG) && DEBUG > 1
|
||||||
|
# include <stdio.h>
|
||||||
# define DEBUG_PRINT_UTF8
|
# define DEBUG_PRINT_UTF8
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -228,6 +228,7 @@ static int on_text(const char bytes[], size_t len, void *user)
|
|||||||
if(vterm_unicode_is_combining(codepoints[i])) {
|
if(vterm_unicode_is_combining(codepoints[i])) {
|
||||||
/* See if the cursor has moved since */
|
/* See if the cursor has moved since */
|
||||||
if(state->pos.row == state->combine_pos.row && state->pos.col == state->combine_pos.col + state->combine_width) {
|
if(state->pos.row == state->combine_pos.row && state->pos.col == state->combine_pos.col + state->combine_width) {
|
||||||
|
unsigned saved_i = 0;
|
||||||
#ifdef DEBUG_GLYPH_COMBINE
|
#ifdef DEBUG_GLYPH_COMBINE
|
||||||
int printpos;
|
int printpos;
|
||||||
printf("DEBUG: COMBINING SPLIT GLYPH of chars {");
|
printf("DEBUG: COMBINING SPLIT GLYPH of chars {");
|
||||||
@@ -237,7 +238,6 @@ static int on_text(const char bytes[], size_t len, void *user)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Find where we need to append these combining chars */
|
/* Find where we need to append these combining chars */
|
||||||
unsigned saved_i = 0;
|
|
||||||
while(state->combine_chars[saved_i])
|
while(state->combine_chars[saved_i])
|
||||||
saved_i++;
|
saved_i++;
|
||||||
|
|
||||||
@@ -287,11 +287,13 @@ static int on_text(const char bytes[], size_t len, void *user)
|
|||||||
i--;
|
i--;
|
||||||
|
|
||||||
#ifdef DEBUG_GLYPH_COMBINE
|
#ifdef DEBUG_GLYPH_COMBINE
|
||||||
|
{
|
||||||
int printpos;
|
int printpos;
|
||||||
printf("DEBUG: COMBINED GLYPH of %d chars {", glyph_ends - glyph_starts);
|
printf("DEBUG: COMBINED GLYPH of %d chars {", glyph_ends - glyph_starts);
|
||||||
for(printpos = 0; printpos < glyph_ends - glyph_starts; printpos++)
|
for(printpos = 0; printpos < glyph_ends - glyph_starts; printpos++)
|
||||||
printf("U+%04x ", chars[printpos]);
|
printf("U+%04x ", chars[printpos]);
|
||||||
printf("}, onscreen width %d\n", width);
|
printf("}, onscreen width %d\n", width);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if(state->at_phantom || state->pos.col + width > THISROWWIDTH(state)) {
|
if(state->at_phantom || state->pos.col + width > THISROWWIDTH(state)) {
|
||||||
|
|||||||
@@ -9,7 +9,6 @@
|
|||||||
#define TOUCHPAD_PREF_H
|
#define TOUCHPAD_PREF_H
|
||||||
|
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
|
|
||||||
#include "touchpad_settings.h"
|
#include "touchpad_settings.h"
|
||||||
|
|||||||
@@ -21,7 +21,6 @@
|
|||||||
#include "TouchpadPref.h"
|
#include "TouchpadPref.h"
|
||||||
#include "touchpad_settings.h"
|
#include "touchpad_settings.h"
|
||||||
|
|
||||||
#define DEBUG 1
|
|
||||||
#include <Debug.h>
|
#include <Debug.h>
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
|
|||||||
Reference in New Issue
Block a user