You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by gu...@apache.org on 2021/11/19 11:21:42 UTC

[incubator-nuttx] branch master updated: libc/stdio: Move source files to the right Makefile section

This is an automated email from the ASF dual-hosted git repository.

gustavonihei pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git


The following commit(s) were added to refs/heads/master by this push:
     new 55311ea  libc/stdio: Move source files to the right Makefile section
55311ea is described below

commit 55311ea3dfec9f64d7d5338382a60f5a897caa13
Author: Xiang Xiao <xi...@xiaomi.com>
AuthorDate: Mon Nov 15 04:07:48 2021 +0800

    libc/stdio: Move source files to the right Makefile section
    
    Signed-off-by: Xiang Xiao <xi...@xiaomi.com>
---
 libs/libc/stdio/Make.defs     | 13 ++++++-------
 libs/libc/stdio/lib_sprintf.c |  2 +-
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/libs/libc/stdio/Make.defs b/libs/libc/stdio/Make.defs
index 5456672..7b3e743 100644
--- a/libs/libc/stdio/Make.defs
+++ b/libs/libc/stdio/Make.defs
@@ -23,17 +23,18 @@
 
 CSRCS += lib_fileno.c lib_printf.c lib_sprintf.c lib_asprintf.c
 CSRCS += lib_snprintf.c lib_libsprintf.c lib_vsprintf.c lib_vasprintf.c
-CSRCS += lib_vsnprintf.c lib_dprintf.c lib_vdprintf.c
+CSRCS += lib_vsnprintf.c lib_dprintf.c lib_vdprintf.c lib_vprintf.c
 CSRCS += lib_perror.c lib_putchar.c lib_getchar.c lib_puts.c
 CSRCS += lib_meminstream.c lib_memoutstream.c lib_memsistream.c
-CSRCS += lib_memsostream.c lib_lowoutstream.c
+CSRCS += lib_memsostream.c lib_lowoutstream.c lib_rawinstream.c
+CSRCS += lib_rawoutstream.c lib_rawsistream.c lib_rawsostream.c
 CSRCS += lib_zeroinstream.c lib_nullinstream.c lib_nulloutstream.c
 CSRCS += lib_sscanf.c lib_vsscanf.c lib_libvscanf.c lib_libnoflush.c
 CSRCS += lib_libsnoflush.c lib_libvsprintf.c lib_ultoa_invert.c
 ifeq ($(CONFIG_LIBC_FLOATINGPOINT),y)
 CSRCS += lib_dtoa_engine.c lib_dtoa_data.c
 endif
-CSRCS += lib_tempnam.c lib_tmpnam.c
+CSRCS += lib_remove.c lib_tempnam.c lib_tmpnam.c
 
 # The remaining sources files depend upon C streams
 
@@ -44,11 +45,9 @@ CSRCS += lib_getdelim.c lib_fgetpos.c lib_getc.c lib_fgetc.c
 CSRCS += lib_fgets.c lib_gets_s.c lib_gets.c lib_libfgets.c lib_fwrite.c
 CSRCS += lib_libfwrite.c lib_fflush.c lib_libflushall.c lib_libfflush.c
 CSRCS += lib_rdflush.c lib_wrflush.c lib_putc.c lib_fputc.c
-CSRCS += lib_fputs.c lib_ungetc.c lib_vprintf.c lib_fprintf.c
+CSRCS += lib_fputs.c lib_ungetc.c lib_fprintf.c
 CSRCS += lib_vfprintf.c lib_stdinstream.c lib_stdoutstream.c lib_stdsistream.c
-CSRCS += lib_stdsostream.c lib_feof.c lib_ferror.c
-CSRCS += lib_rawinstream.c lib_rawoutstream.c lib_rawsistream.c
-CSRCS += lib_rawsostream.c lib_remove.c lib_rewind.c lib_clearerr.c
+CSRCS += lib_stdsostream.c lib_feof.c lib_ferror.c lib_rewind.c lib_clearerr.c
 CSRCS += lib_scanf.c lib_vscanf.c lib_fscanf.c lib_vfscanf.c lib_tmpfile.c
 CSRCS += lib_setbuf.c lib_setvbuf.c lib_libstream.c lib_libfilesem.c
 endif
diff --git a/libs/libc/stdio/lib_sprintf.c b/libs/libc/stdio/lib_sprintf.c
index c30be01..38ca8f7 100644
--- a/libs/libc/stdio/lib_sprintf.c
+++ b/libs/libc/stdio/lib_sprintf.c
@@ -33,7 +33,7 @@
  * sprintf
  ****************************************************************************/
 
-int sprintf (FAR char *buf, FAR const IPTR char *fmt, ...)
+int sprintf(FAR char *buf, FAR const IPTR char *fmt, ...)
 {
   struct lib_memoutstream_s memoutstream;
   va_list ap;