libs/libc/stdio: Optimize header file dependencies in *prinf.c file.

Signed-off-by: likun17 <likun17@xiaomi.com>
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-05-31 14:54:53 +08:00 committed by Xiang Xiao
parent b8835be6c5
commit 90d990712d
16 changed files with 16 additions and 66 deletions

View file

@ -25,7 +25,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/compiler.h>
#ifdef CONFIG_LIBC_LZF
#include <lzf.h>

View file

@ -25,8 +25,6 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <sys/types.h>
# include <stdbool.h>

View file

@ -23,9 +23,6 @@
****************************************************************************/
#include <stdio.h>
#include <stdarg.h>
#include "libc.h"
/****************************************************************************
* Public Functions

View file

@ -40,6 +40,8 @@
* Included Files
****************************************************************************/
#include <nuttx/compiler.h>
#include <stdint.h>
#include <float.h>

View file

@ -22,14 +22,11 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <nuttx/streams.h>
#include <nuttx/compiler.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include <stdlib.h>
/****************************************************************************
* Public Functions

View file

@ -22,8 +22,7 @@
* Included Files
****************************************************************************/
#include <stdio.h>
#include "libc.h"
#include <nuttx/streams.h>
/****************************************************************************
* Public Functions

View file

@ -40,18 +40,14 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include <nuttx/compiler.h>
#include <nuttx/streams.h>
#ifdef CONFIG_ALLSYMS
#include <nuttx/allsyms.h>
#include <nuttx/symtab.h>
#endif
#include <assert.h>
#include <string.h>
#include "lib_dtoa_engine.h"
#include "lib_ultoa_invert.h"

View file

@ -23,8 +23,6 @@
****************************************************************************/
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
/****************************************************************************
* Public Functions

View file

@ -22,12 +22,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <stdio.h>
#include "libc.h"
#include <nuttx/streams.h>
/****************************************************************************
* Public Functions

View file

@ -42,8 +42,6 @@
#include <nuttx/compiler.h>
#include <nuttx/config.h>
/****************************************************************************
* Pre-processor Definitions
****************************************************************************/

View file

@ -22,12 +22,7 @@
* Included Files
****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <assert.h>
#include "libc.h"
#include <nuttx/streams.h>
/****************************************************************************
* Pre-processor Definitions

View file

@ -38,11 +38,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <stdio.h>
#include "libc.h"
#include <nuttx/streams.h>
/****************************************************************************
* Public Functions

View file

@ -22,11 +22,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <stdio.h>
#include "libc.h"
#include <nuttx/streams.h>
/****************************************************************************
* Public Functions

View file

@ -23,8 +23,6 @@
****************************************************************************/
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
/****************************************************************************
* Public Functions

View file

@ -22,12 +22,7 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <sys/types.h>
#include <stdio.h>
#include "libc.h"
#include <nuttx/streams.h>
/****************************************************************************
* Public Functions

View file

@ -22,18 +22,8 @@
* Included Files
****************************************************************************/
#include <nuttx/config.h>
#include <stdbool.h>
#include <stdio.h>
#include <fcntl.h>
#include <errno.h>
#include <nuttx/fs/fs.h>
#include <nuttx/streams.h>
#include "libc.h"
/****************************************************************************
* Public Functions
****************************************************************************/