/dports/games/freeciv-nox11/freeciv-2.6.6/common/ |
H A D | worklist.c | 42 pwl->length = 0; in worklist_init() 59 fc_assert_ret_val(pwl->length >= 0 && pwl->length <= MAX_LEN_WORKLIST, -1); in worklist_length() 60 return pwl->length; in worklist_length() 68 return !pwl || pwl->length == 0; in worklist_is_empty() 133 pwl->entries[i] = pwl->entries[i + 1]; in worklist_remove() 136 pwl->entries[pwl->length - 1].kind = VUT_NONE; in worklist_remove() 138 pwl->entries[pwl->length - 1].value.building = NULL; in worklist_remove() 139 pwl->length--; in worklist_remove() 156 pwl->length++; in worklist_append() 180 pwl->entries[i + 1] = pwl->entries[i]; in worklist_insert() [all …]
|
H A D | worklist.h | 33 void worklist_init(struct worklist *pwl); 35 int worklist_length(const struct worklist *pwl); 36 bool worklist_is_empty(const struct worklist *pwl); 37 bool worklist_peek(const struct worklist *pwl, struct universal *prod); 38 bool worklist_peek_ith(const struct worklist *pwl, 40 void worklist_advance(struct worklist *pwl); 43 void worklist_remove(struct worklist *pwl, int idx); 44 bool worklist_append(struct worklist *pwl, const struct universal *prod); 45 bool worklist_insert(struct worklist *pwl, const struct universal *prod,
|
/dports/games/freeciv/freeciv-2.6.6/common/ |
H A D | worklist.c | 42 pwl->length = 0; in worklist_init() 59 fc_assert_ret_val(pwl->length >= 0 && pwl->length <= MAX_LEN_WORKLIST, -1); in worklist_length() 60 return pwl->length; in worklist_length() 68 return !pwl || pwl->length == 0; in worklist_is_empty() 133 pwl->entries[i] = pwl->entries[i + 1]; in worklist_remove() 136 pwl->entries[pwl->length - 1].kind = VUT_NONE; in worklist_remove() 138 pwl->entries[pwl->length - 1].value.building = NULL; in worklist_remove() 139 pwl->length--; in worklist_remove() 156 pwl->length++; in worklist_append() 180 pwl->entries[i + 1] = pwl->entries[i]; in worklist_insert() [all …]
|
H A D | worklist.h | 33 void worklist_init(struct worklist *pwl); 35 int worklist_length(const struct worklist *pwl); 36 bool worklist_is_empty(const struct worklist *pwl); 37 bool worklist_peek(const struct worklist *pwl, struct universal *prod); 38 bool worklist_peek_ith(const struct worklist *pwl, 40 void worklist_advance(struct worklist *pwl); 43 void worklist_remove(struct worklist *pwl, int idx); 44 bool worklist_append(struct worklist *pwl, const struct universal *prod); 45 bool worklist_insert(struct worklist *pwl, const struct universal *prod,
|
/dports/textproc/enchant2/enchant-2.2.15/src/ |
H A D | pwl.c | 197 return pwl; in enchant_pwl_init() 216 pwl->file_changed = 0; in enchant_pwl_init_with_file() 219 return pwl; in enchant_pwl_init_with_file() 225 if(!pwl->filename || in enchant_pwl_refresh_from_file() 231 pwl->trie = NULL; in enchant_pwl_refresh_from_file() 279 g_free(pwl->filename); in enchant_pwl_free() 281 g_free(pwl); in enchant_pwl_free() 295 pwl->trie = enchant_trie_insert(pwl->trie, normalized_word); in enchant_pwl_add_to_trie() 306 if(pwl->trie && pwl->trie->subtries == NULL && pwl->trie->value == NULL) { in enchant_pwl_remove_from_trie() 322 if (pwl->filename != NULL) in enchant_pwl_add() [all …]
|
/dports/textproc/enchant/enchant-1.6.0/src/ |
H A D | pwl.c | 242 EnchantPWL *pwl; in enchant_pwl_init() local 247 return pwl; in enchant_pwl_init() 263 EnchantPWL *pwl; in enchant_pwl_init_with_file() local 275 pwl->file_changed = 0; in enchant_pwl_init_with_file() 278 return pwl; in enchant_pwl_init_with_file() 289 if(!pwl->filename) in enchant_pwl_refresh_from_file() 299 pwl->trie = NULL; in enchant_pwl_refresh_from_file() 352 g_free(pwl); in enchant_pwl_free() 368 pwl->trie = enchant_trie_insert(pwl->trie, normalized_word); in enchant_pwl_add_to_trie() 379 if(pwl->trie && pwl->trie->subtries == NULL && pwl->trie->value == NULL) in enchant_pwl_remove_from_trie() [all …]
|
/dports/mail/cone/cone-1.1/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/security/courier-authlib-base/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/mail/sqwebmail/sqwebmail-6.0.6/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/databases/courier-authlib-pgsql/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/databases/courier-authlib-mysql/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/databases/courier-authlib-userdb/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/net/courier-authlib-ldap/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/mail/courier/courier-0.65.3/md5/ |
H A D | redhat-crypt-md5.c | 19 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 32 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 35 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 39 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 43 for (i=pwl; i; ) in md5_crypt_redhat() 51 j=pwl*2+l+3; in md5_crypt_redhat() 53 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 71 j += pwl; in md5_crypt_redhat() 88 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/mail/courier-authlib-vchkpw/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/mail/courier-imap/courier-imap-5.1.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/databases/courier-authlib-sqlite/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/databases/courier-authlib-usergdbm/courier-authlib-0.71.4/libs/md5/ |
H A D | redhat-crypt-md5.c | 18 unsigned pwl=strlen(pw); in md5_crypt_redhat() local 31 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 33 md5_context_hashstream(&inner_context, pw, pwl); in md5_crypt_redhat() 34 md5_context_endstream(&inner_context, pwl*2+l); in md5_crypt_redhat() 38 md5_context_hashstream(&outer_context, pw, pwl); in md5_crypt_redhat() 42 for (i=pwl; i; ) in md5_crypt_redhat() 50 j=pwl*2+l+3; in md5_crypt_redhat() 52 for (i=pwl; i; i >>= 1) in md5_crypt_redhat() 70 j += pwl; in md5_crypt_redhat() 87 j += pwl; in md5_crypt_redhat() [all …]
|
/dports/lang/php73/php-7.3.33/ext/standard/ |
H A D | php_crypt_r.c | 129 DWORD i, pwl, sl; in php_md5_crypt_r() local 146 pwl = (DWORD) strlen(pw); in php_md5_crypt_r() 170 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 189 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 195 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 203 for (pl = pwl; pl > 0; pl -= 16) { in php_md5_crypt_r() 211 for (i = pwl; i != 0; i >>= 1) { in php_md5_crypt_r() 323 unsigned int i, sl, pwl; in php_md5_crypt_r() local 328 pwl = strlen(pw); in php_md5_crypt_r() 362 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() [all …]
|
/dports/lang/php74/php-7.4.27/ext/standard/ |
H A D | php_crypt_r.c | 129 DWORD i, pwl, sl; in php_md5_crypt_r() local 146 pwl = (DWORD) strlen(pw); in php_md5_crypt_r() 168 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 187 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 193 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 201 for (pl = pwl; pl > 0; pl -= 16) { in php_md5_crypt_r() 209 for (i = pwl; i != 0; i >>= 1) { in php_md5_crypt_r() 321 unsigned int i, sl, pwl; in php_md5_crypt_r() local 326 pwl = strlen(pw); in php_md5_crypt_r() 359 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() [all …]
|
/dports/www/mod_php73/php-7.3.33/ext/standard/ |
H A D | php_crypt_r.c | 129 DWORD i, pwl, sl; in php_md5_crypt_r() local 146 pwl = (DWORD) strlen(pw); in php_md5_crypt_r() 170 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 189 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 195 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 203 for (pl = pwl; pl > 0; pl -= 16) { in php_md5_crypt_r() 211 for (i = pwl; i != 0; i >>= 1) { in php_md5_crypt_r() 323 unsigned int i, sl, pwl; in php_md5_crypt_r() local 328 pwl = strlen(pw); in php_md5_crypt_r() 362 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() [all …]
|
/dports/www/mod_php74/php-7.4.27/ext/standard/ |
H A D | php_crypt_r.c | 129 DWORD i, pwl, sl; in php_md5_crypt_r() local 146 pwl = (DWORD) strlen(pw); in php_md5_crypt_r() 168 if(!CryptHashData(ctx, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 187 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 193 if(!CryptHashData(ctx1, (BYTE *)pw, pwl, 0)) { in php_md5_crypt_r() 201 for (pl = pwl; pl > 0; pl -= 16) { in php_md5_crypt_r() 209 for (i = pwl; i != 0; i >>= 1) { in php_md5_crypt_r() 321 unsigned int i, sl, pwl; in php_md5_crypt_r() local 326 pwl = strlen(pw); in php_md5_crypt_r() 359 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() [all …]
|
/dports/lang/php80/php-8.0.15/ext/standard/ |
H A D | php_crypt_r.c | 106 unsigned int i, sl, pwl; in php_md5_crypt_r() local 111 pwl = strlen(pw); in php_md5_crypt_r() 129 PHP_MD5Update(&ctx, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 139 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 141 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 144 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() 151 for (i = pwl; i != 0; i >>= 1) in php_md5_crypt_r() 173 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 181 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 186 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r()
|
/dports/lang/php81/php-8.1.1/ext/standard/ |
H A D | php_crypt_r.c | 106 unsigned int i, sl, pwl; in php_md5_crypt_r() local 111 pwl = strlen(pw); in php_md5_crypt_r() 129 PHP_MD5Update(&ctx, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 139 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 141 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 144 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() 151 for (i = pwl; i != 0; i >>= 1) in php_md5_crypt_r() 173 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 181 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 186 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r()
|
/dports/www/mod_php81/php-8.1.1/ext/standard/ |
H A D | php_crypt_r.c | 106 unsigned int i, sl, pwl; in php_md5_crypt_r() local 111 pwl = strlen(pw); in php_md5_crypt_r() 129 PHP_MD5Update(&ctx, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 139 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 141 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 144 for (pl = pwl; pl > 0; pl -= 16) in php_md5_crypt_r() 151 for (i = pwl; i != 0; i >>= 1) in php_md5_crypt_r() 173 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 181 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r() 186 PHP_MD5Update(&ctx1, (const unsigned char *)pw, pwl); in php_md5_crypt_r()
|