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:
@@ -17,8 +17,8 @@ class OrthogonalTileIterator;
|
||||
/** Represents the covered area of e.g. a rail station */
|
||||
struct OrthogonalTileArea {
|
||||
TileIndex tile; ///< The base tile of the area
|
||||
uint16 w; ///< The width of the area
|
||||
uint16 h; ///< The height of the area
|
||||
uint16_t w; ///< The width of the area
|
||||
uint16_t h; ///< The height of the area
|
||||
|
||||
/**
|
||||
* Construct this tile area with some set values
|
||||
@@ -26,7 +26,7 @@ struct OrthogonalTileArea {
|
||||
* @param w the width
|
||||
* @param h the height
|
||||
*/
|
||||
OrthogonalTileArea(TileIndex tile = INVALID_TILE, uint8 w = 0, uint8 h = 0) : tile(tile), w(w), h(h)
|
||||
OrthogonalTileArea(TileIndex tile = INVALID_TILE, uint8_t w = 0, uint8_t h = 0) : tile(tile), w(w), h(h)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -70,8 +70,8 @@ struct OrthogonalTileArea {
|
||||
struct DiagonalTileArea {
|
||||
|
||||
TileIndex tile; ///< Base tile of the area
|
||||
int16 a; ///< Extent in diagonal "x" direction (may be negative to signify the area stretches to the left)
|
||||
int16 b; ///< Extent in diagonal "y" direction (may be negative to signify the area stretches upwards)
|
||||
int16_t a; ///< Extent in diagonal "x" direction (may be negative to signify the area stretches to the left)
|
||||
int16_t b; ///< Extent in diagonal "y" direction (may be negative to signify the area stretches upwards)
|
||||
|
||||
/**
|
||||
* Construct this tile area with some set values.
|
||||
@@ -79,7 +79,7 @@ struct DiagonalTileArea {
|
||||
* @param a The "x" extent.
|
||||
* @param b The "y" estent.
|
||||
*/
|
||||
DiagonalTileArea(TileIndex tile = INVALID_TILE, int8 a = 0, int8 b = 0) : tile(tile), a(a), b(b)
|
||||
DiagonalTileArea(TileIndex tile = INVALID_TILE, int8_t a = 0, int8_t b = 0) : tile(tile), a(a), b(b)
|
||||
{
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user