espmissingincludes.h How long this will continue?!!

DarkSide
Posts: 29
Joined: Mon Apr 06, 2015 6:51 pm

espmissingincludes.h How long this will continue?!!

Postby DarkSide » Thu Aug 18, 2016 5:50 pm

We all know that many SDK functions, provided by libs, does not declared in any header files. As result, users created a file called espmissingincludes.h where community aggregated list of missing declarations. Thats good, but why you, Espressif, just can't spent some time and declare missing methods in osapi.h or any other header file?!
Did you think that declaring os_printf will suit all developers needs? NO! os_snprintf/ets_snprintf needed too. And a lot of other functions. In attachment you will find an example file of missing includes that is used in one of my projects (based on SDK 2.0.0).
Please pay attention on this.
Attachments
espmissingincludes.zip
(1.16 KiB) Downloaded 629 times

pratik

Re: espmissingincludes.h How long this will continue?!!

Postby pratik » Sat Aug 20, 2016 6:59 pm

Thank you for the feedback, we will consider adding that in future API documentation releases as well as header files.

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: espmissingincludes.h How long this will continue?!!

Postby eriksl » Mon Sep 12, 2016 9:45 pm

+1!

Problem is not only the "warnings", in some cases the compiler will generate the wrong code, if the arguments are not simple pointers, int's or doubles -> crash.

davydnorris
Posts: 9
Joined: Sat May 20, 2017 9:46 am

Re: espmissingincludes.h How long this will continue?!!

Postby davydnorris » Wed Jun 07, 2017 1:56 pm

+1000!!

Please, please can you add function prototypes for the missing functions! It is simple to do, and will help fix so many annoying errors and also will help Link Time Optimisation

eriksl
Posts: 159
Joined: Fri May 22, 2015 6:22 pm

Re: espmissingincludes.h How long this will continue?!!

Postby eriksl » Thu Jun 08, 2017 12:31 am

Actually I don't think the ESP8266 will get any further attention. I can only hope the SDK for the ESP32 is better, but I do fear...

Who is online

Users browsing this forum: No registered users and 64 guests