Move to using vsnprintf instaed of BSD based ErsVSPrintf
Remove all the DPUBLIC, DPROTOTYPES etc. macros - presume modern C compiler. Add sprintftest.c, and a test target in dmakefile. This allows us to do basic tests on ErsSPrintf() and ErsSVPrintf(). Need to add more tests here to check rest of ERS, but do to handle not building with DRAMA. Replace BSD version of ErsVSPrintf() by the use of the modern portable implementation - vsnprintf(). ErsVSPrintf() and ErsSPrintf() both now call that routine for the formatting. As well as removing the BSD license code, this will ensure we are as up to date as the OS is in terms of printf() formatting support.
Showing
- Ers.h 41 additions, 78 deletionsErs.h
- README.txt 9 additions, 0 deletionsREADME.txt
- dmakefile 27 additions, 2 deletionsdmakefile
- ers.c 47 additions, 163 deletionsers.c
- erssprintf.c 26 additions, 23 deletionserssprintf.c
- ersvsprintf.c 32 additions, 953 deletionsersvsprintf.c
- sprintftest.c 223 additions, 0 deletionssprintftest.c
- test.expected 10 additions, 0 deletionstest.expected
Loading
Please register or sign in to comment