| /openbsd-src/lib/libmenu/ |
| H A D | m_global.c | 117 ITEM **items; in ComputeMaximum_NameDesc_Lengths() local 119 assert(menu && menu->items); in ComputeMaximum_NameDesc_Lengths() 120 for (items = menu->items; *items; items++) in ComputeMaximum_NameDesc_Lengths() 122 unsigned check = (unsigned)_nc_Calculate_Text_Width(&((*items)->name)); in ComputeMaximum_NameDesc_Lengths() 127 check = (unsigned)_nc_Calculate_Text_Width(&((*items)->description)); in ComputeMaximum_NameDesc_Lengths() 147 ResetConnectionInfo(MENU *menu, ITEM **items) in ResetConnectionInfo() argument 151 assert(menu && items); in ResetConnectionInfo() 152 for (item = items; *item; item++) in ResetConnectionInfo() 161 menu->items = (ITEM **)0; in ResetConnectionInfo() 177 _nc_Connect_Items(MENU *menu, ITEM **items) in _nc_Connect_Items() argument [all …]
|
| H A D | m_items.c | 59 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 D | m_new.c | 57 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 D | m_driver.c | 166 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() 350 item = menu->items[item->index + 1]; in menu_driver() 360 item = menu->items[menu->nitems - 1]; in menu_driver() 363 item = menu->items[item->index - 1]; in menu_driver() 410 item = menu->items[item->index + 1]; in menu_driver() 416 item = menu->items[0]; in menu_driver() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/Porting/ |
| H A D | sort_perldiag.pl | 7 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};
|
| /openbsd-src/gnu/llvm/lldb/source/DataFormatters/ |
| H A D | TypeCategory.cpp | 137 void TypeCategoryImpl::Clear(FormatCategoryItems items) { in Clear() argument 138 if (items & eFormatCategoryItemFormat) in Clear() 141 if (items & eFormatCategoryItemSummary) in Clear() 144 if (items & eFormatCategoryItemFilter) in Clear() 147 if (items & eFormatCategoryItemSynth) in Clear() 151 bool TypeCategoryImpl::Delete(ConstString name, FormatCategoryItems items) { in Delete() argument 154 if (items & eFormatCategoryItemFormat) in Delete() 157 if (items & eFormatCategoryItemSummary) in Delete() 160 if (items & eFormatCategoryItemFilter) in Delete() 163 if (items & eFormatCategoryItemSynth) in Delete() [all …]
|
| /openbsd-src/lib/libssl/ |
| H A D | pqueue.c | 66 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-src/gnu/usr.bin/perl/cpan/Scalar-List-Utils/t/ |
| H A D | sample.t | 11 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-src/gnu/usr.bin/gcc/gcc/testsuite/g++.old-deja/g++.mike/ |
| H A D | p11667.C | 11 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-src/gnu/usr.bin/perl/dist/Thread-Queue/t/ |
| H A D | 11_limit.t | 40 # (4) Enqueue more items - will block 45 my @items = $rpt->dequeue(5); 46 is_deeply(\@items, [4, 3, 4, 3, 'go'], 'Queue reports'); 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 = (); [all …]
|
| H A D | 01_basic.t | 64 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 D | 10_timed.t | 30 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-src/gnu/usr.bin/perl/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/ |
| H A D | Base.pm | 235 my ($self, $args, @items) = @_; 242 foreach (@items) { 492 my ($self, $args, $namelen, $items, @items) = @_; 499 my @names = sort map {$_->{name}} @items; 594 @{$items}{@{$best->{$char}}}) { 686 my $items = shift; 722 if (exists $items->{$name}) { 725 $items->{$name} = $item; 728 if (exists $items->{$name} and ref $items->{$name} ne 'ARRAY') { 738 $items->{$name}[1] = $item; [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Win32/ |
| H A D | Win32.xs | 326 if (items != 1) in XS() 349 if (items) in XS() 423 if (items != 5) in XS() 458 if (items != 5) in XS() 488 if (items != 5) in XS() 530 if (items != 1) in XS() 569 if (items < 1 || items > 3) in XS() 573 if (items > 1) in XS() 575 if (items > 2) in XS() 592 if (items != 1) in XS() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/ |
| H A D | universal.c | 443 if (items != 2) in XS() 464 if (items > 1) { in XS() 479 (items > 2 ? " ..." : ""), in XS() 495 if (items != 2) in XS() 543 if (items != 2) in XS() 558 if (items != 1) in XS() 575 if (items != 1) in XS() 593 if (items != 1) in XS() 604 if (items != 1) in XS() 621 if (items ! in XS() [all...] |
| H A D | vxs.inc | 102 if (items < 1) 130 if (items > 1) { 197 SP -= items; 199 switch((U32)items) { 261 if (items < 1) 263 SP -= items; 275 if (items < 1) 277 SP -= items; 288 if (items != 1) 290 SP -= items; [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Scalar-List-Utils/ |
| H A D | ListUtil.xs | 283 if(!items) in min() 292 for(index = 1 ; index < items ; index++) { in min() 341 if(!items) in sum() 363 for(index = 1 ; index < items ; index++) { in sum() 511 if(!items) in minstr() 517 for(index = 1 ; index < items ; index++) { in minstr() 525 for(index = 1 ; index < items ; index++) { in minstr() 556 if(items <= 1) { in reduce() 573 av_extend(retvals, items-1-1); in reduce() 588 for(index = 2 ; index < items ; index++) { in reduce() [all …]
|
| /openbsd-src/gnu/usr.bin/perl/dist/PathTools/ |
| H A D | Cwd.xs | 575 PERL_UNUSED_VAR(items); 588 if (ix == 1 && items != 0) in getcwd() 634 if ( items == 0 || in getdcwd() 635 (items == 1 && (!SvOK(ST(0)) || (SvPOK(ST(0)) && !SvCUR(ST(0)))))) in getdcwd() 637 else if (items == 1 && SvPOK(ST(0)) && SvCUR(ST(0)) && in getdcwd() 682 EXTEND(SP, items+1); 683 ST(items) = EMPTY_STRING_SV; 685 do_join(joined, SLASH_STRING_SV, &ST(0), &ST(items)); 710 EXTEND(SP, items+1); 711 ST(items) [all...] |
| /openbsd-src/usr.bin/tmux/ |
| H A D | menu.c | 49 menu_add_items(struct menu *menu, const struct menu_item *items, in menu_add_items() argument 54 for (loop = items; loop->name != NULL; loop++) in menu_add_items() 72 if (line && menu->items[menu->count - 1].name == NULL) in menu_add_item() 75 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() [all...] |
| /openbsd-src/gnu/usr.bin/perl/dist/Thread-Queue/lib/Thread/ |
| H A D | Queue.pm | 95 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-src/gnu/llvm/lldb/examples/python/ |
| H A D | dict_utils.py | 7 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-src/bin/csh/ |
| H A D | file.c | 473 print_by_column(Char *dir, Char *items[], int count) in print_by_column() argument 481 maxwidth = maxwidth > (r = Strlen(items[i])) ? maxwidth : r; in print_by_column() 493 (void) fprintf(cshout, "%s", vis_str(items[i])); in print_by_column() 494 (void) fputc(dir ? filetype(dir, items[i]) : ' ', cshout); in print_by_column() 496 w = Strlen(items[i]) + 1; in print_by_column() 577 free_items(Char **items, int numitems) in free_items() argument 582 free(items[i]); in free_items() 583 free(items); in free_items() 586 #define FREE_ITEMS(items) { \ argument 592 free_items(items, numitems);\ [all …]
|
| /openbsd-src/gnu/usr.bin/perl/cpan/ExtUtils-Constant/t/ |
| H A D | Constant.t | 348 my ($name, $items, $export_names, $package, $header, $testfile, $num_tests, 360 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, [all …]
|
| /openbsd-src/lib/libz/ |
| H A D | zutil.c | 200 voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size) { in zcalloc() argument 202 ulg bsize = (ulg)items*size; in zcalloc() 261 voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, uInt items, uInt size) { in zcalloc() argument 263 return _halloc((long)items, size); in zcalloc() 280 extern voidp calloc(uInt items, uInt size); 284 voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size) { in zcalloc() argument 286 if (items == 0 || size == 0) in zcalloc() 288 return reallocarray(NULL, items, size); in zcalloc()
|
| /openbsd-src/gnu/usr.bin/perl/cpan/Compress-Raw-Zlib/zlib-src/ |
| H A D | zutil.c | 202 voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size) { 204 ulg bsize = (ulg)items*size; 263 voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, uInt items, uInt size) { in zcfree() 265 return _halloc((long)items, size); in zcfree() 282 extern voidp calloc(uInt items, uInt size); in zcalloc() argument 286 voidpf ZLIB_INTERNAL zcalloc(voidpf opaque, unsigned items, unsigned size) { in zcalloc() 288 return sizeof(uInt) > 2 ? (voidpf)malloc(items * size) : in zcfree() 289 (voidpf)calloc(items, size); in zcfree() 219 zcalloc(voidpf opaque,unsigned items,unsigned size) zcalloc() argument 309 zcalloc(voidpf opaque,unsigned items,unsigned size) zcalloc() argument
|