Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

introduce SCPI_HelpQ with descriptions #135

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
28b17f7
output block data with delimiter
MisterHW Feb 1, 2022
8ed2623
fix typos
MisterHW Feb 2, 2022
bc4f1d5
introduce SCPI_HelpQ
MisterHW Feb 3, 2022
315f20d
introduce help search
MisterHW Feb 7, 2022
159fe83
drop C++20 keyword
MisterHW Feb 7, 2022
d099d9a
rename to USE_HELP_FILTER
MisterHW Feb 7, 2022
aa660db
fix expression
MisterHW Feb 7, 2022
1460793
add full command descriptions to examples common def, set desc. defau…
MisterHW Jan 6, 2023
7d0c83d
clean-up
MisterHW Jan 7, 2023
c394eb9
propagate MODE to Makefile for cross-compiling
MisterHW Jan 7, 2023
1e1b594
provide more elaborate description depending on USE_HELP_FILTER
MisterHW Jan 14, 2023
f7c4cc4
Merge branch 'j123b567:master' into scpi_helpq_enhancement
MisterHW Jan 16, 2023
b3668be
Merge branch 'j123b567:master' into scpi_helpq_enhancement
MisterHW Jan 17, 2023
36ddafe
strncasestr, strncasestrn_s, pp_xstr clean-up and formatting
MisterHW Jan 17, 2023
9c66dcd
fix C89 issue (FALSE, for syntax)
MisterHW Jan 17, 2023
0e7c828
remove strcasestr
MisterHW Jan 17, 2023
5dfac2b
strncasecmp -> SCPIDEFINE_strncasecmp
MisterHW Jan 17, 2023
5153e03
C style comments
MisterHW Jan 17, 2023
8aa90a7
split off HELP? into help.h/.c
MisterHW Jan 17, 2023
31a3e44
add help.c, help.h to Makefile
MisterHW Jan 17, 2023
d8a5d24
redo delete SCPI_HelpQ
MisterHW Jan 17, 2023
63f5e88
Revert "propagate MODE to Makefile for cross-compiling"
MisterHW Jan 17, 2023
d803ffe
simply SCPI_CMD_LIST_END definition
MisterHW Jan 17, 2023
a44b9aa
add missing ,
MisterHW Jan 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typos
  • Loading branch information
MisterHW committed Feb 3, 2022
commit 8ed26233d7cb833337434f4e02ad1cb531722310
16 changes: 8 additions & 8 deletions libscpi/inc/scpi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -49,17 +49,17 @@ extern "C" {
#endif

/* set the termination character(s) */
#define LINE_ENDING_CR "\r" /* use a <CR> carriage return as termination charcter */
#define LINE_ENDING_LF "\n" /* use a <LF> line feed as termination charcter */
#define LINE_ENDING_CRLF "\r\n" /* use <CR><LF> carriage return + line feed as termination charcters */
#define LINE_ENDING_CR "\r" /* use a <CR> carriage return as termination character */
#define LINE_ENDING_LF "\n" /* use a <LF> line feed as termination character */
#define LINE_ENDING_CRLF "\r\n" /* use <CR><LF> carriage return + line feed as termination characters */

#ifndef SCPI_LINE_ENDING
#define SCPI_LINE_ENDING LINE_ENDING_CRLF
#endif

/**
* Detect, if it has limited resources or it is running on a full blown operating system.
* All values can be overiden by scpi_user_config.h
* All values can be overridden by scpi_user_config.h
*/
#define SYSTEM_BARE_METAL 0
#define SYSTEM_FULL_BLOWN 1
Expand All @@ -76,8 +76,8 @@ extern "C" {
* 0 = Minimal set of errors
* 1 = Full set of errors
*
* For small systems, full set of errors will occupy large ammount of data
* It is enabled by default on full blown systems and disabled on limited bare metal systems
* For small systems, full set of errors will occupy large amount of data.
* It is enabled by default on full blown systems and disabled on limited bare metal systems.
*/
#ifndef USE_FULL_ERROR_LIST
#define USE_FULL_ERROR_LIST SYSTEM_TYPE
Expand Down Expand Up @@ -174,14 +174,14 @@ extern "C" {
#define USE_UNITS_ELECTRIC_CHARGE_CONDUCTANCE SYSTEM_TYPE
#endif

/* define local macros depending on existance of strnlen */
/* define local macros depending on existence of strnlen */
#if HAVE_STRNLEN
#define SCPIDEFINE_strnlen(s, l) strnlen((s), (l))
#else
#define SCPIDEFINE_strnlen(s, l) BSD_strnlen((s), (l))
#endif

/* define local macros depending on existance of strncasecmp and strnicmp */
/* define local macros depending on existence of strncasecmp and strnicmp */
#if HAVE_STRNCASECMP
#define SCPIDEFINE_strncasecmp(s1, s2, l) strncasecmp((s1), (s2), (l))
#elif HAVE_STRNICMP
Expand Down