mpaland/printf

why *.cpp and not *.c

mgiaco opened this issue · 6 comments

Is there any special reason why you use cpp?

many thanks

@mgiaco Thanks for your interest!
It needs to be a C++ module in the moment cause it contains a templated _ntoa() function for number to ASCII conversion.
This is used/called with six different types (int, long, long long and in their unsigned form).
Basically a non templated standard _ntoa() implementation would be fine and perhaps better regarding compiled code size.

I leave this issue open and think about it.

ah okay i see it now. Sorry for the bad question. That´s really bad because I can use cpp.

many thanks

Do you have any plans to Support C only?

@mgiaco I created a no_ntoa_template branch which contains a pure non templated print.c version.
All tests are passing.
Please test this. If everything is fine, this will be merged into master.

hey sorry i was on holiday, many thanks i will test it

No problem. The non-templated .c version is already merged and successfully tested.
If you encounter any problems, pls open a new issue.