b4b82a500c
This required two changes in parallel. As a first and obvious step it removes a check that skipped emptys lines during documentation loading, but it was also necessary to refactore the `get_comment_lines()` utility method as a second step. This second refactoring was necessary as each line in a doc comment is trimmed and transformed in its own doc attribute. The attribute of an empty line therefore contains an empty string as value. If we now call `lines()` on such an empty string we end up with an empty iterator as the method is internally configured to ignore trailing empty lines.
21 lines
567 B
C
21 lines
567 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
/**
|
|
* Constants shared by multiple CSS Box Alignment properties
|
|
*
|
|
* These constants match Gecko's `NS_STYLE_ALIGN_*` constants.
|
|
*/
|
|
typedef struct {
|
|
uint8_t bits;
|
|
} AlignFlags;
|
|
#define AlignFlags_AUTO (AlignFlags){ .bits = 0 }
|
|
#define AlignFlags_NORMAL (AlignFlags){ .bits = 1 }
|
|
#define AlignFlags_START (AlignFlags){ .bits = 1 << 1 }
|
|
#define AlignFlags_END (AlignFlags){ .bits = 1 << 2 }
|
|
#define AlignFlags_FLEX_START (AlignFlags){ .bits = 1 << 3 }
|
|
|
|
void root(AlignFlags flags);
|