mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
Refine the preprocess conditional guard style
This commit is contained in:
parent
e0dcfa0c55
commit
1154735ca6
48 changed files with 73 additions and 73 deletions
|
|
@ -67,7 +67,7 @@ struct fb_state_s
|
|||
int fd;
|
||||
struct fb_videoinfo_s vinfo;
|
||||
struct fb_planeinfo_s pinfo;
|
||||
#ifdef CONFIG_FB_OVERLAY
|
||||
#ifdef CONFIG_FB_OVERLAY
|
||||
struct fb_overlayinfo_s oinfo;
|
||||
#endif
|
||||
FAR void *fbmem;
|
||||
|
|
|
|||
|
|
@ -63,4 +63,4 @@ void fbdev_map(int32_t x1, int32_t y1, int32_t x2, int32_t y2,
|
|||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /*__APPS_EXAMPLES_LVGLDEMO_FBDEV_H*/
|
||||
#endif /*__APPS_EXAMPLES_LVGLDEMO_FBDEV_H */
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ int main(int argc, FAR char *argv[])
|
|||
}
|
||||
|
||||
#endif /* CONFIG_EXAMPLES_MODULE_ROMFS */
|
||||
#else /* CONFIG_EXAMPLES_MODULE_BUILTINFS */
|
||||
#else /* CONFIG_EXAMPLES_MODULE_BUILTINFS */
|
||||
/* An external file system is being used */
|
||||
|
||||
#if defined(CONFIG_EXAMPLES_MODULE_FSMOUNT)
|
||||
|
|
@ -263,7 +263,7 @@ int main(int argc, FAR char *argv[])
|
|||
}
|
||||
}
|
||||
while (ret < 0);
|
||||
#endif /* CONFIG_EXAMPLES_MODULE_FSREMOVEABLE */
|
||||
#endif /* CONFIG_EXAMPLES_MODULE_FSREMOVEABLE */
|
||||
|
||||
/* Mount the external file system */
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_FSUTILS_PASSWD_PASSWD_H
|
||||
#define __APPS_FSUTILS_PASSWD_PASSWD_H 1
|
||||
#define __APPS_FSUTILS_PASSWD_PASSWD_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_GRAPHICS_PDCURS34_INCLUDE_CURSPRIV_H
|
||||
#define __APPS_GRAPHICS_PDCURS34_INCLUDE_CURSPRIV_H 1
|
||||
#define __APPS_GRAPHICS_PDCURS34_INCLUDE_CURSPRIV_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -44,7 +44,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_GRAPHICS_PDCURS34_INCLUDE_TERM_H
|
||||
#define __APPS_GRAPHICS_PDCURS34_INCLUDE_TERM_H 1
|
||||
#define __APPS_GRAPHICS_PDCURS34_INCLUDE_TERM_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -76,7 +76,7 @@ int PDC_get_columns_term(FAR SCREEN *sp)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_SYSTEM_TERMCURSES */
|
||||
#endif /* CONFIG_SYSTEM_TERMCURSES */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: PDC_get_rows
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_GRAPHICS_PDCURS34_NUTTX_PDCNUTTX_H
|
||||
#define __APPS_GRAPHICS_PDCURS34_NUTTX_PDCNUTTX_H 1
|
||||
#define __APPS_GRAPHICS_PDCURS34_NUTTX_PDCNUTTX_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -159,7 +159,7 @@ static FAR struct pdc_context_s *PDC_ctx_new(void)
|
|||
ctx->next = g_pdc_ctx_head;
|
||||
g_pdc_ctx_head = ctx;
|
||||
}
|
||||
#endif /* CONFIG_PDCURSES_MULTITHREAD_HASH */
|
||||
#endif /* CONFIG_PDCURSES_MULTITHREAD_HASH */
|
||||
|
||||
return ctx;
|
||||
}
|
||||
|
|
@ -347,5 +347,5 @@ void PDC_ctx_free(void)
|
|||
free(ctx->panel_ctx);
|
||||
free(ctx->term_ctx);
|
||||
free(ctx);
|
||||
#endif /* CONFIG_PDCURSES_MULTITHREAD_HASH */
|
||||
#endif /* CONFIG_PDCURSES_MULTITHREAD_HASH */
|
||||
}
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __APPS_GRAPHICS_SLCD_SLCD_H
|
||||
#define __APPS_GRAPHICS_SLCD_SLCD_H 1
|
||||
#define __APPS_GRAPHICS_SLCD_SLCD_H
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Included Files
|
||||
|
|
|
|||
|
|
@ -208,4 +208,4 @@ ssize_t tiff_wordalign(int fd, size_t size);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __APPS_GRAPHICS_TIFF_TIFF_INTERNAL_H */
|
||||
#endif /* __APPS_GRAPHICS_TIFF_TIFF_INTERNAL_H */
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_CANUTILS_OBD_H
|
||||
#define __APPS_INCLUDE_CANUTILS_OBD_H 1
|
||||
#define __APPS_INCLUDE_CANUTILS_OBD_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_CANUTILS_OBD_FRAME_H
|
||||
#define __APPS_INCLUDE_CANUTILS_OBD_FRAME_H 1
|
||||
#define __APPS_INCLUDE_CANUTILS_OBD_FRAME_H
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_CANUTILS_OBD_PID_H
|
||||
#define __APPS_INCLUDE_CANUTILS_OBD_PID_H 1
|
||||
#define __APPS_INCLUDE_CANUTILS_OBD_PID_H
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_FSUTILS_FLASH_ERASEALL_H
|
||||
#define __APPS_INCLUDE_FSUTILS_FLASH_ERASEALL_H 1
|
||||
#define __APPS_INCLUDE_FSUTILS_FLASH_ERASEALL_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_FSUTILS_PASSWD_H
|
||||
#define __APPS_INCLUDE_FSUTILS_PASSWD_H 1
|
||||
#define __APPS_INCLUDE_FSUTILS_PASSWD_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_GRAPHICS_CURSES_H
|
||||
#define __APPS_INCLUDE_GRAPHICS_CURSES_H 1
|
||||
#define __APPS_INCLUDE_GRAPHICS_CURSES_H
|
||||
|
||||
/* PDCurses definitions list: (Only define those needed)
|
||||
*
|
||||
|
|
@ -1525,4 +1525,4 @@ int PDC_save_key_modifiers(bool);
|
|||
}
|
||||
#endif
|
||||
|
||||
#endif /* __APPS_INCLUDE_GRAPHICS_CURSES_H */
|
||||
#endif /* __APPS_INCLUDE_GRAPHICS_CURSES_H */
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_GRAPHICS_PANEL_H
|
||||
#define __APPS_INCLUDE_GRAPHICS_PANEL_H 1
|
||||
#define __APPS_INCLUDE_GRAPHICS_PANEL_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#ifndef __APPS_INCLUDE_GRAPHICS_SLCD_H
|
||||
#define __APPS_INCLUDE_GRAPHICS_SLCD_H 1
|
||||
#define __APPS_INCLUDE_GRAPHICS_SLCD_H
|
||||
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
// Included Files
|
||||
|
|
|
|||
|
|
@ -336,4 +336,4 @@ namespace Twm4Nx
|
|||
// Public Function Prototypes
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CICONMGR_HXX
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CICONMGR_HXX
|
||||
|
|
|
|||
|
|
@ -355,4 +355,4 @@ namespace Twm4Nx
|
|||
};
|
||||
}
|
||||
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CMENUS_HXX
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CMENUS_HXX
|
||||
|
|
|
|||
|
|
@ -295,4 +295,4 @@ namespace Twm4Nx
|
|||
};
|
||||
}
|
||||
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CRESIZE_HXX
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CRESIZE_HXX
|
||||
|
|
|
|||
|
|
@ -943,4 +943,4 @@ namespace Twm4Nx
|
|||
uint8_t flags);
|
||||
}
|
||||
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CWINDOW_HXX
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CWINDOW_HXX
|
||||
|
|
|
|||
|
|
@ -309,4 +309,4 @@ namespace Twm4Nx
|
|||
};
|
||||
}
|
||||
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CWINDOWFACTORY_HXX
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_CWINDOWFACTORY_HXX
|
||||
|
|
|
|||
|
|
@ -68,5 +68,5 @@ namespace Twm4Nx
|
|||
// Public Function Prototypes
|
||||
/////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#endif // CONFIG_NX_SWCURSOR
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_TWM4NX_CURSOR_HXX
|
||||
#endif // CONFIG_NX_SWCURSOR
|
||||
#endif // __APPS_INCLUDE_GRAPHICS_TWM4NX_TWM4NX_CURSOR_HXX
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@
|
|||
* for the thread. Use a default if the user provided no stacksize.
|
||||
*/
|
||||
|
||||
#ifndef CONFIG_NETUTILS_HTTPDSTACKSIZE
|
||||
#ifndef CONFIG_NETUTILS_HTTPDSTACKSIZE
|
||||
# define CONFIG_NETUTILS_HTTPDSTACKSIZE 4096
|
||||
#endif
|
||||
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_NETUTILS_NTPCLIENT_H
|
||||
#define __APPS_INCLUDE_NETUTILS_NTPCLIENT_H 1
|
||||
#define __APPS_INCLUDE_NETUTILS_NTPCLIENT_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@
|
|||
*/
|
||||
|
||||
#ifndef __APPS_INCLUDE_NETUTILS_TELNETC_H
|
||||
#define __APPS_INCLUDE_NETUTILS_TELNETC_H 1
|
||||
#define __APPS_INCLUDE_NETUTILS_TELNETC_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_SYSTEM_NXPLAYER_H
|
||||
#define __APPS_INCLUDE_SYSTEM_NXPLAYER_H 1
|
||||
#define __APPS_INCLUDE_SYSTEM_NXPLAYER_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_INCLUDE_SYSTEM_NXRECORDER_H
|
||||
#define __APPS_INCLUDE_SYSTEM_NXRECORDER_H 1
|
||||
#define __APPS_INCLUDE_SYSTEM_NXRECORDER_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -51,7 +51,7 @@
|
|||
/* Exclude setjmp */
|
||||
|
||||
#ifdef CONFIG_TESTING_UNITY_EXCLUDE_SETJMP
|
||||
# define UNITY_EXCLUDE_SETJMP_H 1
|
||||
# define UNITY_EXCLUDE_SETJMP_H
|
||||
#endif
|
||||
|
||||
/* Enable output coloring */
|
||||
|
|
|
|||
|
|
@ -99,8 +99,8 @@ typedef unsigned int flex_uint32_t;
|
|||
|
||||
#define YY_USE_CONST
|
||||
|
||||
#endif /* defined (__STDC__) */
|
||||
#endif /* ! __cplusplus */
|
||||
#endif /* defined (__STDC__) */
|
||||
#endif /* ! __cplusplus */
|
||||
|
||||
#ifdef YY_USE_CONST
|
||||
#define yyconst const
|
||||
|
|
@ -4110,7 +4110,7 @@ static int yy_get_next_buffer (void)
|
|||
|
||||
return c;
|
||||
}
|
||||
#endif /* ifndef YY_NO_INPUT */
|
||||
#endif /* ifndef YY_NO_INPUT */
|
||||
|
||||
/** Immediately switch to a different input stream.
|
||||
* @param input_file A readable stream.
|
||||
|
|
|
|||
|
|
@ -309,4 +309,4 @@ eMBMasterReqErrCode eMBMasterWaitRequestFinish(void)
|
|||
return eErrStatus;
|
||||
}
|
||||
|
||||
#endif /* defined(CONFIG_MB_RTU_MASTER) || defined(CONFIG_MB_ASCII_MASTER) */
|
||||
#endif /* defined(CONFIG_MB_RTU_MASTER) || defined(CONFIG_MB_ASCII_MASTER) */
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_NETUTILS_NTPCLIENT_NTPV3_H
|
||||
#define __APPS_NETUTILS_NTPCLIENT_NTPV3_H 1
|
||||
#define __APPS_NETUTILS_NTPCLIENT_NTPV3_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -247,6 +247,6 @@
|
|||
# ifdef CONFIG_CPP_HAVE_WARNING
|
||||
# warning "THTTPD not built because dependencies not selected in configuration"
|
||||
# endif
|
||||
#endif /* Dependencies not provided */
|
||||
#endif /* Dependencies not provided */
|
||||
|
||||
#endif /* __NETUTILS_THTTPD_CONFIG_H */
|
||||
|
|
|
|||
|
|
@ -2049,7 +2049,7 @@ static int sockaddr_check(httpd_sockaddr *saP)
|
|||
case AF_INET:
|
||||
return 1;
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
case AF_INET6:
|
||||
return 1;
|
||||
#endif
|
||||
|
|
@ -2067,7 +2067,7 @@ static size_t sockaddr_len(httpd_sockaddr *saP)
|
|||
case AF_INET:
|
||||
return sizeof(struct sockaddr_in);
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
case AF_INET6:
|
||||
return sizeof(struct sockaddr_in6);
|
||||
#endif
|
||||
|
|
@ -3424,7 +3424,7 @@ int httpd_start_request(httpd_conn *hc, struct timeval *nowP)
|
|||
|
||||
char *httpd_ntoa(httpd_sockaddr *saP)
|
||||
{
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
static char str[200];
|
||||
|
||||
if (getnameinfo
|
||||
|
|
|
|||
|
|
@ -156,7 +156,7 @@
|
|||
|
||||
/* A multi-family sockaddr. */
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
typedef struct sockaddr_in6 httpd_sockaddr;
|
||||
#else
|
||||
typedef struct sockaddr_in httpd_sockaddr;
|
||||
|
|
|
|||
|
|
@ -38,4 +38,4 @@
|
|||
|
||||
extern time_t tdate_parse(char *str);
|
||||
|
||||
#endif /* __NETUTILS_TDATE_PARSE_H */
|
||||
#endif /* __NETUTILS_TDATE_PARSE_H */
|
||||
|
|
|
|||
|
|
@ -668,7 +668,7 @@ int thttpd_main(int argc, char **argv)
|
|||
|
||||
/* Setup host address */
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
# error "IPv6 support not yet implemented"
|
||||
#else
|
||||
sa.sin_family = AF_INET;
|
||||
|
|
|
|||
|
|
@ -1020,7 +1020,7 @@ int cmd_irqinfo(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
|||
# ifndef CONFIG_NSH_DISABLE_SH
|
||||
int cmd_sh(FAR struct nsh_vtbl_s *vtbl, int argc, char **argv);
|
||||
# endif
|
||||
#endif /* CONFIG_NFILE_STREAMS && !CONFIG_NSH_DISABLESCRIPT */
|
||||
#endif /* CONFIG_NFILE_STREAMS && !CONFIG_NSH_DISABLESCRIPT */
|
||||
|
||||
#ifdef NSH_HAVE_DIROPTS
|
||||
# ifndef CONFIG_NSH_DISABLE_MKDIR
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@
|
|||
* Private Data
|
||||
****************************************************************************/
|
||||
|
||||
#ifndef CONFIG_NSH_DISABLE_DATE
|
||||
#ifndef CONFIG_NSH_DISABLE_DATE
|
||||
static FAR const char * const g_datemontab[] =
|
||||
{
|
||||
"jan", "feb", "mar", "apr", "may", "jun",
|
||||
|
|
|
|||
|
|
@ -155,7 +155,7 @@ int platform_setconfig(enum config_data_e id, int instance,
|
|||
|
||||
#else
|
||||
break;
|
||||
#endif /* CONFIG_MIKROE_STM32F4_CONFIGDATA_ROM */
|
||||
#endif /* CONFIG_MIKROE_STM32F4_CONFIGDATA_ROM */
|
||||
|
||||
default:
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -356,10 +356,10 @@ static int nxplayer_opendevice(FAR struct nxplayer_s *pplayer, int format,
|
|||
dirp = opendir("/dev");
|
||||
#else
|
||||
dirp = opendir(CONFIG_AUDIO_DEV_PATH);
|
||||
#endif /* CONFIG_AUDIO_DEV_ROOT */
|
||||
#endif /* CONFIG_AUDIO_DEV_ROOT */
|
||||
#else
|
||||
dirp = opendir("/dev/audio");
|
||||
#endif /* CONFIG_AUDIO_CUSTOM_DEV_PATH */
|
||||
#endif /* CONFIG_AUDIO_CUSTOM_DEV_PATH */
|
||||
if (dirp == NULL)
|
||||
{
|
||||
int errcode = errno;
|
||||
|
|
@ -382,10 +382,10 @@ static int nxplayer_opendevice(FAR struct nxplayer_s *pplayer, int format,
|
|||
#else
|
||||
snprintf(path, sizeof(path), CONFIG_AUDIO_DEV_PATH "/%s",
|
||||
pDevice->d_name);
|
||||
#endif /* CONFIG_AUDIO_DEV_ROOT */
|
||||
#endif /* CONFIG_AUDIO_DEV_ROOT */
|
||||
#else
|
||||
snprintf(path, sizeof(path), "/dev/audio/%s", pDevice->d_name);
|
||||
#endif /* CONFIG_AUDIO_CUSTOM_DEV_PATH */
|
||||
#endif /* CONFIG_AUDIO_CUSTOM_DEV_PATH */
|
||||
|
||||
if ((pplayer->devFd = open(path, O_RDWR)) != -1)
|
||||
{
|
||||
|
|
@ -473,7 +473,7 @@ static int nxplayer_opendevice(FAR struct nxplayer_s *pplayer, int format,
|
|||
|
||||
closedir(dirp);
|
||||
}
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_DEVICE_SEARCH */
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_DEVICE_SEARCH */
|
||||
|
||||
/* Device not found */
|
||||
|
||||
|
|
@ -585,7 +585,7 @@ static inline int nxplayer_fmtfromextension(FAR struct nxplayer_s *pplayer,
|
|||
|
||||
return AUDIO_FMT_UNDEF;
|
||||
}
|
||||
#endif /* CONFIG_NXPLAYER_FMT_FROM_EXT */
|
||||
#endif /* CONFIG_NXPLAYER_FMT_FROM_EXT */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_fmtfromheader
|
||||
|
|
@ -1282,7 +1282,7 @@ int nxplayer_setvolume(FAR struct nxplayer_s *pplayer, uint16_t volume)
|
|||
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_VOLUME */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_VOLUME */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_setequalization
|
||||
|
|
@ -1492,7 +1492,7 @@ int nxplayer_pause(FAR struct nxplayer_s *pplayer)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_resume
|
||||
|
|
@ -1522,7 +1522,7 @@ int nxplayer_resume(FAR struct nxplayer_s *pplayer)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_fforward
|
||||
|
|
@ -1740,7 +1740,7 @@ int nxplayer_setdevice(FAR struct nxplayer_s *pplayer,
|
|||
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE */
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_stop
|
||||
|
|
@ -1786,7 +1786,7 @@ int nxplayer_stop(FAR struct nxplayer_s *pplayer)
|
|||
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_STOP */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_STOP */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_playinternal
|
||||
|
|
@ -1870,14 +1870,14 @@ static int nxplayer_playinternal(FAR struct nxplayer_s *pplayer,
|
|||
#else
|
||||
auderr("ERROR: Could not open %s or %s\n", pFilename, path);
|
||||
return -ENOENT;
|
||||
#endif /* CONFIG_NXPLAYER_MEDIA_SEARCH */
|
||||
#endif /* CONFIG_NXPLAYER_MEDIA_SEARCH */
|
||||
}
|
||||
|
||||
#else /* CONFIG_NXPLAYER_INCLUDE_MEDIADIR */
|
||||
|
||||
auderr("ERROR: Could not open %s\n", pFilename);
|
||||
return -ENOENT;
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_MEDIADIR */
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_MEDIADIR */
|
||||
}
|
||||
|
||||
#ifdef CONFIG_NXPLAYER_FMT_FROM_EXT
|
||||
|
|
@ -2398,4 +2398,4 @@ int nxplayer_systemreset(FAR struct nxplayer_s *pplayer)
|
|||
pplayer->devFd = -1;
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_SYSTEM_RESET */
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_SYSTEM_RESET */
|
||||
|
|
|
|||
|
|
@ -564,7 +564,7 @@ static int nxplayer_cmd_device(FAR struct nxplayer_s *pPlayer, char *parg)
|
|||
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE */
|
||||
#endif /* CONFIG_NXPLAYER_INCLUDE_PREFERRED_DEVICE */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxplayer_cmd_quit
|
||||
|
|
|
|||
|
|
@ -676,7 +676,7 @@ int nxrecorder_pause(FAR struct nxrecorder_s *precorder)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxrecorder_resume
|
||||
|
|
@ -706,7 +706,7 @@ int nxrecorder_resume(FAR struct nxrecorder_s *precorder)
|
|||
|
||||
return ret;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_PAUSE_RESUME */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxrecorder_setdevice
|
||||
|
|
@ -787,7 +787,7 @@ int nxrecorder_stop(FAR struct nxrecorder_s *precorder)
|
|||
|
||||
return OK;
|
||||
}
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_STOP */
|
||||
#endif /* CONFIG_AUDIO_EXCLUDE_STOP */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: nxrecorder_recordraw
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@
|
|||
****************************************************************************/
|
||||
|
||||
#ifndef __APPS_SYSTEM_READLINE_READLINE_H
|
||||
#define __APPS_SYSTEM_READLINE_READLINE_H 1
|
||||
#define __APPS_SYSTEM_READLINE_READLINE_H
|
||||
|
||||
/****************************************************************************
|
||||
* Included Files
|
||||
|
|
|
|||
|
|
@ -365,7 +365,7 @@ static const struct keycodes_s g_ctrl_keycodes[] =
|
|||
|
||||
{ TINFO_ENTRY(NULL, NULL, -1 ) }
|
||||
};
|
||||
#endif /* CONFIG_SYSTEM_TERMCURSES_VT100_OSX_ALT_CODES */
|
||||
#endif /* CONFIG_SYSTEM_TERMCURSES_VT100_OSX_ALT_CODES */
|
||||
|
||||
/************************************************************************************
|
||||
* Public Data
|
||||
|
|
|
|||
|
|
@ -3351,7 +3351,7 @@ static void vi_bottom_line_debug(FAR struct vi_s *vi)
|
|||
|
||||
vi_putch(vi, '"');
|
||||
}
|
||||
#endif /* ENABLE_BOTTOM_LINE_DEBUG */
|
||||
#endif /* ENABLE_BOTTOM_LINE_DEBUG */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: vi_findnext
|
||||
|
|
@ -3439,7 +3439,7 @@ static void vi_saverepeat(FAR struct vi_s *vi, uint16_t ch)
|
|||
vi->repeatvalue = vi->value;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT */
|
||||
#endif /* CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: vi_appendrepeat
|
||||
|
|
@ -3466,7 +3466,7 @@ static void vi_appendrepeat(FAR struct vi_s *vi, uint16_t ch)
|
|||
vi->cmdbuf[vi->cmdcount++] = ch;
|
||||
}
|
||||
}
|
||||
#endif /* CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT */
|
||||
#endif /* CONFIG_SYSTEM_VI_INCLUDE_COMMAND_REPEAT */
|
||||
|
||||
/****************************************************************************
|
||||
* Name: vi_cmd_mode
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue