/dports/devel/p5-List-Pairwise/List-Pairwise-1.03/t/ |
H A D | lastp.t | 7 use List::Pairwise 'lastp'; 34 lastp {$a =~ /snoogy/} @b 42 lastp {$b < 5} @b 50 lastp {$a =~ /snoogy/ && $b < 5} @b 59 lastp {$a =~ /bla/} @b 70 [lastp {$a==3} (1..3)], 72 'lastp odd list', 125 eval {lastp {$a, $b} (1..5)}; 135 eval {lastp {$a, $b} (1..5)}; 146 eval {lastp {$a, $b} (1..5)}; [all …]
|
H A D | context.t | 54 # lastp, same as grep (always scalar context) 58 lastp { sub { $c = wantarray }->() } 1, 1; 59 is($c, $facit, 'void lastp, same context as void lastp'); 60 is($c, '', 'void lastp, scalar context'); 65 scalar lastp { sub { $c = wantarray }->() } 1, 1; 66 is($c, $facit, 'scalar lastp, same context as scalar lastp'); 67 is($c, '', 'scalar lastp, scalar context'); 72 () = lastp { sub { $c = wantarray }->() } 1, 1; 73 is($c, $facit, 'list lastp, same context as list lastp'); 74 is($c, '', 'list lastp, scalar context');
|
/dports/mail/avenger/avenger-0.8.5/libasync/ |
H A D | vec.h | 38 elm_t *lastp; member 55 elm_t *lastp; 68 doswap (lastp); 80 using base_t::lastp; 94 lastp = basep + (lastp - firstp); 161 elm_t *sp = lastp; 162 lastp += n; 163 while (sp < lastp) 195 elm_t *sp = lastp; 196 lastp -= n; [all …]
|
/dports/sysutils/uefi-edk2-bhyve-csm/uefi-edk2-aa8d718/StdLib/PosixLib/Gen/ |
H A D | dirname.c | 58 const char *lastp; in __weak_alias() local 69 lastp = path + strlen(path) - 1; in __weak_alias() 70 while (lastp != path && isDirSep(*lastp)) in __weak_alias() 71 lastp--; in __weak_alias() 75 if (isDirSep(*lastp)) { in __weak_alias() 77 while (lastp != path && isDirSep(*lastp)) in __weak_alias() 78 lastp--; in __weak_alias() 84 len = (lastp - path) + 1 /* last char */; in __weak_alias() 89 if(*lastp == ':') { /* Have we stripped off all except the Volume name? */ in __weak_alias() 90 if(isDirSep(lastp[1])) { /* Was ...":/"... so we want the root of the volume. */ in __weak_alias() [all …]
|
/dports/ftp/tnftp/tnftp-20210827/libnetbsd/ |
H A D | dirname.c | 41 char *lastp; local 52 lastp = path + strlen(path) - 1; 53 while (lastp != path && *lastp == '/') 54 lastp--; 58 if (*lastp == '/') { 60 while (lastp != path && *lastp == '/') 61 lastp--; 64 len = (lastp - path) + 1 /* last char */; 73 } while (--lastp >= path);
|
/dports/news/husky-fidoconf/husky-fidoconf-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky/husky-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky-huskylib/husky-huskylib-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky-hpt/husky-hpt-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky-sqpack/husky-sqpack-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky-smapi/husky-smapi-1.9.20191207,1/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky-htick/husky-htick-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/news/husky-areafix/husky-areafix-1.9.20191207/fastlst/aplibs/ |
H A D | wordstore.cc | 25 lastp = NULL; in Init() 86 lastp = nextp; in GetNext() 95 if (!lastp) in RemoveLast() 97 if (*lastp == '\0') in RemoveLast() 101 while (lastp > storebuf) // remove useless space in RemoveLast() 102 if (*(lastp-1) == ' ') in RemoveLast() 103 lastp --; in RemoveLast() 108 memmove ((char *)lastp, nextp, movelen); in RemoveLast() 111 usedsize -= (nextp - lastp); in RemoveLast() 113 nextp = lastp; in RemoveLast() [all …]
|
/dports/finance/moneymanagerex/bakefile-0.2.9/src/ |
H A D | win32scriptwrapper.c | 66 char *lastp = NULL; in main() local 71 lastp = strrchr(exename, '\\'); in main() 72 if (lastp == NULL) in main() 79 strncpy(dirname, exename, lastp - exename + 1); in main() 80 dirname[lastp - exename + 1] = 0; in main() 81 strncpy(basename, lastp+1, 2048); in main() 84 lastp = strrchr(basename, '.'); in main() 86 if (lastp == NULL) in main() 92 strncpy(lastp, ".py", 2048-(2+lastp-basename)); in main()
|
/dports/devel/zpu-gcc/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/iconv/ |
H A D | gconv_open.c | 90 lastp = runp; in __gconv_open() 105 if (lastp == NULL) in __gconv_open() 108 lastp->next = newp; in __gconv_open() 127 lastp = runp; in __gconv_open() 137 if (lastp == NULL) in __gconv_open() 140 lastp->next = newp; in __gconv_open() 172 lastp = runp; in __gconv_open() 175 (lastp == NULL ? trans : lastp->next) = runp->next; in __gconv_open() 248 while (*lastp != NULL) in __gconv_open() 249 lastp = &(*lastp)->__next; in __gconv_open() [all …]
|
/dports/devel/arm-none-eabi-newlib/newlib-2.4.0/newlib/libc/sys/linux/iconv/ |
H A D | gconv_open.c | 90 lastp = runp; in __gconv_open() 105 if (lastp == NULL) in __gconv_open() 108 lastp->next = newp; in __gconv_open() 127 lastp = runp; in __gconv_open() 137 if (lastp == NULL) in __gconv_open() 140 lastp->next = newp; in __gconv_open() 172 lastp = runp; in __gconv_open() 175 if (lastp == NULL) in __gconv_open() 251 while (*lastp != NULL) in __gconv_open() 252 lastp = &(*lastp)->__next; in __gconv_open() [all …]
|
/dports/devel/zpu-binutils/zpu-toolchain-1.0/toolchain/gcc/newlib/libc/sys/linux/iconv/ |
H A D | gconv_open.c | 90 lastp = runp; in __gconv_open() 105 if (lastp == NULL) in __gconv_open() 108 lastp->next = newp; in __gconv_open() 127 lastp = runp; in __gconv_open() 137 if (lastp == NULL) in __gconv_open() 140 lastp->next = newp; in __gconv_open() 172 lastp = runp; in __gconv_open() 175 (lastp == NULL ? trans : lastp->next) = runp->next; in __gconv_open() 248 while (*lastp != NULL) in __gconv_open() 249 lastp = &(*lastp)->__next; in __gconv_open() [all …]
|
/dports/databases/db5/db-5.3.28/src/db/ |
H A D | db_overflow.c | 233 PAGE *pagep, *lastp; local 246 lastp = NULL; 287 memcpy((u_int8_t *)lastp + P_OVERHEAD(dbp) + OV_LEN(lastp), 289 OV_LEN(lastp) += space; 317 PGNO(pagep), lastp ? PGNO(lastp) : PGNO_INVALID, 319 lastp == NULL ? &null_lsn : &LSN(lastp), 329 if (lastp != NULL) 342 if (lastp == NULL) { 352 lastp = NULL; 356 lastp = pagep; [all …]
|
/dports/net-mgmt/bpft/bpft/trafstatd/ |
H A D | trafstatd.c | 89 char *lastp = &line[strlen(line)]; local 107 if (lastp[-2] == 0xd) { 108 lastp--; 109 *(lastp-1) = '\n'; 110 *lastp = 0; 114 if (lastp[-1] != '\n') 115 *lastp++ = '\n'; 116 fwrite(line, sizeof line[0], lastp - line, fplog);
|
/dports/textproc/htdig/htdig-3.2.0b6/db/ |
H A D | db_salloc.c | 175 struct __data *elp, *lastp, *newp; local 223 for (elp = SH_LIST_FIRST(hp, __data), lastp = NULL; 225 lastp = elp, elp = SH_LIST_NEXT(elp, links, __data)) 240 if (lastp != NULL) 241 SH_LIST_INSERT_AFTER(lastp, newp, links, __data); 248 if (lastp != NULL && (u_int8_t *)lastp + 249 lastp->len + sizeof(size_t) == (u_int8_t *)newp) { 250 lastp->len += newp->len + sizeof(size_t); 263 if (lastp == NULL) 266 SH_LIST_INSERT_AFTER(lastp, newp, links, __data);
|
/dports/databases/db18/db-18.1.40/src/db/ |
H A D | db_overflow.c | 263 PAGE *pagep, *lastp; local 278 lastp = NULL; 319 memcpy((u_int8_t *)lastp + P_OVERHEAD(dbp) + OV_LEN(lastp), 321 OV_LEN(lastp) += space; 349 PGNO(pagep), lastp ? PGNO(lastp) : PGNO_INVALID, 351 lastp == NULL ? &null_lsn : &LSN(lastp), 361 if (lastp != NULL) 374 if (lastp == NULL) { 384 lastp = NULL; 388 lastp = pagep; [all …]
|
/dports/sysutils/renameutils/renameutils-0.12.0/gnulib-lib/ |
H A D | rpmatch.c | 92 try (const char *response, const char *pattern, char **lastp, regex_t *re) in try() argument 94 if (*lastp == NULL || strcmp (pattern, *lastp) != 0) in try() 99 if (*lastp != NULL) in try() 103 free (*lastp); in try() 104 *lastp = NULL; in try() 114 *lastp = safe_pattern; in try()
|
/dports/net/wireshark-lite/wireshark-3.6.1/ui/ |
H A D | util.c | 152 char *lastp, *lastc, *p; in get_conn_cfilter() local 233 for (lastp = p; *p != '\0' && *p != ':' && *p != '/'; p++) in get_conn_cfilter() 238 if (p != lastp && *p != ':') { /* protocol given? */ in get_conn_cfilter() 243 if (p - lastp != 3 || g_ascii_strncasecmp(lastp, "tcp", 3) != 0) in get_conn_cfilter() 257 lastp = p; in get_conn_cfilter() 266 if ((lastp != lastc) && (*(lastc - 1) == ':') in get_conn_cfilter() 267 && (((lastc - 1) == lastp) || (*(lastc - 2) != ':'))) { in get_conn_cfilter() 271 hostlen = lastc - lastp; in get_conn_cfilter() 277 memcpy(phostname, lastp, hostlen); in get_conn_cfilter()
|
/dports/net/wireshark/wireshark-3.6.1/ui/ |
H A D | util.c | 152 char *lastp, *lastc, *p; in get_conn_cfilter() local 233 for (lastp = p; *p != '\0' && *p != ':' && *p != '/'; p++) in get_conn_cfilter() 238 if (p != lastp && *p != ':') { /* protocol given? */ in get_conn_cfilter() 243 if (p - lastp != 3 || g_ascii_strncasecmp(lastp, "tcp", 3) != 0) in get_conn_cfilter() 257 lastp = p; in get_conn_cfilter() 266 if ((lastp != lastc) && (*(lastc - 1) == ':') in get_conn_cfilter() 267 && (((lastc - 1) == lastp) || (*(lastc - 2) != ':'))) { in get_conn_cfilter() 271 hostlen = lastc - lastp; in get_conn_cfilter() 277 memcpy(phostname, lastp, hostlen); in get_conn_cfilter()
|
/dports/net/tshark-lite/wireshark-3.6.1/ui/ |
H A D | util.c | 152 char *lastp, *lastc, *p; 233 for (lastp = p; *p != '\0' && *p != ':' && *p != '/'; p++) 238 if (p != lastp && *p != ':') { /* protocol given? */ 243 if (p - lastp != 3 || g_ascii_strncasecmp(lastp, "tcp", 3) != 0) 257 lastp = p; 266 if ((lastp != lastc) && (*(lastc - 1) == ':') 267 && (((lastc - 1) == lastp) || (*(lastc - 2) != ':'))) { 271 hostlen = lastc - lastp; 277 memcpy(phostname, lastp, hostlen);
|