Searched defs:elementsof (Results 1 - 18 of 18) sorted by relevance

/ast/src/lib/libast/aso/
H A Dasohdr.h35 #ifndef elementsof
36 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
/ast/src/lib/librecsort/
H A Drskeyhdr.h120 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
/ast/src/cmd/tests/aso/
H A Dtthread.c25 #ifndef elementsof
26 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
/ast/src/cmd/mailx/
H A Dlocal.h148 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
/ast/src/cmd/INIT/
H A Drelease.c69 #define elementsof(x) ((int)(sizeof(x)/sizeof(x[0]))) macro
170 if (string(s, day, elementsof(day), 3, &t))
172 if (!(m = string(s, mon, elementsof(mon), 3, &t)))
H A Dmamake.c95 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
1076 else if (++state.sp >= &state.streams[elementsof(state.streams)])
1822 for (i = 0; i < elementsof(files); i++)
/ast/src/lib/libast/sfio/
H A Dsfstrtof.h60 #ifndef elementsof
61 #define elementsof(a) (sizeof(a)/sizeof(a[0])) macro
400 if (n >= ((~((S2F_batch)0)) / 10) && part < elementsof(parts))
443 if (n && part < elementsof(parts))
/ast/src/cmd/tests/
H A Ddate.c52 #ifndef elementsof
53 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
319 if (i >= elementsof(field))
333 while (i < elementsof(field))
/ast/src/lib/libast/astsa/
H A Dast.h89 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
/ast/src/lib/libast/features/
H A Dsignal.c45 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
303 if ((j = map[i].value) > 0 && j < elementsof(mapindex) && !mapindex[j])
316 if (j >= elementsof(mapindex))
317 j = elementsof(mapindex) - 1;
318 if (i <= j && i > 0 && i < elementsof(mapindex) && j > 0 && j < elementsof(mapindex))
/ast/src/cmd/re/
H A Dtestfnmatch.c132 #ifndef elementsof
133 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
594 for (i = 1; i < elementsof(unsupported); i++)
634 if (i >= elementsof(field))
832 while (i < elementsof(field))
H A Dtestmatch.c146 #ifndef elementsof
147 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
729 for (i = 1; i < elementsof(unsupported); i++)
769 if (i >= elementsof(field))
795 if ((nmatch = 2 * strtol(p, &p, 10)) >= elementsof(match))
979 while (i < elementsof(field))
1017 for (i = 0; i < elementsof(match); i++)
H A Dtestglob.c158 #ifndef elementsof
159 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
558 nmodes = elementsof(modes);
600 if (elementsof(unsupported) > 1) {
603 for (i = 0; i < elementsof(unsupported) - 1; i++) {
615 pathmax = &path[elementsof(pathbuf)-1];
637 if (i > (cwd + 1) || i >= elementsof(work))
763 if (i >= elementsof(field))
907 while (i < elementsof(field))
988 for (i = 1; i < elementsof(code
[all...]
H A Dtestregex.c307 #ifndef elementsof
308 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
1416 if (elementsof(unsupported) > 1)
1423 for (got = 0; i < elementsof(unsupported) - 1; i++)
1516 if (i >= elementsof(field))
1541 if (nmatch >= elementsof(match))
1798 while (i < elementsof(field))
2064 for (i = 1; i < elementsof(codes); i++)
2079 for (i = 1; i < elementsof(codes); i++)
2123 for (i = 0; i < elementsof(matc
[all...]
/ast/src/lib/libast/include/
H A Dast.h202 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
/ast/src/lib/libast/port/
H A Dlcgen.c129 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
315 ve = &arg[elementsof(arg)];
/ast/src/lib/libpp/
H A Dppproto.c56 #ifndef elementsof
57 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
2301 for (i = 0; i < elementsof(pragmas); i++)
2343 for (i = 0; i < elementsof(notices); i++)
/ast/src/lib/libvcodex/
H A Dvcsfio.c71 #ifndef elementsof
72 #define elementsof(x) (sizeof(x)/sizeof(x[0])) macro
116 Meth_t meth[2*elementsof(Map)]; /* should not exceed this */
120 for(n = 0; n < elementsof(meth) && vciomore(&io) > 0; ++n)
122 for(k = 0; k < elementsof(Map); ++k)
125 if(k >= elementsof(Map)) /* not matching any transform */

Completed in 48 milliseconds