| 1038 |
: r)); |
: r)); |
| 1039 |
} |
} |
| 1040 |
|
|
| 1041 |
#elif defined(_POSIX_SOURCE) |
#elif defined(_POSIX_SOURCE) || defined(FREEBSD) /* MAKAI */ |
| 1042 |
|
|
| 1043 |
#include <pthread.h> |
#include <pthread.h> |
| 1044 |
#include <unistd.h> |
#include <unistd.h> |
| 1378 |
char *trip; |
char *trip; |
| 1379 |
unsigned char *kind; |
unsigned char *kind; |
| 1380 |
{ |
{ |
|
/* 飛連関連のコードは、セロリン ◆Celeron/rc 作 */ |
|
|
if ( special & ST_HREN ) { |
|
|
/* 飛連 */ |
|
|
int w, x = 0, y = 0; |
|
|
|
|
|
for ( w = 0; w < TRIP_LEN; w++ ) { |
|
|
if ( trip[w] == trip[0] ) x += 1; |
|
|
if ( trip[w] == trip[1] ) y += 1; |
|
|
if ( x >= 8 || y >= 8 ) { |
|
|
strcpy( kind, "飛" ); |
|
|
return( tfp ); |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
| 1381 |
if ( special & ST_BUOO ) { |
if ( special & ST_BUOO ) { |
| 1382 |
/* ぶお [A-Za-z]aoo[A-Za-z]uoo$ */ |
/* ぶお [A-Za-z]aoo[A-Za-z]uoo$ */ |
| 1383 |
if ( trip[3] == 'a' && trip[4] == 'o' && trip[5] == 'o' && |
if ( trip[3] == 'a' && trip[4] == 'o' && trip[5] == 'o' && |
| 1392 |
/* 二構 */ |
/* 二構 */ |
| 1393 |
int i; |
int i; |
| 1394 |
char ch1, ch2; |
char ch1, ch2; |
|
|
|
| 1395 |
ch1 = trip[0]; |
ch1 = trip[0]; |
| 1396 |
for ( i = 1; i < TRIP_LEN; i++ ) { |
for ( i = 1; i < TRIP_LEN; i++ ) { |
| 1397 |
if ( trip[i] != ch1 ) break; |
if ( trip[i] != ch1 ) break; |
| 1405 |
} |
} |
| 1406 |
NONIKO: |
NONIKO: |
| 1407 |
|
|
| 1408 |
|
/* 飛連関連のコードは、セロリン ◆Celeron/rc 作 */ |
| 1409 |
|
if ( special & ST_HREN ) { |
| 1410 |
|
/* 飛連 */ |
| 1411 |
|
int w, x = 0, y = 0; |
| 1412 |
|
for ( w = 0; w < TRIP_LEN; w++ ) { |
| 1413 |
|
if ( trip[w] == trip[0] ) x += 1; |
| 1414 |
|
if ( trip[w] == trip[1] ) y += 1; |
| 1415 |
|
if ( x >= 8 || y >= 8 ) { |
| 1416 |
|
strcpy( kind, "飛" ); |
| 1417 |
|
return( tfp ); |
| 1418 |
|
} |
| 1419 |
|
} |
| 1420 |
|
} |
| 1421 |
|
|
| 1422 |
if ( special & ST_ALLN ) { |
if ( special & ST_ALLN ) { |
| 1423 |
/* 全数 か 怒数 */ |
/* 全数 か 怒数 */ |
| 1424 |
if ( isdigit( trip[0] ) && isdigit( trip[1] ) && isdigit( trip[2] ) && |
if ( isdigit( trip[0] ) && isdigit( trip[1] ) && isdigit( trip[2] ) && |
| 1451 |
strcpy( kind, "怒" ); |
strcpy( kind, "怒" ); |
| 1452 |
return( tfp ); |
return( tfp ); |
| 1453 |
} |
} |
| 1454 |
/* 最大ねらい */ |
/* 最大 (9999999966 以上) は、純 8 連で出るので削除 */ |
|
if ( trip[0] == '9' && trip[1] == '9' && trip[2] == '9' && |
|
|
trip[3] == '9' && trip[4] == '9' && trip[5] == '9' && |
|
|
trip[6] == '9' ) { |
|
|
strcpy( kind, "怒" ); |
|
|
return( tfp ); |
|
|
} |
|
| 1455 |
} else { |
} else { |
| 1456 |
strcpy( kind, "数" ); |
strcpy( kind, "数" ); |
| 1457 |
return( nfp ); |
return( nfp ); |