Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 601) sorted by relevance

12345678910>>...25

/openbsd/lib/libmenu/
H A Dm_global.c117 ITEM **items; in ComputeMaximum_NameDesc_Lengths() local
120 for (items = menu->items; *items; items++) in ComputeMaximum_NameDesc_Lengths()
181 if (menu && items) in _nc_Connect_Items()
212 menu->items = items; in _nc_Connect_Items()
301 if (menu->items != 0) in calculate_actual_width()
303 ITEM **items; in calculate_actual_width() local
305 for (items = menu->items; *items; items++) in calculate_actual_width()
381 if (menu && menu->items && *(menu->items)) in _nc_Link_Items()
406 menu->items[i - 1] : in _nc_Link_Items()
415 menu->items[i + 1] : in _nc_Link_Items()
[all …]
H A Dm_items.c59 set_menu_items(MENU *menu, ITEM **items) in MENU_EXPORT()
61 T((T_CALLED("set_menu_items(%p,%p)"), (void *)menu, (void *)items)); in MENU_EXPORT()
63 if (!menu || (items && !(*items))) in MENU_EXPORT()
69 if (menu->items) in MENU_EXPORT()
72 if (items) in MENU_EXPORT()
74 if (!_nc_Connect_Items(menu, items)) in MENU_EXPORT()
78 menu->items = items; in MENU_EXPORT()
94 returnItemPtr(menu ? menu->items : (ITEM **)0); in menu_items()
H A Dm_new.c57 NCURSES_SP_NAME(new_menu) (NCURSES_SP_DCLx ITEM **items) in MENU_EXPORT()
62 T((T_CALLED("new_menu(%p,%p)"), (void *)SP_PARM, (void *)items)); in MENU_EXPORT()
77 if (items && *items) in MENU_EXPORT()
79 if (!_nc_Connect_Items(menu, items)) in MENU_EXPORT()
109 new_menu(ITEM **items) in new_menu() argument
111 return NCURSES_SP_NAME(new_menu) (CURRENT_SCREEN, items); in new_menu()
136 if (menu->items) in free_menu()
H A Dm_driver.c166 menu->items[idx]->name.str) in _nc_Match_Next_Character_In_Item_Name()
178 *item = menu->items[idx]; in _nc_Match_Next_Character_In_Item_Name()
332 item = menu->items[0]; in menu_driver()
337 item = menu->items[menu->nitems - 1]; in menu_driver()
347 item = menu->items[0]; in menu_driver()
360 item = menu->items[menu->nitems - 1]; in menu_driver()
410 item = menu->items[item->index + 1]; in menu_driver()
416 item = menu->items[0]; in menu_driver()
429 item = menu->items[item->index - 1]; in menu_driver()
507 menu->items[i], in menu_driver()
[all …]
/openbsd/gnu/usr.bin/perl/Porting/
H A Dsort_perldiag.pl7 my %items;
17 $items{$item_key} .= $_;
22 foreach my $item_key (sort keys %items) {
23 print $items{$item_key};
27 %items = ();
34 $items{$item_key} .= $_;
44 if (keys %items) {
47 foreach my $item_key (sort keys %items) {
48 print $items{$item_key};
H A Dmake-rmg-checklist69 my ( $items, $type, $cb ) = @_;
72 foreach my $item ( @{$items} ) {
88 my ( $type, $items ) = @_;
93 iterate_items( $items, $type, sub {
145 my ( @items, $current_element, @leading_attrs );
174 push @items, $elem;
207 $items[0]{'name'} =~ /^NAME/xmsi
208 and shift @items;
211 and shift @items;
213 create_checklist( $type, \@items );
[all …]
H A Dcorelist-perldelta.pl407 my @items = @{ $section->{items} };
409 for my $item (@items) {
491 push @{ $section->{items} }, $item;
503 $section->{items} =
530 items => [],
541 ( '', @{ $section->{items} } );
544 . $items
657 $current_section->{items} = [];
746 if ( scalar @{ $current_section->{items} } == 0 ) {
889 my $items = $self->_look_down($section => sub {
[all …]
/openbsd/gnu/llvm/lldb/source/DataFormatters/
H A DTypeCategory.cpp138 if (items & eFormatCategoryItemFormat) in Clear()
144 if (items & eFormatCategoryItemFilter) in Clear()
147 if (items & eFormatCategoryItemSynth) in Clear()
154 if (items & eFormatCategoryItemFormat) in Delete()
160 if (items & eFormatCategoryItemFilter) in Delete()
163 if (items & eFormatCategoryItemSynth) in Delete()
172 if (items & eFormatCategoryItemFormat) in GetCount()
178 if (items & eFormatCategoryItemFilter) in GetCount()
181 if (items & eFormatCategoryItemSynth) in GetCount()
239 if (items & eFormatCategoryItemFormat) in AutoComplete()
[all …]
/openbsd/lib/libssl/
H A Dpqueue.c66 pitem *items; member
109 if (pq->items == NULL) { in pqueue_insert()
110 pq->items = item; in pqueue_insert()
114 for (curr = NULL, next = pq->items; next != NULL; in pqueue_insert()
124 pq->items = item; in pqueue_insert()
142 return pq->items; in pqueue_peek()
148 pitem *item = pq->items; in pqueue_pop()
150 if (pq->items != NULL) in pqueue_pop()
151 pq->items = pq->items->next; in pqueue_pop()
161 for (next = pq->items; next != NULL; next = next->next) in pqueue_find()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/
H A Dsample.t11 my @items = sample 3, 1 .. 10;
12 is( scalar @items, 3, 'returns correct count when plentiful' );
14 @items = sample 10, 1 .. 10;
15 is( scalar @items, 10, 'returns correct count when exact' );
17 @items = sample 20, 1 .. 10;
18 is( scalar @items, 10, 'returns correct count when short' );
22 my @items = sample 5, 1 .. 5;
23 is_deeply( [ sort { $a <=> $b } @items ], [ 1 .. 5 ],
/openbsd/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/
H A Dp11667.C11 LIST() { nitems = 16; items = new T[nitems]; }; in LIST()
13 LIST(int u) { nitems = u; items = new T[nitems]; }; in LIST()
16 return items[i];
21 T* src = items; in grow()
32 if (items) delete[] items; in grow()
34 items = newlist; in grow()
39 T *items; variable
/openbsd/gnu/usr.bin/perl/dist/Thread-Queue/t/
H A D11_limit.t40 # (4) Enqueue more items - will block
45 my @items = $rpt->dequeue(5);
52 # Send items
84 # Read all items from queue
85 my @items = $q->dequeue(3);
86 is_deeply(\@items, [4, 5, 'foo'], 'Dequeued 3 items');
89 @items = $q->dequeue(2);
90 is_deeply(\@items, [6, 7], 'Dequeued 2 items');
124 @items = ();
126 push(@items, $item);
[all …]
H A D01_basic.t64 my @items = qw/foo bar baz/;
65 $q->enqueue(@items);
68 is($q->pending(), scalar(@items), 'Queue count in thread');
70 is($el, shift(@items), "Thread got $el");
108 @items = qw/foo bar baz qux exit/;
109 $q->enqueue(@items);
110 is($q->pending(), scalar(@items), 'Queue count');
113 is($q->pending(), scalar(@items), 'Queue count in thread');
115 is($el[0], shift(@items), "Thread got $el[0]");
119 is($el[1], shift(@items), "Thread got $el[1]");
H A D10_timed.t30 my @items = qw/foo bar baz qux exit/;
31 $q->enqueue(@items);
32 is($q->pending(), scalar(@items), 'Queue count');
35 is($q->pending(), scalar(@items), 'Queue count in thread');
37 is($el[0], shift(@items), "Thread got $el[0]");
41 is($el[1], shift(@items), "Thread got $el[1]");
57 is($el[0], undef, "Thread got no items");
/openbsd/gnu/usr.bin/perl/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/
H A DBase.pm235 my ($self, $args, @items) = @_;
242 foreach (@items) {
492 my ($self, $args, $namelen, $items, @items) = @_;
686 my $items = shift;
728 if (exists $items->{$name} and ref $items->{$name} ne 'ARRAY') {
895 my ($namelen, $items);
901 $items = {};
915 @items = $self->normalise_items ({}, $default_type, $what, $items, @items);
939 $namelen, $items, @items);
946 @items);
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Win32/
H A DWin32.xs349 if (items) in XS()
569 if (items < 1 || items > 3) in XS()
669 if (items) in XS()
680 if (items) in XS()
700 if (items) in XS()
721 if (items)
748 if (items != 1 && items != 2)
936 if (items)
991 if (items)
1007 if (items)
[all …]
/openbsd/gnu/usr.bin/perl/
H A Duniversal.c619 if (items < 1 || items > 2) in XS()
638 if (items > 1) in XS()
651 if (items > 1) in XS()
727 if ((items != 1 && items != 2) || !SvROK(svz)) in XS()
760 if (items < 1 || items % 2 == 0) in XS()
928 if (items < 1 || items > 2) in XS()
931 SP -= items; in XS()
978 SP -= items; in XS()
1015 SP -= items; in XS()
1188 SP -= items; in XS()
[all …]
H A Dvxs.inc102 if (items < 1)
197 SP -= items;
261 if (items < 1)
263 SP -= items;
277 SP -= items;
290 SP -= items;
304 SP -= items;
338 if (items < 1)
340 SP -= items;
357 if (items < 1)
[all …]
/openbsd/gnu/usr.bin/perl/cpan/Scalar-List-Utils/
H A DListUtil.xs283 if(!items) in min()
341 if(!items) in sum()
511 if(!items) in minstr()
556 if(items <= 1) { in reduce()
644 if(items <= 1) in first()
791 end = items; in head()
1271 XSRETURN(items); in shuffle()
1292 items--; in sample()
1294 if(count > items) in sample()
1295 count = items; in sample()
[all …]
/openbsd/gnu/usr.bin/perl/dist/PathTools/
H A DCwd.xs579 PERL_UNUSED_VAR(items);
592 if (ix == 1 && items != 0) in getcwd()
638 if ( items == 0 || in getdcwd()
686 EXTEND(SP, items+1);
714 EXTEND(SP, items+1);
728 if(items == 1) {
732 if(items == 2) {
751 PUSHs(items == 1 ? &PL_sv_undef : ST(items-1));
757 if(items <= 2) {
786 if(items == 0) {
[all …]
/openbsd/usr.bin/tmux/
H A Dmenu.c75 menu->items = xreallocarray(menu->items, menu->count + 1, in menu_add_item()
76 sizeof *menu->items); in menu_add_item()
77 new_item = &menu->items[menu->count++]; in menu_add_item()
160 free((void *)menu->items[i].name); in menu_free()
161 free((void *)menu->items[i].command); in menu_free()
163 free(menu->items); in menu_free()
292 name = menu->items[i].name; in menu_key_cb()
380 name = menu->items[md->choice].name; in menu_key_cb()
390 name = menu->items[md->choice].name; in menu_key_cb()
412 item = &menu->items[md->choice]; in menu_key_cb()
[all …]
/openbsd/gnu/usr.bin/perl/dist/Thread-Queue/lib/Thread/
H A DQueue.pm95 my @items;
96 push(@items, shift(@$queue)) for (1..$count);
98 return @items;
118 my @items;
121 push(@items, shift(@$queue));
124 return @items;
228 my @items;
229 unshift(@items, pop(@$queue)) while (@$queue > $index);
237 return $items[0] if ($count == 1);
240 return @items;
/openbsd/gnu/llvm/lldb/examples/python/
H A Ddict_utils.py7 def __init__(self, items=[]): argument
9 dict.__init__(self, items)
13 list_result = [item[0] for item in self.items() if item[1] == value]
20 list_result = [item[0] for item in self.items() if item[1] == value]
34 def __init__(self, initial_value=0, items=[]): argument
36 LookupDictionary.__init__(self, items)
/openbsd/bin/csh/
H A Dfile.c496 w = Strlen(items[i]) + 1; in print_by_column()
582 free(items[i]); in free_items()
583 free(items); in free_items()
586 #define FREE_ITEMS(items) { \ argument
592 free_items(items, numitems);\
608 Char **items = NULL; in tsearch() local
638 items = xreallocarray(items, maxitems, sizeof(*items)); in tsearch()
679 qsort(items, numitems, sizeof(*items), sortscmp); in tsearch()
681 items, numitems); in tsearch()
682 if (items != NULL) in tsearch()
[all …]
/openbsd/gnu/usr.bin/perl/cpan/ExtUtils-Constant/t/
H A DConstant.t360 NAMES => $items,
496 my ($name, $items, $export_names, $header, $testfile, $args) = @_;
497 push @tests, [$name, $items, $export_names, $package, $header, $testfile,
547 my @items = ("FIVE", {name=>"OK6", type=>"PV",},
568 push @items, $_ foreach keys %compass;
572 my @export_names = map {(ref $_) ? $_->{name} : $_} @items;
575 push @items, @common_items;
796 end_tests("Simple tests", \@items, \@export_names, $header, $test_body,
819 my @items = (@common_items,
992 my ($name, @items) = @_;
[all …]

12345678910>>...25