Donny9 opened a new pull request, #13577:
URL: https://github.com/apache/nuttx/pull/13577

   ## Summary
   libs/libc: optimieze header file dependency and build part of libc in aosp.
   
   This PR mainly focuses on two points:
   
   1. Optimize the inclusion of header files in xxx_scanf.c and xxx_printf.c 
under libc. Previously, there were issues such as duplication, incorrect order, 
and redundancy in the inclusion of header files. The optimized .c files now 
appear very clean.
   
   2. Enable compilation of certain C files under libc within the AOSP (Android 
Open Source Project) environment for the purpose of code reuse. Since in the 
AOSP environment, standard header files are sourced from 
**bionic/libc/include**, it will not utilize headers from **nuttx/include**. 
Therefore, it is necessary to ensure that the optimized .c files employ 
POSIX-compliant standard implementations and can compile successfully using 
only the headers provided by bionic.
   
   ## Impact
   1. Optimize the inclusion of header files to make the code cleaner.
   2. Enable compilation of select Nuttx files within the AOSP environment by 
placing Nuttx in the Android's external directory, allowing for the compilation 
of a static library named libnuttx_libc.
   3. This can expand the usage of Nuttx and integrate it more seamlessly into 
the AOSP.
   ## Testing
   Vela
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to