mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 02:17:35 +00:00
Everywhere: Name debug macros more consistently.
Personally, I prefer the naming convention DEBUG_FOO over FOO_DEBUG, but the majority of the debug macros are already named in the latter naming convention, so I just enforce consistency here. This was done with the following script: find . \( -name '*.cpp' -o -name '*.h' -o -name '*.in' \) -not -path './Toolchain/*' -not -path './Build/*' -exec sed -i -E 's/DEBUG_PATH/PATH_DEBUG/' {} \;
This commit is contained in:
parent
acdcf59a33
commit
bb483f7ef4
9 changed files with 44 additions and 44 deletions
|
@ -52,7 +52,7 @@ static Optional<ByteBuffer> get_gzip_payload(const ByteBuffer& data)
|
|||
return data[current++];
|
||||
};
|
||||
|
||||
#if DEBUG_GZIP
|
||||
#if GZIP_DEBUG
|
||||
dbgln("get_gzip_payload: Skipping over gzip header.");
|
||||
#endif
|
||||
|
||||
|
@ -135,7 +135,7 @@ Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data)
|
|||
source.data(), &source_len);
|
||||
|
||||
if (puff_ret == 0) {
|
||||
#if DEBUG_GZIP
|
||||
#if GZIP_DEBUG
|
||||
dbgln("Gzip::decompress: Decompression success.");
|
||||
#endif
|
||||
destination.trim(destination_len);
|
||||
|
@ -144,7 +144,7 @@ Optional<ByteBuffer> Gzip::decompress(const ByteBuffer& data)
|
|||
|
||||
if (puff_ret == 1) {
|
||||
// FIXME: Find a better way of decompressing without needing to try over and over again.
|
||||
#if DEBUG_GZIP
|
||||
#if GZIP_DEBUG
|
||||
dbgln("Gzip::decompress: Output buffer exhausted. Growing.");
|
||||
#endif
|
||||
destination.grow(destination.size() * 2);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue