Skip to content

lisa._assets.kmodules.lisa: Fix and improve parsec.h

Douglas Raillard requested to merge douglas-raillard-arm/lisa:_home_pr90485 into main

FIX

  • Replace broken parse_char_in() and parse_char_not_in() by CHAR_IN() and CHAR_NOT_IN() optimized macros.

  • Add u64 parser.

  • Replace count_whitespaces with consume_whitespaces as this is the typical use case.

  • Fix parse_buffer2charp() to guarantee it is always null-terminated.

  • Add parse_buffer_strdup() that allows allocating a string with the content of a parse_buffer.

  • Add DISCARD() combinator that discards the output and returns a void_t value instead.

  • Kernel doc comment fixes.

Merge request reports