Robert Müller
be6862e997
Use sizeof(int32_t)
instead of 4
2023-02-11 13:59:08 +01:00
Robert Müller
218e6f7985
Remove bytes_be_to_int
and int_to_bytes_be
...
Use `bytes_be_to_uint` and `uint_to_bytes_be` instead.
As casting between `int` and `unsigned` preserves the bit representation of the value, it's not necessary to apply additional tricks to convert between `char` arrays and `int`.
2023-02-04 01:24:03 +01:00
Alexander Akulich
6d9284adc1
Port some code to str_copy() template
2022-07-09 19:40:58 +03:00
ChillerDragon
3667061b68
Use nullptr in generated and editor
...
-Wzero-as-null-pointer-constant
2022-06-13 18:28:13 +02:00
Chairn
583d6e6c01
Mark virtual function as override using a script:
...
while IFS= read -r line; do file=${line%%:*}; lineno=$(echo $line | cut
-d':' -f2); echo "Treating $file line $lineno"; sed -i -e
"${lineno}s/virtual //" -e "${lineno}s/);\$/) override;/" -e
"${lineno}s/)\$/) override/" -e "${lineno}s/const\$/const override/" -e
"${lineno}s/) {/) override {/" -e "${lineno}s/) const {/) const override
{/" -e "${lineno}s/const;$/const override;/" "$file"; done < a
2022-05-17 23:47:32 +02:00
Robert Müller
12699aa3e4
add functions for packing/unpacking int/unsigned using char arrays
2021-11-09 22:19:32 +01:00
heinrich5991
a604d913ce
Move ghost code to client
...
It's not used by the server, so there's no reason to put it into the
shared codebase.
2020-10-14 17:08:58 +02:00