/nrf52832-nimble/packages/NimBLE-latest/nimble/host/tools/ |
H A D | log2smtest.rb | 105 def invalid_byte_line(msg, line) argument 106 str = "invalid byte line" 111 str += "; line=#{line}" 116 def token_string_to_bytes(line, delim = ' ') argument 117 tokens = line.split(delim) 124 invalid_byte_line("token=#{token}", line) 161 line = ' ' * indent + 163 lines << line 183 def parse_pair_cmd(line, is_req) argument 203 m = re.match(line) [all …]
|
/nrf52832-nimble/rt-thread/tools/ |
H A D | gcc.py | 55 for line in f: 56 if line.find('_NEWLIB_VERSION') != -1 and line.find('"') != -1: 57 version = re.search(r'\"([^"]+)\"', line).groups()[0] 62 for line in f: 63 if line.find('_NEWLIB_VERSION') != -1 and line.find('"') != -1: 64 version = re.search(r'\"([^"]+)\"', line).groups()[0] 107 for line in stdout.split(b'\n'): 108 line = line.decode() 109 if re.search('fd_set', line): 113 if re.search('struct[ \t]+sigaction', line): [all …]
|
H A D | sconsui.py | 81 line = subprocess.get(timeout=1) 82 line = line.replace('\r', '') 83 if line: 86 builder.output.insert(END, line) 202 for line in setting: 203 line = line.replace('\n', '') 204 line = line.replace('\r', '') 205 if line.find('=') != -1: 206 items = line.split('=') 273 # line = '%s=%s\n' % ('compiler', self.compilers.get())) [all …]
|
H A D | mkdist.py | 101 for line in data: 102 if line.find('RTT_ROOT') != -1: 103 if line.find('sys.path') != -1: 106 f.write(line) 117 for line in data: 118 if line.find('RTT_ROOT') != -1: 120 if line.find('default') != -1 and found: 121 position = line.find('default') 122 line = line[0:position] + 'default "rt-thread"\n' 124 f.write(line) [all …]
|
H A D | menuconfig.py | 44 for line in config: 45 line = line.lstrip(' ').replace('\n', '').replace('\r', '') 47 if len(line) == 0: continue 49 if line[0] == '#': 50 if len(line) == 1: 58 comment_line = line[1:] 59 if line.startswith('# CONFIG_'): line = ' ' + line[9:] 60 else: line = line[1:] 62 rtconfig.write('/*%s */\n' % line) 66 setting = line.split('=')
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/libs/parser/ |
H A D | hconf.c | 2 /* Command-line: gperf -t --output-file libs/parser/hconf.c -a -C -E -g -k '1,3,$' -p -t libs/parse… 31 #line 10 "libs/parser/hconf.gperf" 189 #line 26 "libs/parser/hconf.gperf" in kconf_id_lookup() 191 #line 37 "libs/parser/hconf.gperf" in kconf_id_lookup() 194 #line 27 "libs/parser/hconf.gperf" in kconf_id_lookup() 197 #line 30 "libs/parser/hconf.gperf" in kconf_id_lookup() 199 #line 32 "libs/parser/hconf.gperf" in kconf_id_lookup() 201 #line 20 "libs/parser/hconf.gperf" in kconf_id_lookup() 203 #line 25 "libs/parser/hconf.gperf" in kconf_id_lookup() 206 #line 33 "libs/parser/hconf.gperf" in kconf_id_lookup() [all …]
|
H A D | confdata.c | 219 char *line = *lineptr; in compat_getline() local 227 if (add_byte(c, &line, slen, n) < 0) in compat_getline() 232 if (add_byte('\0', &line, slen, n) < 0) in compat_getline() 234 *lineptr = line; in compat_getline() 239 if (add_byte(c, &line, slen, n) < 0) in compat_getline() 246 line[slen-1] = '\0'; in compat_getline() 247 *lineptr = line; in compat_getline() 254 char *line = NULL; in conf_read_simple() local 314 while (compat_getline(&line, &line_asize, in) != -1) { in conf_read_simple() 317 if (line[0] == '#') { in conf_read_simple() [all …]
|
/nrf52832-nimble/rt-thread/components/net/uip/apps/telnetd/ |
H A D | telnetd.c | 46 char line[TELNETD_CONF_LINELEN]; member 73 dealloc_line(char *line) in dealloc_line() argument 75 memb_free(&linemem, line); in dealloc_line() 85 sendline(char *line) in sendline() argument 91 s.lines[i] = line; in sendline() 96 dealloc_line(line); in sendline() 103 char *line; in shell_prompt() local 104 line = alloc_line(); in shell_prompt() 105 if(line != NULL) { in shell_prompt() 106 strncpy(line, str, TELNETD_CONF_LINELEN); in shell_prompt() [all …]
|
/nrf52832-nimble/rt-thread/components/finsh/ |
H A D | shell.c | 195 /* clear line buffer before switch to new device */ in finsh_set_device() 196 memset(shell->line, 0, sizeof(shell->line)); in finsh_set_device() 356 void finsh_run_line(struct finsh_parser *parser, const char *line) in finsh_run_line() argument 362 finsh_parser_run(parser, (unsigned char *)line); in finsh_run_line() 415 rt_kprintf("%s%s", FINSH_PROMPT, shell->line); in shell_handle_history() 427 if (memcmp(&shell->cmd_history[FINSH_HISTORY_LINES - 1], shell->line, FINSH_CMD_SIZE)) in shell_push_history() 437 memcpy(&shell->cmd_history[index][0], shell->line, shell->line_position); in shell_push_history() 446 …y_count == 0 || memcmp(&shell->cmd_history[shell->history_count - 1], shell->line, FINSH_CMD_SIZE)) in shell_push_history() 450 … memcpy(&shell->cmd_history[shell->history_count][0], shell->line, shell->line_position); in shell_push_history() 546 memcpy(shell->line, &shell->cmd_history[shell->current_history][0], in finsh_thread_entry() [all …]
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/frontends/conf/ |
H A D | conf.c | 45 static char line[PATH_MAX]; variable 92 line[0] = '\n'; in conf_askvalue() 93 line[1] = 0; in conf_askvalue() 97 line[0] = '\n'; in conf_askvalue() 98 line[1] = 0; in conf_askvalue() 113 xfgets(line, sizeof(line), stdin); in conf_askvalue() 130 printf("%s", line); in conf_askvalue() 147 switch (line[0]) { in conf_string() 152 if (line[1] == '\n') { in conf_string() 159 line[strlen(line)-1] = 0; in conf_string() [all …]
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/libs/lxdialog/ |
H A D | textbox.c | 172 case 'K': /* Previous line */ in dialog_textbox() 192 case 'J': /* Next line */ in dialog_textbox() 212 case '0': /* Beginning of line */ in dialog_textbox() 278 * 'page' will be updated to point to the desired line in 'buf'. 339 * Print a new line of text. 343 char *line; in print_line() local 345 line = get_line(); in print_line() 346 line += MIN(strlen(line), hscroll); /* Scroll horizontally */ in print_line() 347 wmove(win, row, 0); /* move cursor to correct line */ in print_line() 349 waddnstr(win, line, MIN(strlen(line), width - 2)); in print_line() [all …]
|
/nrf52832-nimble/rt-thread/components/utilities/utest/ |
H A D | utest.c | 203 void utest_assert(int value, const char *file, int line, const char *func, const char *msg) in utest_assert() argument 209 … ASSERT ] [ unit ] at (%s); func: (%s:%d); msg: (%s)", file_basename(file), func, line, msg); in utest_assert() 215 LOG_D("[ OK ] [ unit ] (%s:%d) is passed", func, line); in utest_assert() 222 void utest_assert_string(const char *a, const char *b, rt_bool_t equal, const char *file, int line,… in utest_assert_string() argument 226 utest_assert(0, file, line, func, msg); in utest_assert_string() 233 utest_assert(1, file, line, func, msg); in utest_assert_string() 237 utest_assert(0, file, line, func, msg); in utest_assert_string() 244 utest_assert(0, file, line, func, msg); in utest_assert_string() 248 utest_assert(1, file, line, func, msg); in utest_assert_string() 253 …r *a, const char *b, rt_size_t sz, rt_bool_t equal, const char *file, int line, const char *func, … in utest_assert_buf() argument [all …]
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/utils/ |
H A D | kconfig-diff | 21 Changed items show the old and new values on a single line. 41 for line in config_file: 42 line = line[:-1] 43 if line[:7] == "CONFIG_": 44 name, val = line[7:].split("=", 1) 46 if line[-11:] == " is not set": 47 d[line[9:-11]] = "n" 70 # parse command line args
|
/nrf52832-nimble/rt-thread/components/net/uip/doc/ |
H A D | uip-code-style.c | 26 /* Single line comments look like this. */ 29 * Multi-line comments look like this. Comments should prefferably be 46 * Put dividers (a single-line comment consisting only of dashes) 64 * Function prototypes have the return type on one line, 65 * the name and arguments on one line (with no space 67 * by a single curly bracket on its own line. 85 * should follow the statement on the same line. in code_style_example_function() 90 * while() statements, even though the statement is a single line in code_style_example_function() 97 curly brackers, always on its own line. */ in code_style_example_function()
|
/nrf52832-nimble/packages/NimBLE-latest/ |
H A D | CODING_STANDARDS.md | 51 * Do not add whitespace at the end of a line. 75 * Braces for statements must be on the same line as the statement. Good: 91 { <-- brace must be on same line as for 94 } <-- no new line between else 116 ## Line Length and Wrap 118 * Line length should never exceed 79 columns. 121 line. i.e.: 141 * When using a single line comment, put it above the line of code that you 235 * The function type must be on a line by itself preceding the function, i.e. do:
|
/nrf52832-nimble/rt-thread/tools/kconfig-frontends/frontends/nconf/ |
H A D | nconf.gui.c | 203 int get_line_length(const char *line) in get_line_length() argument 206 while (*line != '\0' && *line != '\n') { in get_line_length() 207 line++; in get_line_length() 221 /* do not go over end of line */ in fill_window() 225 const char *line = get_line(text, i); in fill_window() local 226 int len = get_line_length(line); in fill_window() 227 strncpy(tmp, line, min(len, x)); in fill_window() 268 /* find the widest line of msg: */ in btn_dialog() 271 const char *line = get_line(msg, i); in btn_dialog() local 272 int len = get_line_length(line); in btn_dialog() [all …]
|
/nrf52832-nimble/rt-thread/components/net/at/src/ |
H A D | at_client.c | 128 * Get one line AT response buffer by line number. 131 * @param resp_line line number, start from '1' 133 * @return != RT_NULL: response line buffer 134 * = RT_NULL: input response line error 146 LOG_E("AT response get line failed! Input response line(%d) error!", resp_line); in at_resp_get_line() 166 * Get one line AT response buffer by keyword 171 * @return != RT_NULL: response line buffer 199 * Get and parse AT response buffer arguments by line number. 202 * @param resp_line line number, start from '1' 205 * @return -1 : input response line number error or get line buffer error [all …]
|
/nrf52832-nimble/rt-thread/components/net/uip/doc/html/ |
H A D | a00178.html | 66 <a name="l00046"></a>00046 <span class="keywordtype">char</span> line[TELNETD_CONF_LINELEN]; 93 <a name="l00073"></a>00073 dealloc_line(<span class="keywordtype">char</span> *line) 95 …lass="code" href="a00159.html#gceb952d27de8125d5146ac0bee325b8f">memb_free</a>(&linemem, line); 105 <a name="l00085"></a>00085 sendline(<span class="keywordtype">char</span> *line) 111 …91 s.<a class="code" href="a00086.html#cca775e46d4405b7775b328f7694f7e7">lines</a>[i] = line; 116 <a name="l00096"></a>00096 dealloc_line(line); 123 <a name="l00103"></a>00103 <span class="keywordtype">char</span> *line; 124 <a name="l00104"></a>00104 line = alloc_line(); 125 <a name="l00105"></a>00105 <span class="keywordflow">if</span>(line != <a class="code" href="a001… 126 <a name="l00106"></a>00106 strncpy(line, str, TELNETD_CONF_LINELEN); [all …]
|
H A D | a00044.html | 61 <a name="l00046"></a>00046 <span class="keywordtype">char</span> line[TELNETD_CONF_LINELEN]; 88 <a name="l00073"></a>00073 dealloc_line(<span class="keywordtype">char</span> *line) 90 …lass="code" href="a00159.html#gceb952d27de8125d5146ac0bee325b8f">memb_free</a>(&linemem, line); 100 <a name="l00085"></a>00085 sendline(<span class="keywordtype">char</span> *line) 106 …91 s.<a class="code" href="a00086.html#cca775e46d4405b7775b328f7694f7e7">lines</a>[i] = line; 111 <a name="l00096"></a>00096 dealloc_line(line); 118 <a name="l00103"></a>00103 <span class="keywordtype">char</span> *line; 119 <a name="l00104"></a>00104 line = alloc_line(); 120 <a name="l00105"></a>00105 <span class="keywordflow">if</span>(line != <a class="code" href="a001… 121 <a name="l00106"></a>00106 strncpy(line, str, TELNETD_CONF_LINELEN); [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.0.2/src/netif/ppp/ |
H A D | utils.c | 494 static char line[256]; /* line to be logged accumulated here */ 495 static char *linep; /* current pointer within line */ 503 linep = line; 505 ppp_strlcpy(line, prefix, sizeof(line)); 506 linep = line + strlen(line); 514 if (linep != line) { 516 ppp_log_write(llevel, line); 537 if (linep != line) { 539 if (linep + l < line + sizeof(line)) { 550 ppp_log_write(llevel, line); [all …]
|
/nrf52832-nimble/rt-thread/components/net/lwip-2.1.0/src/netif/ppp/ |
H A D | utils.c | 492 static char line[256]; /* line to be logged accumulated here */ 493 static char *linep; /* current pointer within line */ 501 linep = line; 503 ppp_strlcpy(line, prefix, sizeof(line)); 504 linep = line + strlen(line); 512 if (linep != line) { 514 ppp_log_write(llevel, line); 535 if (linep != line) { 537 if (linep + l < line + sizeof(line)) { 548 ppp_log_write(llevel, line); [all …]
|
/nrf52832-nimble/rt-thread/libcpu/ppc/ppc405/ |
H A D | cache_gcc.S | 111 * 40x cores have 8K or 16K dcache and 32 byte line size. 112 * 44x has a 32K dcache and 32 byte line size. 125 1: lwz r3,0(r5) /* Load one word from every line */ 140 dccci 0,r6 /* invalidate line */ 141 addi r6,r6,L1_CACHE_BYTES /* bump to next line */
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/tools/ |
H A D | format_code.rb | 8 File.open(file).each_line do |line| 9 if line =~ /^(.*)\s$/ 13 lines << line
|
H A D | chomp_uffs_perror.rb | 8 File.open(file).each_line do |line| 9 if line =~ /^(.*uffs_Perror.+)PFX(\s*".+)$/ 14 lines << line
|
/nrf52832-nimble/rt-thread/components/dfs/filesystems/uffs/src/emu/ |
H A D | cmdline.c | 35 * \brief command line test interface 80 * return pointer to start of new command line 420 { cmd_exit, "exit", NULL, "exit command line" }, 558 int cli_interpret(const char *line) in cli_interpret() argument 564 cli_parse_args(line, &arg); in cli_interpret() 595 char line[80]; in cli_main_entry() local 604 if (linelen >= sizeof(line)) in cli_main_entry() 620 line[linelen] = 0; in cli_main_entry() 621 p = cli_process_line(line); in cli_main_entry() 637 if (ch >= ' ' && ch < 127 && linelen < sizeof(line) - 1) { in cli_main_entry() [all …]
|