Home
last modified time | relevance | path

Searched refs:buf_ptr (Results 1 – 17 of 17) sorted by relevance

/openbsd-src/usr.bin/indent/
H A Dlexi.c134 while (*buf_ptr == ' ' || *buf_ptr == '\t') { /* get rid of blanks */ in lexi()
137 if (++buf_ptr >= buf_end) in lexi()
142 if (chartype[(int)*buf_ptr] == alphanum || in lexi()
143 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
149 if (isdigit((unsigned char)*buf_ptr) || in lexi()
150 (buf_ptr[0] == '.' && isdigit((unsigned char)buf_ptr[1]))) { in lexi()
154 if (*buf_ptr == '0' && in lexi()
155 (buf_ptr[1] == 'x' || buf_ptr[1] == 'X')) { in lexi()
156 *e_token++ = *buf_ptr++; in lexi()
157 *e_token++ = *buf_ptr++; in lexi()
[all …]
H A Dpr_comment.c110 if (*buf_ptr == '-' || *buf_ptr == '*' || *buf_ptr == '\n') { in pr_comment()
145 buf_ptr[-2] = 0; in pr_comment()
147 buf_ptr[-2] = '/'; in pr_comment()
151 while (*buf_ptr == ' ' || *buf_ptr == '\t') in pr_comment()
152 buf_ptr++; in pr_comment()
157 if (*buf_ptr != ' ' && !ps.box_com) in pr_comment()
175 if (*buf_ptr > 040 && *buf_ptr != '*') in pr_comment()
178 switch (*buf_ptr) { /* this checks for various spcl cases */ in pr_comment()
188 while (*++buf_ptr == ' ' || *buf_ptr == '\t'); in pr_comment()
191 if (++buf_ptr >= buf_end) in pr_comment()
[all …]
H A Dindent.c78 char *buf_ptr; /* ptr to next character to be taken from variable
242 buf_ptr = buf_end = in_buffer; in main()
369 char *p = buf_ptr; in main()
458 *sc_end = *buf_ptr++; in main()
459 if (buf_ptr >= buf_end) in main()
462 if (*sc_end++ == '*' && *buf_ptr == '/') in main()
473 if (++buf_ptr >= buf_end) /* get past / in buffer */ in main()
511 bp_save = buf_ptr; /* save current input buffer */ in main()
513 buf_ptr = save_com; /* fix so that subsequent calls to in main()
1148 while (*buf_ptr == ' ' || *buf_ptr == '\t') { in main()
[all …]
H A Dio.c340 buf_ptr = bp_save; /* dont read anything, just switch buffers */ in fill_buffer()
343 if (buf_ptr < buf_end) in fill_buffer()
368 buf_ptr = in_buffer; in fill_buffer()
H A Dindent_globs.h122 extern char *buf_ptr; /* ptr to next character to be taken from
/openbsd-src/lib/libcurses/tinfo/
H A Dsetbuf.c109 char *buf_ptr; in NCURSES_EXPORT() local
120 if ((buf_ptr = SP->_setbuf) == 0) { in NCURSES_EXPORT()
121 if ((buf_ptr = typeMalloc(char, buf_len)) == NULL) in NCURSES_EXPORT()
123 SP->_setbuf = buf_ptr; in NCURSES_EXPORT()
135 buf_ptr = 0; in NCURSES_EXPORT()
141 (void) setvbuf(ofp, buf_ptr, buf_len, buf_len ? _IOFBF : _IOLBF); in NCURSES_EXPORT()
143 (void) setvbuf(ofp, buf_ptr, buf_len ? _IOFBF : _IOLBF, buf_len); in NCURSES_EXPORT()
146 (void) setbuffer(ofp, buf_ptr, (int) buf_len); in NCURSES_EXPORT()
/openbsd-src/gnu/usr.bin/binutils/gdb/tui/
H A Dtui-win.c843 char *buf_ptr = (char *) xstrdup (arg); in tui_set_focus() local
847 for (i = 0; (i < strlen (buf_ptr)); i++) in tui_set_focus()
848 buf_ptr[i] = toupper (arg[i]); in tui_set_focus()
850 if (subset_compare (buf_ptr, "NEXT")) in tui_set_focus()
852 else if (subset_compare (buf_ptr, "PREV")) in tui_set_focus()
855 win_info = tui_partial_win_by_name (buf_ptr); in tui_set_focus()
868 xfree (buf_ptr); in tui_set_focus()
944 char *buf_ptr = buf; in tui_set_win_height() local
949 wname = buf_ptr; in tui_set_win_height()
950 buf_ptr = strchr (buf_ptr, ' '); in tui_set_win_height()
[all …]
H A Dtui-layout.c414 char *buf_ptr; in tui_set_layout_for_display_command() local
419 buf_ptr = (char *) xstrdup (layout_name); in tui_set_layout_for_display_command()
421 buf_ptr[i] = toupper (buf_ptr[i]); in tui_set_layout_for_display_command()
424 if (strlen (buf_ptr) <= 1 && (*buf_ptr == 'S' || *buf_ptr == '$')) in tui_set_layout_for_display_command()
431 if (subset_compare (buf_ptr, "SRC")) in tui_set_layout_for_display_command()
433 else if (subset_compare (buf_ptr, "ASM")) in tui_set_layout_for_display_command()
435 else if (subset_compare (buf_ptr, "SPLIT")) in tui_set_layout_for_display_command()
437 else if (subset_compare (buf_ptr, "REGS") || in tui_set_layout_for_display_command()
438 subset_compare (buf_ptr, TUI_GENERAL_SPECIAL_REGS_NAME) || in tui_set_layout_for_display_command()
439 subset_compare (buf_ptr, TUI_GENERAL_REGS_NAME) || in tui_set_layout_for_display_command()
[all …]
/openbsd-src/sys/arch/octeon/dev/
H A Dcn30xxpko.c142 paddr_t buf_ptr = 0; in cn30xxpko_port_config() local
148 buf_ptr = cn30xxfpa_load(OCTEON_POOL_NO_CMD); in cn30xxpko_port_config()
149 if (buf_ptr == 0) in cn30xxpko_port_config()
152 KASSERT(buf_ptr != 0); in cn30xxpko_port_config()
177 SET(mem_queue_ptrs, ((uint64_t)buf_ptr << 17) & PKO_MEM_QUEUE_PTRS_BUF_PTR); in cn30xxpko_port_config()
185 sc->sc_cmdptr->cmdptr = (uint64_t)buf_ptr; in cn30xxpko_port_config()
/openbsd-src/gnu/usr.bin/gcc/gcc/java/
H A Djcf-io.c730 register char *buf_ptr = buf+WRITE_BUF_SIZE; /* End of buf. */ variable
739 *--buf_ptr = digit_chars[digit];
743 chars_written = buf+WRITE_BUF_SIZE - buf_ptr;
745 buffer[i] = *buf_ptr++;
/openbsd-src/usr.bin/lex/
H A DFlexLexer.h141 void yyunput( int c, char* buf_ptr );
H A Dflex.skl1034 static void yyunput M4_YY_PARAMS( int c, char *buf_ptr M4_YY_PROTO_LAST_ARG);
/openbsd-src/gnu/usr.bin/binutils/gas/
H A Ditbl-lex.c459 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
/openbsd-src/gnu/usr.bin/binutils/binutils/
H A Ddeflex.c535 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
H A Drclex.c727 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
/openbsd-src/gnu/usr.bin/binutils-2.17/gas/
H A Dbfin-lex.c802 static void yyunput YY_PROTO(( int c, char *buf_ptr ));
/openbsd-src/gnu/usr.bin/gcc/gcc/
H A DChangeLog.411530 variable `buf_ptr'.