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:
@@ -35,7 +35,7 @@ static const Money VEHICLE_PROFIT_THRESHOLD = 10000; ///< Threshold for a
|
||||
* @return True iff the image index is valid.
|
||||
*/
|
||||
template <VehicleType T>
|
||||
bool IsValidImageIndex(uint8 image_index);
|
||||
bool IsValidImageIndex(uint8_t image_index);
|
||||
|
||||
typedef Vehicle *VehicleFromPosProc(Vehicle *v, void *data);
|
||||
|
||||
@@ -46,7 +46,7 @@ void FindVehicleOnPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
bool HasVehicleOnPos(TileIndex tile, void *data, VehicleFromPosProc *proc);
|
||||
bool HasVehicleOnPosXY(int x, int y, void *data, VehicleFromPosProc *proc);
|
||||
void CallVehicleTicks();
|
||||
uint8 CalcPercentVehicleFilled(const Vehicle *v, StringID *colour);
|
||||
uint8_t CalcPercentVehicleFilled(const Vehicle *v, StringID *colour);
|
||||
|
||||
void VehicleLengthChanged(const Vehicle *u);
|
||||
|
||||
@@ -171,7 +171,7 @@ StringID GetVehicleCannotUseStationReason(const Vehicle *v, const Station *st);
|
||||
void ReleaseDisastersTargetingVehicle(VehicleID vehicle);
|
||||
|
||||
typedef std::vector<VehicleID> VehicleSet;
|
||||
void GetVehicleSet(VehicleSet &set, Vehicle *v, uint8 num_vehicles);
|
||||
void GetVehicleSet(VehicleSet &set, Vehicle *v, uint8_t num_vehicles);
|
||||
|
||||
void CheckCargoCapacity(Vehicle *v);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user