mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 07:02:44 +00:00 
			
		
		
		
	Everywhere: Remove unnecessary debug comments.
It would be tempting to uncomment these statements, but that won't work
with the new changes.
This was done with the following commands:
    find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/#define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/#define/ { toggle = 1 }' {} \;
    find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec awk -i inplace '$0 !~ /\/\/ #define/ { if (!toggle) { print; } else { toggle = !toggle } } ; $0 ~/\/\/ #define/ { toggle = 1 }' {} \;
			
			
This commit is contained in:
		
							parent
							
								
									1a3a0836c0
								
							
						
					
					
						commit
						acdcf59a33
					
				
					 90 changed files with 0 additions and 200 deletions
				
			
		|  | @ -31,8 +31,6 @@ | ||||||
| #include <AK/StringImpl.h> | #include <AK/StringImpl.h> | ||||||
| #include <AK/kmalloc.h> | #include <AK/kmalloc.h> | ||||||
| 
 | 
 | ||||||
| //#define DEBUG_STRINGIMPL
 |  | ||||||
| 
 |  | ||||||
| #ifdef DEBUG_STRINGIMPL | #ifdef DEBUG_STRINGIMPL | ||||||
| unsigned g_stringimpl_count; | unsigned g_stringimpl_count; | ||||||
| static HashTable<StringImpl*>* g_all_live_stringimpls; | static HashTable<StringImpl*>* g_all_live_stringimpls; | ||||||
|  |  | ||||||
|  | @ -34,8 +34,6 @@ | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| #include <Kernel/VM/TypedMapping.h> | #include <Kernel/VM/TypedMapping.h> | ||||||
| 
 | 
 | ||||||
| //#define MULTIPROCESSOR_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| OwnPtr<MultiProcessorParser> MultiProcessorParser::autodetect() | OwnPtr<MultiProcessorParser> MultiProcessorParser::autodetect() | ||||||
|  |  | ||||||
|  | @ -34,8 +34,6 @@ | ||||||
| #include <Kernel/IO.h> | #include <Kernel/IO.h> | ||||||
| #include <Kernel/TTY/VirtualConsole.h> | #include <Kernel/TTY/VirtualConsole.h> | ||||||
| 
 | 
 | ||||||
