You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2023/05/04 12:20:02 UTC

[nuttx-apps] branch master updated: system/termcurses: Fix nxstyle errors

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 6a5912c76 system/termcurses: Fix nxstyle errors
6a5912c76 is described below

commit 6a5912c76cdf793be927c2a0df690753de18c572
Author: simbit18 <10...@users.noreply.github.com>
AuthorDate: Thu May 4 11:56:31 2023 +0200

    system/termcurses: Fix nxstyle errors
    
    error: Long line found
---
 system/termcurses/tcurses_priv.h | 20 +++++++--------
 system/termcurses/termcurses.c   | 54 +++++++++++++++++++++-------------------
 2 files changed, 38 insertions(+), 36 deletions(-)

diff --git a/system/termcurses/tcurses_priv.h b/system/termcurses/tcurses_priv.h
index 06650be13..853d45c3a 100644
--- a/system/termcurses/tcurses_priv.h
+++ b/system/termcurses/tcurses_priv.h
@@ -1,4 +1,4 @@
-/************************************************************************************
+/****************************************************************************
  * apps/system/termcurses/tcurses_priv.h
  *
  * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,29 +16,29 @@
  * License for the specific language governing permissions and limitations
  * under the License.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 #ifndef __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H
 #define __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H
 
-/************************************************************************************
+/****************************************************************************
  * Included Files
- ************************************************************************************/
+ ****************************************************************************/
 
 #include <system/termcurses.h>
 
-/************************************************************************************
+/****************************************************************************
  * Pre-processor Definitions
- ************************************************************************************/
+ ****************************************************************************/
 
-/************************************************************************************
+/****************************************************************************
  * Public Type Definitions
- ************************************************************************************/
+ ****************************************************************************/
 
 extern struct termcurses_dev_s g_vt100_tcurs;
 
-/************************************************************************************
+/****************************************************************************
  * Public Function Prototypes
- ************************************************************************************/
+ ****************************************************************************/
 
 #endif /* __APPS_SYSTEM_TERMCURSES_TCURSES_PRIV_H */
diff --git a/system/termcurses/termcurses.c b/system/termcurses/termcurses.c
index c9d49be4e..1b6c6d392 100644
--- a/system/termcurses/termcurses.c
+++ b/system/termcurses/termcurses.c
@@ -1,4 +1,4 @@
-/************************************************************************************
+/****************************************************************************
  * apps/system/termcurses/termcurses.c
  *
  * Licensed to the Apache Software Foundation (ASF) under one or more
@@ -16,11 +16,11 @@
  * License for the specific language governing permissions and limitations
  * under the License.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
-/************************************************************************************
+/****************************************************************************
  * Included Files
- ************************************************************************************/
+ ****************************************************************************/
 
 #include <nuttx/config.h>
 
@@ -36,9 +36,9 @@
 
 #include "tcurses_priv.h"
 
-/************************************************************************************
+/****************************************************************************
  * Private Data
- ************************************************************************************/
+ ****************************************************************************/
 
 static struct termcurses_dev_s *g_termcurses_devices[] =
 {
@@ -48,18 +48,18 @@ static struct termcurses_dev_s *g_termcurses_devices[] =
   NULL
 };
 
-/************************************************************************************
+/****************************************************************************
  * Public Functions
- ************************************************************************************/
+ ****************************************************************************/
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_initterm
  *
  * Description:
  *    Allocate and initialize a termcurses_s context based on the provided
  *    term_type string.  If the string is NULL, defaults to "vt100".
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 int termcurses_initterm(FAR const char *term_type, int in_fd, int out_fd,
                         FAR struct termcurses_s **term)
@@ -115,14 +115,14 @@ int termcurses_initterm(FAR const char *term_type, int in_fd, int out_fd,
   return -ENOSYS;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_deinitterm
  *
  * Description:
  *    Free all space for the termcurses terminal and perform any specific
  *    de-initialization tasks.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 int termcurses_deinitterm(FAR struct termcurses_s *term)
 {
@@ -144,13 +144,13 @@ int termcurses_deinitterm(FAR struct termcurses_s *term)
   return result;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_moveyx
  *
  * Description:
  *   Move to location yx (row,col) on terminal
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 int termcurses_moveyx(FAR struct termcurses_s *term, int row, int col)
 {
@@ -166,13 +166,13 @@ int termcurses_moveyx(FAR struct termcurses_s *term, int row, int col)
   return -ENOSYS;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_setcolors
  *
  * Description:
  *   Configure output text to render in the specified fg/bg colors.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 int termcurses_setcolors(FAR struct termcurses_s *term,
                          FAR struct termcurses_colors_s *colors)
@@ -189,15 +189,16 @@ int termcurses_setcolors(FAR struct termcurses_s *term,
   return -ENOSYS;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_setattribute
  *
  * Description:
  *   Configure output text to render in the specified fg/bg colors.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
-int termcurses_setattribute(FAR struct termcurses_s *term, unsigned long attrib)
+int termcurses_setattribute(FAR struct termcurses_s *term,
+                            unsigned long attrib)
 {
   FAR struct termcurses_dev_s *dev = (FAR struct termcurses_dev_s *)term;
 
@@ -211,15 +212,16 @@ int termcurses_setattribute(FAR struct termcurses_s *term, unsigned long attrib)
   return -ENOSYS;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_getwinsize
  *
  * Description:
  *   Get size of terminal screen in terms of character rows and cols.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
-int termcurses_getwinsize(FAR struct termcurses_s *term, FAR struct winsize *winsz)
+int termcurses_getwinsize(FAR struct termcurses_s *term,
+                          FAR struct winsize *winsz)
 {
   FAR struct termcurses_dev_s *dev = (FAR struct termcurses_dev_s *)term;
 
@@ -233,13 +235,13 @@ int termcurses_getwinsize(FAR struct termcurses_s *term, FAR struct winsize *win
   return -ENOSYS;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_getkeycode
  *
  * Description:
  *   Get a translated key code from the terminal input.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey,
       int *keymodifiers)
@@ -256,13 +258,13 @@ int termcurses_getkeycode(FAR struct termcurses_s *term, FAR int *specialkey,
   return -1;
 }
 
-/************************************************************************************
+/****************************************************************************
  * Name: termcurses_checkkey
  *
  * Description:
  *   Check if there is a key waiting to be processed.
  *
- ************************************************************************************/
+ ****************************************************************************/
 
 bool termcurses_checkkey(FAR struct termcurses_s *term)
 {