libc/stream: Rename (put|get) to (putc|getc)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
6aef469c19
commit
2c56945fee
@ -342,7 +342,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
/* Initialize the output stream */
|
/* Initialize the output stream */
|
||||||
|
|
||||||
memset(priv, 0, sizeof(struct slcd_chrono_s));
|
memset(priv, 0, sizeof(struct slcd_chrono_s));
|
||||||
priv->stream.put = slcd_putc;
|
priv->stream.putc = slcd_putc;
|
||||||
#ifdef CONFIG_STDIO_LINEBUFFER
|
#ifdef CONFIG_STDIO_LINEBUFFER
|
||||||
priv->stream.flush = slcd_flush;
|
priv->stream.flush = slcd_flush;
|
||||||
#endif
|
#endif
|
||||||
|
@ -119,7 +119,7 @@ static void hidkbd_decode(FAR char *buffer, ssize_t nbytes)
|
|||||||
/* Initialize */
|
/* Initialize */
|
||||||
|
|
||||||
memset(&state, 0, sizeof(struct kbd_getstate_s));
|
memset(&state, 0, sizeof(struct kbd_getstate_s));
|
||||||
kbdstream.stream.get = hidkbd_getstream;
|
kbdstream.stream.getc = hidkbd_getstream;
|
||||||
kbdstream.stream.nget = 0;
|
kbdstream.stream.nget = 0;
|
||||||
kbdstream.buffer = buffer;
|
kbdstream.buffer = buffer;
|
||||||
kbdstream.nbytes = nbytes;
|
kbdstream.nbytes = nbytes;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* apps/examples/clcd/slcd_main.c
|
* apps/examples/slcd/slcd_main.c
|
||||||
*
|
*
|
||||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||||
* contributor license agreements. See the NOTICE file distributed with
|
* contributor license agreements. See the NOTICE file distributed with
|
||||||
@ -269,7 +269,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
/* Initialize the output stream */
|
/* Initialize the output stream */
|
||||||
|
|
||||||
memset(priv, 0, sizeof(struct slcd_test_s));
|
memset(priv, 0, sizeof(struct slcd_test_s));
|
||||||
priv->stream.put = slcd_putc;
|
priv->stream.putc = slcd_putc;
|
||||||
#ifdef CONFIG_STDIO_LINEBUFFER
|
#ifdef CONFIG_STDIO_LINEBUFFER
|
||||||
priv->stream.flush = slcd_flush;
|
priv->stream.flush = slcd_flush;
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user