inexorgame-obsolete / deprecated-cube-engine-inexor

UNMAINTAINED: Please have a look at the vulkan-renderer
https://inexor.org
zlib License
11 stars 1 forks source link

Replace unsafe formatting lib #401

Open a-teammate opened 7 years ago

a-teammate commented 7 years ago

Currently there are a lot of "defformatstring", "formatstring" and "tempformatstring" used through the codebase to simplify printf-formatting of a string and some variables into a string (e.g. defformatstr(name, "user-number-%d", id_number);.)

This is sometimes slow, but mostly its terrible unsafe in comparison to the fmt lib (aka cppformat). And since we switch to fmt for new code, we should convert the old formatting code as well. It would be stupid to maintain our own formatting library if there already is a well-established alternative and the goal is to drop it as soon as possible.

Tasks: