Searched refs:lines (Results 1 - 22 of 22) sorted by relevance

/ast/src/lib/libast/astsa/
H A Dast.c34 astwinsize(int fd, int* lines, int* columns) argument
36 if (lines)
37 *lines = 24;
/ast/src/lib/libcmd/
H A Dwc.h46 Sfoff_t lines; member in struct:__anon331
H A Dwc.c26 * count the number of bytes, words, and lines in a file
32 "[+NAME?wc - print the number of bytes, words, and lines in files]"
48 "[l:lines?List the line counts.]"
77 sfprintf(sfstdout," %7I*d",sizeof(wp->lines),wp->lines);
177 tlines += wp->lines;
182 wp->lines = tlines;
H A Dcmp.c37 "occurred are written to standard output. Bytes and lines are numbered "
151 register Sfoff_t lines = 1; local
215 sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u\n", file1, file2, sizeof(pos), pos - (last - p1), sizeof(lines), lines);
226 sfprintf(sfstdout, "%s %s differ: char %I*d, line %I*u", file1, file2, sizeof(pos), pos - (last - p1), sizeof(lines), lines);
241 lines++;
H A Dwclib.c299 /* process spaces and new-lines */
378 /* process spaces and new-lines */
502 wp->lines = nlines;
/ast/src/cmd/ksh93/tests/
H A Dgrep.sh92 to see how many lines find both foo and bar.
94 and some lines contain bar only.
95 However, many lines contain both foo and also bar.
97 There should be six lines with foo and bar.
H A Dpty.sh435 u :$|:\E|lines
/ast/src/lib/libtk/library/
H A Dclrpick.tcl31 # The lines variables track the start and end indices of the line
33 set data(lines,red,start) 0
34 set data(lines,red,last) -1
35 set data(lines,green,start) 0
36 set data(lines,green,last) -1
37 set data(lines,blue,start) 0
38 set data(lines,blue,last) -1
40 # This is the actual number of lines that are drawn in each color strip.
364 global lines
374 # First remove all the lines tha
[all...]
/ast/src/cmd/tw/
H A Dxargs.c60 " \b--exit\b and \b--lines=1\b. For backwards compatibility \astring\a"
63 "[l:lines|max-lines?Use at most \alines\a lines from the standard input."
67 " standard option syntax.]#?[lines:=1]"
86 "[L?Equivalent to \b--lines=number\b.]#[number]"
121 int lines = 0; local
180 lines = 1;
284 if (lines && c > 1 && isspace(s[c - 2]))
/ast/src/cmd/kshlib/cmdtst/
H A Dxargs.c60 "and \b--lines=1\b. For backwards compatibility \astring\a must "
63 "[l:lines|max-lines?Use at most \alines\a lines from the standard input. "
66 "option flag; \b-L\b follows standard option syntax.]#?[lines:=1]"
85 "[L?Equivalent to \b--lines=number\b.]#[number]"
131 int lines = 0; local
191 lines = 1;
298 if (lines && c > 1 && isspace(s[c - 2]))
/ast/src/lib/libtk/library/demos/
H A Dtext.tcl27 {This window is a text widget. It displays one or more lines of text
45 whole lines.
70 narrow you can see that long lines automatically wrap around onto
71 additional lines so that all the information is always visible.}
H A Dwidget115 This application provides a front end for several short scripts that demonstrate what you can do with Tk widgets. Each of the numbered lines below describes a demonstration; you can click on it to invoke the demonstration. Once the demonstration window appears, you can click the "See Code" button to see the Tcl/Tk code that created the demonstration. If you wish, you can edit the code and click the "Rerun Demo" button in the code window to reinvoke the demonstration with the modified code.
178 .t insert end "4. An editor for arrowheads on canvas lines." {demo demo-arrow}
/ast/src/cmd/mailx/
H A Dcmd2.c600 getatt(register struct part* ap, register char* name, unsigned long flags, off_t* lines, off_t* chars) argument
677 if (!lines)
678 lines = &lc;
681 filecopy(NiL, ip, name, op, NiL, ap->size, lines, chars, 0);
684 note(0, "\"%s\" %ld/%ld", name, (long)*lines, (long)*chars);
716 printf("(attachment %2d %s %20s \"%s\")\n", ap->count, counts(1, ap->lines, ap->size), ap->type, ap->name);
H A Dproc.c315 * If lines!=0 then it will point to the copied line count.
324 filecopy(const char* in, FILE* ip, const char* on, FILE* op, FILE* ap, register off_t n, register off_t* lines, off_t* chars, unsigned long flags) argument
364 if (lines)
379 if (lines)
380 *lines = lc;
H A Dcmd1.c405 * Print the top so many lines of each desired message.
406 * The number of lines is taken from the variable "toplines"
415 int lines; local
431 for (lines = 0; lines < c && lines <= state.var.toplines; lines++) {
H A Dsend.c275 else if ((ap->flags & PART_body) || (flags & GMIME) && ap->count == 1 && !n && ap->next && !ap->next->lines && mime(1) && (s = mimeview(state.part.mime, NiL, NiL, ap->type, ap->opts))) {
276 note(DEBUG, "copy part text offset=%ld size=%ld lines=%ld", (long)ap->offset, (long)ap->size, (long)ap->lines);
280 n += ap->lines;
283 fprintf(op, "(attachment %2d %s %20s \"%s\")\n\n", ap->count, counts(1, ap->lines, ap->size), ap->type, ap->name);
H A Dimap.c148 int lines; /* # lines */ member in struct:Imappart_s
981 pp->lines = ap->value.number;
1020 mp->m_lines += pp->lines;
1843 note(ERROR, "imap: message %d id=%s content=%s type=%s encoding=%s name=%s size=%d/%d", m, pp->id, imapname(imapcontent, elementsof(imapcontent), pp->content), pp->type, pp->encoding, pp->name, pp->lines, pp->size);
1969 sfprintf(sfstdout, "%12s content=%s type=%s encoding=%s name=%s size=%d/%d\n", pp->id, imapname(imapcontent, elementsof(imapcontent), pp->content), pp->type, pp->encoding, pp->name, pp->lines, pp->size);
2079 sfprintf(op, "\n(attachment %3d %s %18s \"%s\")\n", pp->attachment, counts(1, pp->lines, pp->size), pp->type, pp->name);
2157 imap_getatt(Msg_t* mp, register Imappart_t* pp, register char* name, unsigned long flags, off_t* lines, off_t* chars) argument
2221 if (lines)
2222 *lines
[all...]
H A Dmisc.c675 * Return lines/chars for display.
678 counts(int wide, off_t lines, off_t chars) argument
680 sfsprintf(state.counts, sizeof(state.counts), wide ? "%5ld/%-7ld" : "%3ld/%-5ld", (long)lines, (long)chars);
H A Dmailx.h436 off_t lines; member in struct:part
/ast/src/cmd/re/
H A Ded.c181 unsigned long lines; member in struct:__anon200
228 ed.lines = 0;
598 ed.lines++;
866 sfprintf(ed.msg, "\"%s\" %lu line%s, %lu character%s", error_info.file, ed.lines, plural(ed.lines), ed.bytes, plural(ed.bytes));
907 ed.lines = 0;
913 ed.lines++;
1182 ed.lines = 0;
1242 ed.lines = 0;
/ast/src/cmd/ie/
H A Dhistory.c570 /* don't count empty lines */
797 * if s1==0 the number of lines for the command is returned
888 * and number of lines back or foward,
892 histloc hist_locate(command,line,lines)
895 int lines;
898 line += lines;
904 if(lines > 0)
/ast/src/cmd/ksh93/edit/
H A Dhistory.c827 /* don't count empty lines */
1051 * if s1==0 the number of lines for the command is returned
1136 * and number of lines back or foward,
1140 Histloc_t hist_locate(History_t *hp,register int command,register int line,int lines) argument
1143 line += lines;
1149 if(lines > 0)

Completed in 78 milliseconds