Home
last modified time | relevance | path

Searched refs:nlines (Results 1 – 25 of 37) sorted by relevance

12

/titanic_50/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dnewwin.c62 __m_newwin(parent, nlines, ncols, begy, begx) in __m_newwin() argument
64 int nlines, ncols, begy, begx;
72 parent, nlines, ncols, begy, begx
78 if (nlines == 0) {
79 nlines = lines;
81 nlines -= begy;
94 || parent->_maxy < (begy-parent->_begy) + nlines
102 if (nlines == 0)
103 nlines = parent->_maxy - (begy - parent->_begy);
110 if (lines < begy + nlines)
[all …]
H A Dnewpad.c47 (newpad)(nlines, ncols)
48 int nlines, ncols;
53 __m_trace("newpad(%d, %d)", nlines, ncols);
56 w = __m_newwin((WINDOW *) 0, nlines, ncols, -1, -1);
62 (subpad)(parent, nlines, ncols, begy, begx)
64 int nlines, ncols, begy, begx; variable
71 parent, nlines, ncols, begy, begx
75 w = subwin(parent, nlines, ncols, begy, begx);
H A Dsetup.c494 int nlines = strtol(env, (char **) 0, 10); local
495 if (0 < nlines)
496 lines = nlines;
H A Ddoupdate.c126 static short nlines = 0; in __m_doupdate_init() local
131 if (lines <= nlines) in __m_doupdate_init()
156 nlines = lines; in __m_doupdate_init()
/titanic_50/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dnewwin.c70 int nlines, int ncols, int begy, int begx) in __m_newwin() argument
81 if (nlines == 0) { in __m_newwin()
82 nlines = lines; in __m_newwin()
84 nlines -= begy; in __m_newwin()
98 parent->_maxy < (begy-parent->_begy) + nlines || in __m_newwin()
107 if (nlines == 0) in __m_newwin()
108 nlines = parent->_maxy - (begy - parent->_begy); in __m_newwin()
116 if (lines < begy + nlines) { in __m_newwin()
131 w->_first = (short *) calloc((size_t) (nlines + nlines), in __m_newwin()
136 w->_last = &w->_first[nlines]; in __m_newwin()
[all …]
H A Dnewpad.c54 newpad(int nlines, int ncols) in newpad() argument
58 w = __m_newwin((WINDOW *) 0, nlines, ncols, -1, -1); in newpad()
66 subpad(WINDOW *parent, int nlines, int ncols, int begy, int begx) in subpad() argument
70 w = subwin(parent, nlines, ncols, begy, begx); in subpad()
H A Dsetup.c519 int nlines = (int) strtol(env, (char **) 0, 10); in restartterm() local
520 if (0 < nlines) in restartterm()
521 lines = nlines; in restartterm()
/titanic_50/usr/src/lib/libcurses/screen/
H A Dmakenew.c52 _makenew(int nlines, int ncols, int begy, int begx) in _makenew() argument
60 nlines, ncols, begy, begx); in _makenew()
65 if ((win->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == NULL) in _makenew()
69 calloc(1, nlines * sizeof (_ochtype *))) == NULL)) { in _makenew()
73 if ((win->_firstch = (short *) malloc(2 * nlines * sizeof (short))) in _makenew()
90 win->_lastch = win->_firstch + nlines; in _makenew()
94 win->_maxy = (short) nlines; in _makenew()
102 (nlines >= (LINES + SP->Yabove)) && (ncols >= COLS)); in _makenew()
107 win->_bmarg = nlines - 1; in _makenew()
113 (void) memset((char *) win->_firstch, 0, (nlines * sizeof (short))); in _makenew()
[all …]
H A Dnewwin.c51 newwin(int nlines, int ncols, int by, int bx) in newwin() argument
56 if (nlines <= 0) in newwin()
57 nlines = LINES - by; in newwin()
61 if ((by < 0) || (bx < 0) || ((win = _makenew(nlines, ncols, by, in newwin()
66 while (counter < nlines) { in newwin()
86 int i, nlines = win->_maxy; in _image() local
96 for (i = 0; i < nlines; i++) { in _image()
H A Ddupwin.c61 int i, ncolumns = win->_maxx, nlines = win->_maxy; in dupwin() local
62 size_t line_size = nlines * sizeof (short); in dupwin()
79 win->_lastch = win->_firstch + nlines; in dupwin()
81 if ((new->_y = (chtype **) malloc(nlines * sizeof (chtype *))) == in dupwin()
107 for (i = 0; i < nlines; ++i, ++wincp, ++newcp) { in dupwin()
H A DV3.upd_old_y.c49 _update_old_y_area(WINDOW *win, int nlines, int ncols, in _update_old_y_area() argument
54 for (row = start_line; nlines > 0; nlines--, row++) in _update_old_y_area()
/titanic_50/usr/src/lib/libcmd/common/
H A Dwclib.c102 static int invalid(const char *file, int nlines) in invalid() argument
105 error_info.line = nlines; in invalid()
109 return nlines; in invalid()
169 register Sfoff_t nlines; in wc_count() local
183 nlines = nwords = nchars = nbytes = 0; in wc_count()
230 if (x == -1 && eline != nlines && !(wp->mode & WC_QUIET)) in wc_count()
231 eline = invalid(file, nlines); in wc_count()
240 nlines++; in wc_count()
264 nlines++; in wc_count()
272 nlines++; in wc_count()
[all …]
/titanic_50/usr/src/cmd/pg/
H A Dpg.c504 off_t nlines; local
536 nlines = number();
563 if (nlines == 0)
564 nlines = (off_t)window;
566 if (nlines > 1)
567 window = (int)nlines;
627 if (nlines == 0)
628 nlines++;
629 nlines = nlines * (window - 1);
631 new_ss.first_line = old_ss.last_line + nlines;
[all …]
/titanic_50/usr/src/cmd/more/
H A Dmore.c227 static int colon(char *filename, int cmd, off_t nlines);
968 register off_t nlines; in command() local
986 nlines = number (&comchar); in command()
991 nlines = lastarg; in command()
996 lastarg = nlines; in command()
1006 retval = colon (filename, colonch, nlines); in command()
1020 if (nlines == 0) nlines++; in command()
1027 printf (gettext("...back %lld page"), nlines); in command()
1028 if (nlines > 1) in command()
1037 initline = Currline - dlines * (nlines + 1); in command()
[all …]
/titanic_50/usr/src/cmd/banner/
H A Dbanner.c39 #define nlines 7 /* number of lines in a banner character */ macro
47 char alpha[nlines][pposs];
50 static char ctbl[nchars][nlines] = {
239 for (i = 0; i < nlines; i++) { in banfil()
250 for (i = 0; i < nlines; i++) in banset()
259 for (i = 0; i < nlines; i++) { in banprt()
/titanic_50/usr/src/cmd/vi/port/
H A Dex_cmdsub.c357 int nlines; in move1() local
360 nlines = (addr2 - addr1) + 1; in move1()
394 undap2 = undap1 + nlines; in move1()
1010 int c, nlines, op; in zop() local
1042 nlines = c - '0'; in zop()
1047 nlines *= 10; in zop()
1048 nlines += c - '0'; in zop()
1050 if (nlines < lines) in zop()
1052 value(vi_WINDOW) = nlines; in zop()
1054 nlines += 2; in zop()
[all …]
H A Dex_vops.c235 int nlines, more; local
265 nlines = dol - zero;
266 while ((line *) endcore - truedol < nlines)
269 copyw(truedol+1, zero+1, nlines);
270 truedol += nlines;
294 truedol -= nlines;
295 copyw(zero+1, truedol+1, nlines);
H A Dex_re.c77 int nlines = lineDOL(); local
211 netchHAD(nlines);
703 snote(int total, int nlines) in snote() argument
708 if (nlines != 1 && nlines != total) in snote()
724 total, nlines); in snote()
H A Dex_unix.c375 int nlines = lineDOL(); in vi_filter() local
435 netchHAD(nlines); in vi_filter()
/titanic_50/usr/src/cmd/abi/spectrans/parser/
H A Dfrontend.c543 int nlines = 0; in readline() local
548 nlines++; in readline()
562 nlines++; in readline()
568 return (nlines); in readline()
/titanic_50/usr/src/cmd/mailx/
H A Dcmd1.c443 long nlines; in type1() local
458 nlines = 0; in type1()
459 for (ip = msgvec, nlines = 0; in type1()
461 nlines += message[*ip - 1].m_lines; in type1()
464 nlines > (*cp == '\0' ? screensize() - 2 : atoi(cp))) { in type1()
/titanic_50/usr/src/cmd/fmthard/
H A Dfmthard.c607 int nlines = 0; in load64() local
623 mem = realloc(mem, sizeof (*mem) * (nlines + 1)); in load64()
628 mem[nlines] = strdup(line); in load64()
629 if (mem[nlines] == NULL) { in load64()
633 nlines++; in load64()
652 for (i = 0; i < nlines; i++) { in load64()
/titanic_50/usr/src/tools/codereview/
H A Dlwlp.c674 int nlines = 0; in printbanner() local
687 nlines++; in printbanner()
694 nlines++; in printbanner()
702 nlines++; in printbanner()
725 nlines++; in printbanner()
736 nlines++; in printbanner()
739 return (nlines); in printbanner()
/titanic_50/usr/src/lib/libbe/common/
H A Dbe_utils.c712 int nlines = 0; in be_remove_menu() local
832 sizeof (char *)*(nlines + 1))) == NULL) { in be_remove_menu()
836 if ((buffer[nlines++] = strdup(menu_buf)) in be_remove_menu()
867 for (i = 0; i < nlines; i++) { in be_remove_menu()
873 nlines = 0; in be_remove_menu()
886 sizeof (char *)*(nlines + 1))) == NULL) { in be_remove_menu()
890 if ((buffer[nlines++] = strdup(menu_buf)) == NULL) { in be_remove_menu()
910 for (i = 0; i < nlines; i++) { in be_remove_menu()
916 nlines = 0; in be_remove_menu()
942 for (i = 0; i < nlines; i++) { in be_remove_menu()
[all …]
/titanic_50/usr/src/lib/libtecla/common/
H A Dhistory.h153 unsigned long *newest, int *nlines);

12