mbed library sources. Supersedes mbed-src.
Dependents: Nucleo_Hello_Encoder BLE_iBeaconScan AM1805_DEMO DISCO-F429ZI_ExportTemplate1 ... more
Diff: platform/Stream.h
- Revision:
- 189:f392fc9709a3
- Parent:
- 187:0387e8f68319
--- a/platform/Stream.h Thu Nov 08 11:46:34 2018 +0000 +++ b/platform/Stream.h Wed Feb 20 22:31:08 2019 +0000 @@ -1,5 +1,6 @@ /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited + * SPDX-License-Identifier: Apache-2.0 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -20,6 +21,7 @@ #include "platform/FileLike.h" #include "platform/FileHandle.h" #include "platform/NonCopyable.h" +#include "mbed_toolchain.h" #include <cstdio> #include <cstdarg> @@ -32,8 +34,6 @@ */ extern void mbed_set_unbuffered_stream(std::FILE *_file); -extern int mbed_getc(std::FILE *_file); -extern char *mbed_gets(char *s, int size, std::FILE *_file); /** File stream * @@ -49,10 +49,10 @@ int puts(const char *s); int getc(); char *gets(char *s, int size); - int printf(const char *format, ...); - int scanf(const char *format, ...); - int vprintf(const char *format, std::va_list args); - int vscanf(const char *format, std::va_list args); + int printf(const char *format, ...) MBED_PRINTF_METHOD(1, 2); + int scanf(const char *format, ...) MBED_SCANF_METHOD(1, 2); + int vprintf(const char *format, std::va_list args) MBED_PRINTF_METHOD(1, 0); + int vscanf(const char *format, std::va_list args) MBED_SCANF_METHOD(1, 0); operator std::FILE *() {