Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
This commit is contained in:
@@ -26,10 +26,10 @@ class CommandCost {
|
||||
StringID message; ///< Warning message for when success is unset
|
||||
bool success; ///< Whether the command went fine up to this moment
|
||||
const GRFFile *textref_stack_grffile; ///< NewGRF providing the #TextRefStack content.
|
||||
uint textref_stack_size; ///< Number of uint32 values to put on the #TextRefStack for the error message.
|
||||
uint textref_stack_size; ///< Number of uint32_t values to put on the #TextRefStack for the error message.
|
||||
StringID extra_message = INVALID_STRING_ID; ///< Additional warning message for when success is unset
|
||||
|
||||
static uint32 textref_stack[16];
|
||||
static uint32_t textref_stack[16];
|
||||
|
||||
public:
|
||||
/**
|
||||
@@ -118,8 +118,8 @@ public:
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the number of uint32 values for the #TextRefStack of the error message.
|
||||
* @return number of uint32 values.
|
||||
* Returns the number of uint32_t values for the #TextRefStack of the error message.
|
||||
* @return number of uint32_t values.
|
||||
*/
|
||||
uint GetTextRefStackSize() const
|
||||
{
|
||||
@@ -128,9 +128,9 @@ public:
|
||||
|
||||
/**
|
||||
* Returns a pointer to the values for the #TextRefStack of the error message.
|
||||
* @return uint32 values for the #TextRefStack
|
||||
* @return uint32_t values for the #TextRefStack
|
||||
*/
|
||||
const uint32 *GetTextRefStack() const
|
||||
const uint32_t *GetTextRefStack() const
|
||||
{
|
||||
return textref_stack;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ public:
|
||||
*
|
||||
* @see _command_proc_table
|
||||
*/
|
||||
enum Commands : uint16 {
|
||||
enum Commands : uint16_t {
|
||||
CMD_BUILD_RAILROAD_TRACK, ///< build a rail track
|
||||
CMD_REMOVE_RAILROAD_TRACK, ///< remove a rail track
|
||||
CMD_BUILD_SINGLE_RAIL, ///< build a single rail track
|
||||
|
Reference in New Issue
Block a user