| //#define KEYBOARD_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| #define IRQ_KEYBOARD 1 | #define IRQ_KEYBOARD 1 | ||||||
|  |  | ||||||
|  | @ -49,8 +49,6 @@ namespace Kernel { | ||||||
| #define PS2MOUSE_INTELLIMOUSE_ID 0x03 | #define PS2MOUSE_INTELLIMOUSE_ID 0x03 | ||||||
| #define PS2MOUSE_INTELLIMOUSE_EXPLORER_ID 0x04 | #define PS2MOUSE_INTELLIMOUSE_EXPLORER_ID 0x04 | ||||||
| 
 | 
 | ||||||
| //#define PS2MOUSE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| static AK::Singleton<PS2MouseDevice> s_the; | static AK::Singleton<PS2MouseDevice> s_the; | ||||||
| 
 | 
 | ||||||
| PS2MouseDevice::PS2MouseDevice() | PS2MouseDevice::PS2MouseDevice() | ||||||
|  |  | ||||||
|  | @ -33,8 +33,6 @@ | ||||||
| #include <Kernel/VM/AnonymousVMObject.h> | #include <Kernel/VM/AnonymousVMObject.h> | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| 
 | 
 | ||||||
| //#define SB16_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| #define SB16_DEFAULT_IRQ 5 | #define SB16_DEFAULT_IRQ 5 | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -33,9 +33,6 @@ | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| 
 | 
 | ||||||
| #define UHCI_ENABLED 1 | #define UHCI_ENABLED 1 | ||||||
| //#define UHCI_DEBUG
 |  | ||||||
| //#define UHCI_VERBOSE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| static constexpr u8 MAXIMUM_NUMBER_OF_TDS = 128; // Upper pool limit. This consumes the second page we have allocated
 | static constexpr u8 MAXIMUM_NUMBER_OF_TDS = 128; // Upper pool limit. This consumes the second page we have allocated
 | ||||||
| static constexpr u8 MAXIMUM_NUMBER_OF_QHS = 64; | static constexpr u8 MAXIMUM_NUMBER_OF_QHS = 64; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -53,8 +53,6 @@ namespace Kernel { | ||||||
| #define VMWARE_PORT 0x5658 | #define VMWARE_PORT 0x5658 | ||||||
| #define VMWARE_PORT_HIGHBANDWIDTH 0x5659 | #define VMWARE_PORT_HIGHBANDWIDTH 0x5659 | ||||||
| 
 | 
 | ||||||
| //#define VMWAREBACKDOOR_DEBUG
 |  | ||||||
| 
 |  | ||||||
| inline void vmware_out(VMWareCommand& command) | inline void vmware_out(VMWareCommand& command) | ||||||
| { | { | ||||||
|     command.magic = VMWARE_MAGIC; |     command.magic = VMWARE_MAGIC; | ||||||
|  |  | ||||||
|  | @ -28,8 +28,6 @@ | ||||||
| #include <Kernel/FileSystem/BlockBasedFileSystem.h> | #include <Kernel/FileSystem/BlockBasedFileSystem.h> | ||||||
| #include <Kernel/Process.h> | #include <Kernel/Process.h> | ||||||
| 
 | 
 | ||||||
| //#define BBFS_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| struct CacheEntry { | struct CacheEntry { | ||||||
|  |  | ||||||
|  | @ -37,9 +37,6 @@ | ||||||
| #include <Kernel/UnixTypes.h> | #include <Kernel/UnixTypes.h> | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define EXT2_DEBUG
 |  | ||||||
| //#define EXT2_VERY_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static const size_t max_link_count = 65535; | static const size_t max_link_count = 65535; | ||||||
|  |  | ||||||
|  | @ -34,8 +34,6 @@ | ||||||
| #include <Kernel/Process.h> | #include <Kernel/Process.h> | ||||||
| #include <Kernel/Thread.h> | #include <Kernel/Thread.h> | ||||||
| 
 | 
 | ||||||
| //#define FIFO_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static AK::Singleton<Lockable<HashTable<FIFO*>>> s_table; | static AK::Singleton<Lockable<HashTable<FIFO*>>> s_table; | ||||||
|  |  | ||||||
|  | @ -61,8 +61,6 @@ | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define PROCFS_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| enum ProcParentDirectory { | enum ProcParentDirectory { | ||||||
|  |  | ||||||
|  | @ -38,8 +38,6 @@ | ||||||
| #include <Kernel/Process.h> | #include <Kernel/Process.h> | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define VFS_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static AK::Singleton<VFS> s_the; | static AK::Singleton<VFS> s_the; | ||||||
|  |  | ||||||
|  | @ -28,8 +28,6 @@ | ||||||
| 
 | 
 | ||||||
| #include <AK/Types.h> | #include <AK/Types.h> | ||||||
| 
 | 
 | ||||||
| //#define KMALLOC_DEBUG_LARGE_ALLOCATIONS
 |  | ||||||
| 
 |  | ||||||
| #define KMALLOC_SCRUB_BYTE 0xbb | #define KMALLOC_SCRUB_BYTE 0xbb | ||||||
| #define KFREE_SCRUB_BYTE 0xaa | #define KFREE_SCRUB_BYTE 0xaa | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -41,9 +41,6 @@ | ||||||
| #include <Kernel/VM/PageDirectory.h> | #include <Kernel/VM/PageDirectory.h> | ||||||
| #include <Kernel/VM/TypedMapping.h> | #include <Kernel/VM/TypedMapping.h> | ||||||
| 
 | 
 | ||||||
| //#define APIC_DEBUG
 |  | ||||||
| //#define APIC_SMP_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #define IRQ_APIC_TIMER (0xfc - IRQ_VECTOR_BASE) | #define IRQ_APIC_TIMER (0xfc - IRQ_VECTOR_BASE) | ||||||
| #define IRQ_APIC_IPI (0xfd - IRQ_VECTOR_BASE) | #define IRQ_APIC_IPI (0xfd - IRQ_VECTOR_BASE) | ||||||
| #define IRQ_APIC_ERR (0xfe - IRQ_VECTOR_BASE) | #define IRQ_APIC_ERR (0xfe - IRQ_VECTOR_BASE) | ||||||
|  |  | ||||||
|  | @ -34,8 +34,6 @@ | ||||||
| #include <Kernel/Interrupts/InterruptManagement.h> | #include <Kernel/Interrupts/InterruptManagement.h> | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| 
 | 
 | ||||||
| //#define IOAPIC_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #define IOAPIC_REDIRECTION_ENTRY_OFFSET 0x10 | #define IOAPIC_REDIRECTION_ENTRY_OFFSET 0x10 | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| enum DeliveryMode { | enum DeliveryMode { | ||||||
|  |  | ||||||
|  | @ -29,8 +29,6 @@ | ||||||
| #include <Kernel/Interrupts/IRQHandler.h> | #include <Kernel/Interrupts/IRQHandler.h> | ||||||
| #include <Kernel/Interrupts/InterruptManagement.h> | #include <Kernel/Interrupts/InterruptManagement.h> | ||||||
| 
 | 
 | ||||||
| //#define IRQ_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| IRQHandler::IRQHandler(u8 irq) | IRQHandler::IRQHandler(u8 irq) | ||||||
|  |  | ||||||
|  | @ -32,7 +32,6 @@ | ||||||
| #include <Kernel/Interrupts/PIC.h> | #include <Kernel/Interrupts/PIC.h> | ||||||
| #include <Kernel/Interrupts/SharedIRQHandler.h> | #include <Kernel/Interrupts/SharedIRQHandler.h> | ||||||
| 
 | 
 | ||||||
| //#define INTERRUPT_DEBUG
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| void SharedIRQHandler::initialize(u8 interrupt_number) | void SharedIRQHandler::initialize(u8 interrupt_number) | ||||||
|  |  | ||||||
|  | @ -30,8 +30,6 @@ | ||||||
| #include <Kernel/Net/E1000NetworkAdapter.h> | #include <Kernel/Net/E1000NetworkAdapter.h> | ||||||
| #include <Kernel/Thread.h> | #include <Kernel/Thread.h> | ||||||
| 
 | 
 | ||||||
| //#define E1000_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| // clang-format off
 | // clang-format off
 | ||||||
|  |  | ||||||
|  | @ -43,8 +43,6 @@ | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| #include <LibC/sys/ioctl_numbers.h> | #include <LibC/sys/ioctl_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define IPV4_SOCKET_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static AK::Singleton<Lockable<HashTable<IPv4Socket*>>> s_table; | static AK::Singleton<Lockable<HashTable<IPv4Socket*>>> s_table; | ||||||
|  |  | ||||||
|  | @ -35,8 +35,6 @@ | ||||||
| #include <Kernel/UnixTypes.h> | #include <Kernel/UnixTypes.h> | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define DEBUG_LOCAL_SOCKET
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static AK::Singleton<Lockable<InlineLinkedList<LocalSocket>>> s_list; | static AK::Singleton<Lockable<InlineLinkedList<LocalSocket>>> s_list; | ||||||
|  |  | ||||||
|  | @ -40,15 +40,6 @@ | ||||||
| #include <Kernel/Net/UDPSocket.h> | #include <Kernel/Net/UDPSocket.h> | ||||||
| #include <Kernel/Process.h> | #include <Kernel/Process.h> | ||||||
| 
 | 
 | ||||||
| //#define NETWORK_TASK_DEBUG
 |  | ||||||
| //#define ETHERNET_DEBUG
 |  | ||||||
| //#define ETHERNET_VERY_DEBUG
 |  | ||||||
| //#define ARP_DEBUG
 |  | ||||||
| //#define IPV4_DEBUG
 |  | ||||||
| //#define ICMP_DEBUG
 |  | ||||||
| //#define UDP_DEBUG
 |  | ||||||
| //#define TCP_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static void handle_arp(const EthernetFrameHeader&, size_t frame_size); | static void handle_arp(const EthernetFrameHeader&, size_t frame_size); | ||||||
|  |  | ||||||
|  | @ -28,8 +28,6 @@ | ||||||
| #include <Kernel/IO.h> | #include <Kernel/IO.h> | ||||||
| #include <Kernel/Net/RTL8139NetworkAdapter.h> | #include <Kernel/Net/RTL8139NetworkAdapter.h> | ||||||
| 
 | 
 | ||||||
| //#define RTL8139_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| #define REG_MAC 0x00 | #define REG_MAC 0x00 | ||||||
|  |  | ||||||
|  | @ -30,8 +30,6 @@ | ||||||
| #include <Kernel/Net/Routing.h> | #include <Kernel/Net/Routing.h> | ||||||
| #include <Kernel/Thread.h> | #include <Kernel/Thread.h> | ||||||
| 
 | 
 | ||||||
| //#define ROUTING_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static AK::Singleton<Lockable<HashMap<IPv4Address, MACAddress>>> s_arp_table; | static AK::Singleton<Lockable<HashMap<IPv4Address, MACAddress>>> s_arp_table; | ||||||
|  |  | ||||||
|  | @ -35,8 +35,6 @@ | ||||||
| #include <Kernel/UnixTypes.h> | #include <Kernel/UnixTypes.h> | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define SOCKET_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| KResultOr<NonnullRefPtr<Socket>> Socket::create(int domain, int type, int protocol) | KResultOr<NonnullRefPtr<Socket>> Socket::create(int domain, int type, int protocol) | ||||||
|  |  | ||||||
|  | @ -36,8 +36,6 @@ | ||||||
| #include <Kernel/Process.h> | #include <Kernel/Process.h> | ||||||
| #include <Kernel/Random.h> | #include <Kernel/Random.h> | ||||||
| 
 | 
 | ||||||
| //#define TCP_SOCKET_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| void TCPSocket::for_each(Function<void(const TCPSocket&)> callback) | void TCPSocket::for_each(Function<void(const TCPSocket&)> callback) | ||||||
|  |  | ||||||
|  | @ -29,8 +29,6 @@ | ||||||
| #include <Kernel/PCI/Access.h> | #include <Kernel/PCI/Access.h> | ||||||
| #include <Kernel/PCI/IOAccess.h> | #include <Kernel/PCI/IOAccess.h> | ||||||
| 
 | 
 | ||||||
| //#define PCI_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| namespace PCI { | namespace PCI { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -70,8 +70,6 @@ namespace Kernel { | ||||||
| #define PCI_MAX_FUNCTIONS_PER_DEVICE 8 | #define PCI_MAX_FUNCTIONS_PER_DEVICE 8 | ||||||
| // clang-format on
 | // clang-format on
 | ||||||
| 
 | 
 | ||||||
| //#define PCI_DEBUG 1
 |  | ||||||
| 
 |  | ||||||
| namespace PCI { | namespace PCI { | ||||||
| struct ID { | struct ID { | ||||||
|     u16 vendor_id { 0 }; |     u16 vendor_id { 0 }; | ||||||
|  |  | ||||||
|  | @ -30,8 +30,6 @@ | ||||||
| #include <Kernel/PCI/MMIOAccess.h> | #include <Kernel/PCI/MMIOAccess.h> | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| 
 | 
 | ||||||
| //#define PCI_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| namespace PCI { | namespace PCI { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -56,11 +56,6 @@ | ||||||
| #include <LibC/errno_numbers.h> | #include <LibC/errno_numbers.h> | ||||||
| #include <LibC/limits.h> | #include <LibC/limits.h> | ||||||
| 
 | 
 | ||||||
| //#define DEBUG_IO
 |  | ||||||
| //#define DEBUG_POLL_SELECT
 |  | ||||||
| //#define PROCESS_DEBUG
 |  | ||||||
| //#define SIGNAL_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static void create_signal_trampolines(); | static void create_signal_trampolines(); | ||||||
|  |  | ||||||
|  | @ -36,10 +36,6 @@ | ||||||
| #include <Kernel/Time/TimeManagement.h> | #include <Kernel/Time/TimeManagement.h> | ||||||
| #include <Kernel/TimerQueue.h> | #include <Kernel/TimerQueue.h> | ||||||
| 
 | 
 | ||||||
| //#define LOG_EVERY_CONTEXT_SWITCH
 |  | ||||||
| //#define SCHEDULER_DEBUG
 |  | ||||||
| //#define SCHEDULER_RUNNABLE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| class SchedulerPerProcessorData { | class SchedulerPerProcessorData { | ||||||
|  |  | ||||||
|  | @ -40,8 +40,6 @@ namespace Kernel { | ||||||
| #define PATA_PRIMARY_IRQ 14 | #define PATA_PRIMARY_IRQ 14 | ||||||
| #define PATA_SECONDARY_IRQ 15 | #define PATA_SECONDARY_IRQ 15 | ||||||
| 
 | 
 | ||||||
| //#define PATA_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #define ATA_SR_BSY 0x80 | #define ATA_SR_BSY 0x80 | ||||||
| #define ATA_SR_DRDY 0x40 | #define ATA_SR_DRDY 0x40 | ||||||
| #define ATA_SR_DF 0x20 | #define ATA_SR_DF 0x20 | ||||||
|  |  | ||||||
|  | @ -24,8 +24,6 @@ | ||||||
|  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| //#define PATA_DEVICE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #include <AK/Memory.h> | #include <AK/Memory.h> | ||||||
| #include <AK/StringView.h> | #include <AK/StringView.h> | ||||||
| #include <Kernel/FileSystem/FileDescription.h> | #include <Kernel/FileSystem/FileDescription.h> | ||||||
|  |  | ||||||
|  | @ -27,8 +27,6 @@ | ||||||
| #include <Kernel/FileSystem/FileDescription.h> | #include <Kernel/FileSystem/FileDescription.h> | ||||||
| #include <Kernel/Storage/Partition/DiskPartition.h> | #include <Kernel/Storage/Partition/DiskPartition.h> | ||||||
| 
 | 
 | ||||||
| // #define OFFD_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| NonnullRefPtr<DiskPartition> DiskPartition::create(BlockDevice& device, unsigned minor_number, DiskPartitionMetadata metadata) | NonnullRefPtr<DiskPartition> DiskPartition::create(BlockDevice& device, unsigned minor_number, DiskPartitionMetadata metadata) | ||||||
|  |  | ||||||
|  | @ -24,8 +24,6 @@ | ||||||
|  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| //#define STORAGE_DEVICE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #include <AK/Memory.h> | #include <AK/Memory.h> | ||||||
| #include <AK/StringView.h> | #include <AK/StringView.h> | ||||||
| #include <Kernel/FileSystem/FileDescription.h> | #include <Kernel/FileSystem/FileDescription.h> | ||||||
|  |  | ||||||
|  | @ -44,8 +44,6 @@ | ||||||
| #include <LibELF/Image.h> | #include <LibELF/Image.h> | ||||||
| #include <LibELF/Validation.h> | #include <LibELF/Validation.h> | ||||||
| 
 | 
 | ||||||
| //#define EXEC_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static Vector<ELF::AuxiliaryValue> generate_auxiliary_vector(FlatPtr load_base, FlatPtr entry_eip, uid_t uid, uid_t euid, gid_t gid, gid_t egid, String executable_path, int main_program_fd); | static Vector<ELF::AuxiliaryValue> generate_auxiliary_vector(FlatPtr load_base, FlatPtr entry_eip, uid_t uid, uid_t euid, gid_t gid, gid_t egid, String executable_path, int main_program_fd); | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <LibC/signal_numbers.h> | #include <LibC/signal_numbers.h> | ||||||
| #include <LibC/sys/ioctl_numbers.h> | #include <LibC/sys/ioctl_numbers.h> | ||||||
| 
 | 
 | ||||||
| //#define TTY_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| TTY::TTY(unsigned major, unsigned minor) | TTY::TTY(unsigned major, unsigned minor) | ||||||
|  |  | ||||||
|  | @ -31,8 +31,6 @@ | ||||||
| #include <Kernel/Scheduler.h> | #include <Kernel/Scheduler.h> | ||||||
| #include <Kernel/Thread.h> | #include <Kernel/Thread.h> | ||||||
| 
 | 
 | ||||||
| //#define WAITBLOCK_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| bool Thread::Blocker::set_block_condition(Thread::BlockCondition& block_condition, void* data) | bool Thread::Blocker::set_block_condition(Thread::BlockCondition& block_condition, void* data) | ||||||
|  |  | ||||||
|  | @ -40,8 +40,6 @@ namespace Kernel { | ||||||
| #define NANOSECOND_PERIOD_TO_HERTZ(x) 1000000000 / x | #define NANOSECOND_PERIOD_TO_HERTZ(x) 1000000000 / x | ||||||
| #define MEGAHERTZ_TO_HERTZ(x) (x / 1000000) | #define MEGAHERTZ_TO_HERTZ(x) (x / 1000000) | ||||||
| 
 | 
 | ||||||
| //#define HPET_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace HPETFlags { | namespace HPETFlags { | ||||||
| enum class Attributes { | enum class Attributes { | ||||||
|     Counter64BitCapable = 1 << 13, |     Counter64BitCapable = 1 << 13, | ||||||
|  |  | ||||||
|  | @ -41,8 +41,6 @@ | ||||||
| #include <Kernel/TimerQueue.h> | #include <Kernel/TimerQueue.h> | ||||||
| #include <Kernel/VM/MemoryManager.h> | #include <Kernel/VM/MemoryManager.h> | ||||||
| 
 | 
 | ||||||
| //#define TIME_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| static AK::Singleton<TimeManagement> s_the; | static AK::Singleton<TimeManagement> s_the; | ||||||
|  |  | ||||||
|  | @ -41,8 +41,6 @@ | ||||||
| #include <Kernel/VM/PhysicalRegion.h> | #include <Kernel/VM/PhysicalRegion.h> | ||||||
| #include <Kernel/VM/SharedInodeVMObject.h> | #include <Kernel/VM/SharedInodeVMObject.h> | ||||||
| 
 | 
 | ||||||
| //#define PAGE_FAULT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| extern u8* start_of_kernel_image; | extern u8* start_of_kernel_image; | ||||||
| extern u8* end_of_kernel_image; | extern u8* end_of_kernel_image; | ||||||
| extern FlatPtr start_of_kernel_text; | extern FlatPtr start_of_kernel_text; | ||||||
|  |  | ||||||
|  | @ -32,9 +32,6 @@ | ||||||
| #include <Kernel/VM/PhysicalPage.h> | #include <Kernel/VM/PhysicalPage.h> | ||||||
| #include <Kernel/VM/PurgeablePageRanges.h> | #include <Kernel/VM/PurgeablePageRanges.h> | ||||||
| 
 | 
 | ||||||
| //#define PAGE_FAULT_DEBUG
 |  | ||||||
| //#define VOLATILE_PAGE_RANGES_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Kernel { | namespace Kernel { | ||||||
| 
 | 
 | ||||||
| #ifdef VOLATILE_PAGE_RANGES_DEBUG | #ifdef VOLATILE_PAGE_RANGES_DEBUG | ||||||
|  |  | ||||||
|  | @ -37,8 +37,6 @@ | ||||||
| #include <LibGfx/PNGWriter.h> | #include <LibGfx/PNGWriter.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| 
 | 
 | ||||||
| //#define PAINT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace PixelPaint { | namespace PixelPaint { | ||||||
| 
 | 
 | ||||||
| RefPtr<Image> Image::create_with_size(const Gfx::IntSize& size) | RefPtr<Image> Image::create_with_size(const Gfx::IntSize& size) | ||||||
|  |  | ||||||
|  | @ -41,8 +41,6 @@ | ||||||
| #include <LibJS/Runtime/Function.h> | #include <LibJS/Runtime/Function.h> | ||||||
| #include <ctype.h> | #include <ctype.h> | ||||||
| 
 | 
 | ||||||
| //#define COPY_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Spreadsheet { | namespace Spreadsheet { | ||||||
| 
 | 
 | ||||||
| Sheet::Sheet(const StringView& name, Workbook& workbook) | Sheet::Sheet(const StringView& name, Workbook& workbook) | ||||||
|  |  | ||||||
|  | @ -51,8 +51,6 @@ | ||||||
| #include <LibWeb/OutOfProcessWebView.h> | #include <LibWeb/OutOfProcessWebView.h> | ||||||
| #include <fcntl.h> | #include <fcntl.h> | ||||||
| 
 | 
 | ||||||
| // #define EDITOR_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace HackStudio { | namespace HackStudio { | ||||||
| 
 | 
 | ||||||
| Editor::Editor() | Editor::Editor() | ||||||
|  |  | ||||||
|  | @ -34,8 +34,6 @@ | ||||||
| #include <LibGfx/FontDatabase.h> | #include <LibGfx/FontDatabase.h> | ||||||
| #include <LibGfx/Palette.h> | #include <LibGfx/Palette.h> | ||||||
| 
 | 
 | ||||||
| // #define DEBUG_DIFF
 |  | ||||||
| 
 |  | ||||||
| namespace HackStudio { | namespace HackStudio { | ||||||
| 
 | 
 | ||||||
| DiffViewer::~DiffViewer() | DiffViewer::~DiffViewer() | ||||||
|  |  | ||||||
|  | @ -28,8 +28,6 @@ | ||||||
| #include <AK/HashTable.h> | #include <AK/HashTable.h> | ||||||
| #include <LibCpp/Lexer.h> | #include <LibCpp/Lexer.h> | ||||||
| 
 | 
 | ||||||
| // #define DEBUG_AUTOCOMPLETE
 |  | ||||||
| 
 |  | ||||||
| namespace LanguageServers::Cpp { | namespace LanguageServers::Cpp { | ||||||
| 
 | 
 | ||||||
| Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, const GUI::TextPosition& autocomplete_position) | Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, const GUI::TextPosition& autocomplete_position) | ||||||
|  |  | ||||||
|  | @ -31,8 +31,6 @@ | ||||||
| #include <Shell/Parser.h> | #include <Shell/Parser.h> | ||||||
| #include <Shell/Shell.h> | #include <Shell/Shell.h> | ||||||
| 
 | 
 | ||||||
| // #define DEBUG_AUTOCOMPLETE
 |  | ||||||
| 
 |  | ||||||
| namespace LanguageServers::Shell { | namespace LanguageServers::Shell { | ||||||
| 
 | 
 | ||||||
| Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, size_t offset) | Vector<GUI::AutocompleteProvider::Entry> AutoComplete::get_suggestions(const String& code, size_t offset) | ||||||
|  |  | ||||||
|  | @ -33,8 +33,6 @@ | ||||||
| #include <ctype.h> | #include <ctype.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| 
 | 
 | ||||||
| //#define GENERATE_DEBUG_CODE
 |  | ||||||
| 
 |  | ||||||
| struct Parameter { | struct Parameter { | ||||||
|     Vector<String> attributes; |     Vector<String> attributes; | ||||||
|     String type; |     String type; | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <mallocdefs.h> | #include <mallocdefs.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| 
 | 
 | ||||||
| //#define REACHABLE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace UserspaceEmulator { | namespace UserspaceEmulator { | ||||||
| 
 | 
 | ||||||
| MallocTracer::MallocTracer(Emulator& emulator) | MallocTracer::MallocTracer(Emulator& emulator) | ||||||
|  |  | ||||||
|  | @ -42,8 +42,6 @@ | ||||||
|         _exit(0);                                                                     \ |         _exit(0);                                                                     \ | ||||||
|     } while (0) |     } while (0) | ||||||
| 
 | 
 | ||||||
| //#define MEMORY_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #define DEFINE_GENERIC_SHIFT_ROTATE_INSN_HANDLERS(mnemonic, op)                                                                            \ | #define DEFINE_GENERIC_SHIFT_ROTATE_INSN_HANDLERS(mnemonic, op)                                                                            \ | ||||||
|     void SoftCPU::mnemonic##_RM8_1(const X86::Instruction& insn) { generic_RM8_1(op<ValueWithShadow<u8>>, insn); }                         \ |     void SoftCPU::mnemonic##_RM8_1(const X86::Instruction& insn) { generic_RM8_1(op<ValueWithShadow<u8>>, insn); }                         \ | ||||||
|     void SoftCPU::mnemonic##_RM8_CL(const X86::Instruction& insn) { generic_RM8_CL(op<ValueWithShadow<u8>>, insn); }                       \ |     void SoftCPU::mnemonic##_RM8_CL(const X86::Instruction& insn) { generic_RM8_CL(op<ValueWithShadow<u8>>, insn); }                       \ | ||||||
|  |  | ||||||
|  | @ -45,8 +45,6 @@ | ||||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||||
| #include <sys/types.h> | #include <sys/types.h> | ||||||
| 
 | 
 | ||||||
| // #define DYNAMIC_LOAD_VERBOSE
 |  | ||||||
| 
 |  | ||||||
| #ifdef DYNAMIC_LOAD_VERBOSE | #ifdef DYNAMIC_LOAD_VERBOSE | ||||||
| #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | ||||||
| #else | #else | ||||||
|  |  | ||||||
|  | @ -29,8 +29,6 @@ | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| #include <sys/internals.h> | #include <sys/internals.h> | ||||||
| 
 | 
 | ||||||
| //#define GLOBAL_DTORS_DEBUG
 |  | ||||||
| 
 |  | ||||||
| extern "C" { | extern "C" { | ||||||
| 
 | 
 | ||||||
| struct __exit_entry { | struct __exit_entry { | ||||||
|  |  | ||||||
|  | @ -40,7 +40,6 @@ | ||||||
| 
 | 
 | ||||||
| // FIXME: Thread safety.
 | // FIXME: Thread safety.
 | ||||||
| 
 | 
 | ||||||
| //#define MALLOC_DEBUG
 |  | ||||||
| #define RECYCLE_BIG_ALLOCATIONS | #define RECYCLE_BIG_ALLOCATIONS | ||||||
| 
 | 
 | ||||||
| #define PAGE_ROUND_UP(x) ((((size_t)(x)) + PAGE_SIZE - 1) & (~(PAGE_SIZE - 1))) | #define PAGE_ROUND_UP(x) ((((size_t)(x)) + PAGE_SIZE - 1) & (~(PAGE_SIZE - 1))) | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <string.h> | #include <string.h> | ||||||
| #include <termcap.h> | #include <termcap.h> | ||||||
| 
 | 
 | ||||||
| //#define TERMCAP_DEBUG
 |  | ||||||
| 
 |  | ||||||
| extern "C" { | extern "C" { | ||||||
| 
 | 
 | ||||||
| char PC; | char PC; | ||||||
|  |  | ||||||
|  | @ -30,8 +30,6 @@ | ||||||
| #include <LibCore/EventLoop.h> | #include <LibCore/EventLoop.h> | ||||||
| #include <LibCore/File.h> | #include <LibCore/File.h> | ||||||
| 
 | 
 | ||||||
| // #define UCI_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Chess::UCI { | namespace Chess::UCI { | ||||||
| 
 | 
 | ||||||
| Endpoint::Endpoint(NonnullRefPtr<Core::IODevice> in, NonnullRefPtr<Core::IODevice> out) | Endpoint::Endpoint(NonnullRefPtr<Core::IODevice> in, NonnullRefPtr<Core::IODevice> out) | ||||||
|  |  | ||||||
|  | @ -35,8 +35,6 @@ | ||||||
| #include <sys/wait.h> | #include <sys/wait.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| // #define DBG_FAILED_COMMANDS
 |  | ||||||
| 
 |  | ||||||
| namespace Core { | namespace Core { | ||||||
| 
 | 
 | ||||||
| // Only supported in serenity mode because we use `posix_spawn_file_actions_addchdir`
 | // Only supported in serenity mode because we use `posix_spawn_file_actions_addchdir`
 | ||||||
|  |  | ||||||
|  | @ -54,9 +54,6 @@ | ||||||
| #include <time.h> | #include <time.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define EVENTLOOP_DEBUG
 |  | ||||||
| //#define DEFERRED_INVOKE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Core { | namespace Core { | ||||||
| 
 | 
 | ||||||
| class RPCClient; | class RPCClient; | ||||||
|  |  | ||||||
|  | @ -29,8 +29,6 @@ | ||||||
| #include <AK/Random.h> | #include <AK/Random.h> | ||||||
| #include <LibCrypto/BigInt/UnsignedBigInteger.h> | #include <LibCrypto/BigInt/UnsignedBigInteger.h> | ||||||
| 
 | 
 | ||||||
| //#define NT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Crypto { | namespace Crypto { | ||||||
| namespace NumberTheory { | namespace NumberTheory { | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -46,8 +46,6 @@ | ||||||
| #include <sys/stat.h> | #include <sys/stat.h> | ||||||
| #include <sys/types.h> | #include <sys/types.h> | ||||||
| 
 | 
 | ||||||
| // #define DYNAMIC_LOAD_VERBOSE
 |  | ||||||
| 
 |  | ||||||
| #ifdef DYNAMIC_LOAD_VERBOSE | #ifdef DYNAMIC_LOAD_VERBOSE | ||||||
| #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | ||||||
| #else | #else | ||||||
|  |  | ||||||
|  | @ -40,8 +40,6 @@ | ||||||
| #    define DYNAMIC_LOAD_DEBUG | #    define DYNAMIC_LOAD_DEBUG | ||||||
| #endif | #endif | ||||||
| 
 | 
 | ||||||
| // #define DYNAMIC_LOAD_VERBOSE
 |  | ||||||
| 
 |  | ||||||
| #ifdef DYNAMIC_LOAD_VERBOSE | #ifdef DYNAMIC_LOAD_VERBOSE | ||||||
| #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | ||||||
| #else | #else | ||||||
|  |  | ||||||
|  | @ -33,8 +33,6 @@ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| 
 | 
 | ||||||
| // #define DYNAMIC_OBJECT_VERBOSE
 |  | ||||||
| 
 |  | ||||||
| #ifdef DYNAMIC_OBJECT_VERBOSE | #ifdef DYNAMIC_OBJECT_VERBOSE | ||||||
| #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | #    define VERBOSE(fmt, ...) dbgprintf(fmt, ##__VA_ARGS__) | ||||||
| #else | #else | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <LibELF/Image.h> | #include <LibELF/Image.h> | ||||||
| #include <LibELF/Validation.h> | #include <LibELF/Validation.h> | ||||||
| 
 | 
 | ||||||
| //#define ELF_IMAGE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace ELF { | namespace ELF { | ||||||
| 
 | 
 | ||||||
| Image::Image(ReadonlyBytes bytes, bool verbose_logging) | Image::Image(ReadonlyBytes bytes, bool verbose_logging) | ||||||
|  |  | ||||||
|  | @ -30,8 +30,6 @@ | ||||||
| #include <LibGfx/Orientation.h> | #include <LibGfx/Orientation.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| 
 | 
 | ||||||
| //#define GBOXLAYOUT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| REGISTER_WIDGET(GUI, HorizontalBoxLayout) | REGISTER_WIDGET(GUI, HorizontalBoxLayout) | ||||||
| REGISTER_WIDGET(GUI, VerticalBoxLayout) | REGISTER_WIDGET(GUI, VerticalBoxLayout) | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -34,8 +34,6 @@ | ||||||
| #include <LibGUI/ScrollBar.h> | #include <LibGUI/ScrollBar.h> | ||||||
| #include <LibGfx/Palette.h> | #include <LibGfx/Palette.h> | ||||||
| 
 | 
 | ||||||
| //#define DRAGDROP_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace GUI { | namespace GUI { | ||||||
| 
 | 
 | ||||||
| IconView::IconView() | IconView::IconView() | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <LibGUI/WindowServerConnection.h> | #include <LibGUI/WindowServerConnection.h> | ||||||
| #include <LibGfx/Bitmap.h> | #include <LibGfx/Bitmap.h> | ||||||
| 
 | 
 | ||||||
| //#define MENU_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace GUI { | namespace GUI { | ||||||
| 
 | 
 | ||||||
| static HashMap<int, Menu*>& all_menus() | static HashMap<int, Menu*>& all_menus() | ||||||
|  |  | ||||||
|  | @ -50,8 +50,6 @@ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define DEBUG_TEXTEDITOR
 |  | ||||||
| 
 |  | ||||||
| REGISTER_WIDGET(GUI, TextEditor) | REGISTER_WIDGET(GUI, TextEditor) | ||||||
| 
 | 
 | ||||||
| namespace GUI { | namespace GUI { | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <LibGfx/Bitmap.h> | #include <LibGfx/Bitmap.h> | ||||||
| #include <LibGfx/Palette.h> | #include <LibGfx/Palette.h> | ||||||
| 
 | 
 | ||||||
| //#define DEBUG_ITEM_RECTS
 |  | ||||||
| 
 |  | ||||||
| REGISTER_WIDGET(GUI, TreeView) | REGISTER_WIDGET(GUI, TreeView) | ||||||
| 
 | 
 | ||||||
| namespace GUI { | namespace GUI { | ||||||
|  |  | ||||||
|  | @ -45,8 +45,6 @@ | ||||||
| #include <stdlib.h> | #include <stdlib.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define UPDATE_COALESCING_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace GUI { | namespace GUI { | ||||||
| 
 | 
 | ||||||
| static i32 s_next_backing_store_serial; | static i32 s_next_backing_store_serial; | ||||||
|  |  | ||||||
|  | @ -31,8 +31,6 @@ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define GEMINIJOB_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Gemini { | namespace Gemini { | ||||||
| 
 | 
 | ||||||
| void GeminiJob::start() | void GeminiJob::start() | ||||||
|  |  | ||||||
|  | @ -36,8 +36,6 @@ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| 
 | 
 | ||||||
| //#define ICO_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Gfx { | namespace Gfx { | ||||||
| 
 | 
 | ||||||
| // FIXME: This is in little-endian order. Maybe need a NetworkOrdered<T> equivalent eventually.
 | // FIXME: This is in little-endian order. Maybe need a NetworkOrdered<T> equivalent eventually.
 | ||||||
|  |  | ||||||
|  | @ -1536,8 +1536,6 @@ void Painter::stroke_path(const Path& path, Color color, int thickness) | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| //#define FILL_PATH_DEBUG
 |  | ||||||
| 
 |  | ||||||
| [[maybe_unused]] static void approximately_place_on_int_grid(FloatPoint ffrom, FloatPoint fto, IntPoint& from, IntPoint& to, Optional<IntPoint> previous_to) | [[maybe_unused]] static void approximately_place_on_int_grid(FloatPoint ffrom, FloatPoint fto, IntPoint& from, IntPoint& to, Optional<IntPoint> previous_to) | ||||||
| { | { | ||||||
|     auto diffs = fto - ffrom; |     auto diffs = fto - ffrom; | ||||||
|  |  | ||||||
|  | @ -31,8 +31,6 @@ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define HTTPJOB_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace HTTP { | namespace HTTP { | ||||||
| void HttpJob::start() | void HttpJob::start() | ||||||
| { | { | ||||||
|  |  | ||||||
|  | @ -32,8 +32,6 @@ | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define HTTPSJOB_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace HTTP { | namespace HTTP { | ||||||
| 
 | 
 | ||||||
| void HttpsJob::start() | void HttpsJob::start() | ||||||
|  |  | ||||||
|  | @ -37,8 +37,6 @@ | ||||||
| #include <LibJS/Runtime/Object.h> | #include <LibJS/Runtime/Object.h> | ||||||
| #include <setjmp.h> | #include <setjmp.h> | ||||||
| 
 | 
 | ||||||
| //#define HEAP_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace JS { | namespace JS { | ||||||
| 
 | 
 | ||||||
| Heap::Heap(VM& vm) | Heap::Heap(VM& vm) | ||||||
|  |  | ||||||
|  | @ -31,8 +31,6 @@ | ||||||
| #include <ctype.h> | #include <ctype.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| 
 | 
 | ||||||
| //#define LEXER_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace JS { | namespace JS { | ||||||
| 
 | 
 | ||||||
| HashMap<String, TokenType> Lexer::s_keywords; | HashMap<String, TokenType> Lexer::s_keywords; | ||||||
|  |  | ||||||
|  | @ -38,8 +38,6 @@ | ||||||
| #include <LibJS/Runtime/StringObject.h> | #include <LibJS/Runtime/StringObject.h> | ||||||
| #include <LibJS/Runtime/Value.h> | #include <LibJS/Runtime/Value.h> | ||||||
| 
 | 
 | ||||||
| //#define OBJECT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace JS { | namespace JS { | ||||||
| 
 | 
 | ||||||
| PropertyDescriptor PropertyDescriptor::from_dictionary(VM& vm, const Object& object) | PropertyDescriptor PropertyDescriptor::from_dictionary(VM& vm, const Object& object) | ||||||
|  |  | ||||||
|  | @ -45,8 +45,6 @@ | ||||||
| #include <sys/time.h> | #include <sys/time.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| // #define SUGGESTIONS_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace { | namespace { | ||||||
| constexpr u32 ctrl(char c) { return c & 0x3f; } | constexpr u32 ctrl(char c) { return c & 0x3f; } | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -38,8 +38,6 @@ | ||||||
| #include <time.h> | #include <time.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define PTHREAD_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace { | namespace { | ||||||
| using PthreadAttrImpl = Syscall::SC_create_thread_params; | using PthreadAttrImpl = Syscall::SC_create_thread_params; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -29,8 +29,6 @@ | ||||||
| #include <LibVT/Terminal.h> | #include <LibVT/Terminal.h> | ||||||
| #include <string.h> | #include <string.h> | ||||||
| 
 | 
 | ||||||
| //#define TERMINAL_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace VT { | namespace VT { | ||||||
| 
 | 
 | ||||||
| Terminal::Terminal(TerminalClient& client) | Terminal::Terminal(TerminalClient& client) | ||||||
|  |  | ||||||
|  | @ -59,8 +59,6 @@ | ||||||
| #include <sys/ioctl.h> | #include <sys/ioctl.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define TERMINAL_DEBUG
 |  | ||||||
| 
 |  | ||||||
| void TerminalWidget::set_pty_master_fd(int fd) | void TerminalWidget::set_pty_master_fd(int fd) | ||||||
| { | { | ||||||
|     m_ptm_fd = fd; |     m_ptm_fd = fd; | ||||||
|  |  | ||||||
|  | @ -46,8 +46,6 @@ | ||||||
| #include <LibWeb/Layout/Node.h> | #include <LibWeb/Layout/Node.h> | ||||||
| #include <LibWeb/Layout/TextNode.h> | #include <LibWeb/Layout/TextNode.h> | ||||||
| 
 | 
 | ||||||
| //#define EVENT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Web::DOM { | namespace Web::DOM { | ||||||
| 
 | 
 | ||||||
| Node::Node(Document& document, NodeType type) | Node::Node(Document& document, NodeType type) | ||||||
|  |  | ||||||
|  | @ -24,8 +24,6 @@ | ||||||
|  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
| //#define PARSER_DEBUG
 |  | ||||||
| 
 |  | ||||||
| #include <AK/Debug.h> | #include <AK/Debug.h> | ||||||
| #include <AK/Utf32View.h> | #include <AK/Utf32View.h> | ||||||
| #include <LibTextCodec/Decoder.h> | #include <LibTextCodec/Decoder.h> | ||||||
|  |  | ||||||
|  | @ -57,8 +57,6 @@ | ||||||
| #include <LibWeb/UIEvents/MouseEvent.h> | #include <LibWeb/UIEvents/MouseEvent.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| 
 | 
 | ||||||
| //#define SELECTION_DEBUG
 |  | ||||||
| 
 |  | ||||||
| REGISTER_WIDGET(Web, InProcessWebView) | REGISTER_WIDGET(Web, InProcessWebView) | ||||||
| 
 | 
 | ||||||
| namespace Web { | namespace Web { | ||||||
|  |  | ||||||
|  | @ -35,8 +35,6 @@ | ||||||
| #include <LibWeb/Layout/InitialContainingBlockBox.h> | #include <LibWeb/Layout/InitialContainingBlockBox.h> | ||||||
| #include <LibWeb/Page/Frame.h> | #include <LibWeb/Page/Frame.h> | ||||||
| 
 | 
 | ||||||
| //#define DEBUG_HIGHLIGHT_FOCUSED_FRAME
 |  | ||||||
| 
 |  | ||||||
| namespace Web::Layout { | namespace Web::Layout { | ||||||
| 
 | 
 | ||||||
| FrameBox::FrameBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style) | FrameBox::FrameBox(DOM::Document& document, DOM::Element& element, NonnullRefPtr<CSS::StyleProperties> style) | ||||||
|  |  | ||||||
|  | @ -40,8 +40,6 @@ | ||||||
| #include <sys/time.h> | #include <sys/time.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define LOOKUPSERVER_DEBUG
 |  | ||||||
| 
 |  | ||||||
| LookupServer::LookupServer() | LookupServer::LookupServer() | ||||||
| { | { | ||||||
|     auto config = Core::ConfigFile::get_for_system("LookupServer"); |     auto config = Core::ConfigFile::get_for_system("LookupServer"); | ||||||
|  |  | ||||||
|  | @ -41,8 +41,6 @@ | ||||||
| #include <serenity.h> | #include <serenity.h> | ||||||
| #include <stdio.h> | #include <stdio.h> | ||||||
| 
 | 
 | ||||||
| //#define EVENT_DEBUG
 |  | ||||||
| 
 |  | ||||||
| class TaskbarWidget final : public GUI::Widget { | class TaskbarWidget final : public GUI::Widget { | ||||||
|     C_OBJECT(TaskbarWidget); |     C_OBJECT(TaskbarWidget); | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -42,8 +42,6 @@ | ||||||
| #include <time.h> | #include <time.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define WSMESSAGELOOP_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace WindowServer { | namespace WindowServer { | ||||||
| 
 | 
 | ||||||
| EventLoop::EventLoop() | EventLoop::EventLoop() | ||||||
|  |  | ||||||
|  | @ -52,11 +52,6 @@ | ||||||
| #include <time.h> | #include <time.h> | ||||||
| #include <unistd.h> | #include <unistd.h> | ||||||
| 
 | 
 | ||||||
| //#define WINDOWMANAGER_DEBUG
 |  | ||||||
| //#define RESIZE_DEBUG
 |  | ||||||
| //#define MOVE_DEBUG
 |  | ||||||
| //#define DOUBLECLICK_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace WindowServer { | namespace WindowServer { | ||||||
| 
 | 
 | ||||||
| static WindowManager* s_the; | static WindowManager* s_the; | ||||||
|  | @ -781,8 +776,6 @@ auto WindowManager::DoubleClickInfo::metadata_for_button(MouseButton button) -> | ||||||
|     } |     } | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| // #define DOUBLECLICK_DEBUG
 |  | ||||||
| 
 |  | ||||||
| bool WindowManager::is_considered_doubleclick(const MouseEvent& event, const DoubleClickInfo::ClickMetadata& metadata) const | bool WindowManager::is_considered_doubleclick(const MouseEvent& event, const DoubleClickInfo::ClickMetadata& metadata) const | ||||||
| { | { | ||||||
|     int elapsed_since_last_click = metadata.clock.elapsed(); |     int elapsed_since_last_click = metadata.clock.elapsed(); | ||||||
|  |  | ||||||
|  | @ -36,8 +36,6 @@ | ||||||
| #include <fcntl.h> | #include <fcntl.h> | ||||||
| #include <signal.h> | #include <signal.h> | ||||||
| 
 | 
 | ||||||
| //#define EXECUTE_DEBUG
 |  | ||||||
| 
 |  | ||||||
| void AK::Formatter<Shell::AST::Command>::format(FormatBuilder& builder, const Shell::AST::Command& value) | void AK::Formatter<Shell::AST::Command>::format(FormatBuilder& builder, const Shell::AST::Command& value) | ||||||
| { | { | ||||||
|     if (m_sign_mode != FormatBuilder::SignMode::Default) |     if (m_sign_mode != FormatBuilder::SignMode::Default) | ||||||
|  |  | ||||||
|  | @ -56,8 +56,6 @@ | ||||||
| static bool s_disable_hyperlinks = false; | static bool s_disable_hyperlinks = false; | ||||||
| extern char** environ; | extern char** environ; | ||||||
| 
 | 
 | ||||||
| //#define SH_DEBUG
 |  | ||||||
| 
 |  | ||||||
| namespace Shell { | namespace Shell { | ||||||
| 
 | 
 | ||||||
| // FIXME: This should eventually be removed once we've established that
 | // FIXME: This should eventually be removed once we've established that
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 asynts
						asynts