]> git.kaiwu.me - haproxy.git/commit
CLEANUP: debug: reorder definitions in bug.h
authorWilly Tarreau <w@1wt.eu>
Wed, 12 Aug 2026 14:04:43 +0000 (16:04 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Aug 2026 15:43:30 +0000 (17:43 +0200)
commit5be86177a88b419e2402bea27a2ef38e9ba5e946
tree2a6fe9fb3b9fe1c0cdb4865283fdc0b20d791ef3
parent9b5f8f9730a2000c7401e7053972b4dba6b8870c
CLEANUP: debug: reorder definitions in bug.h

This file has become totally unreadable because it's littered with lots
of #if, and mixes unconditional and conditional declarations that have
been accumulating over time. Let's first reorganize it so that:

  - externs are defined first
  - isolated macros are defined second
  - enums/structs are defined third, optionally with their macros and
    inline functions if unconditional.
  - then the conditional stuff.

A few types were made permanent as there's no point hiding them behind
ifdefs, except complicating a developer's life in another file.

Now most common stuff is quickly found and the more involved stuff remains
at the end.
include/haproxy/bug.h