1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

ANSI styled

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ocean 2006-01-05 05:29:48 +00:00
parent b81154cbdf
commit 69981b5348
2 changed files with 9 additions and 18 deletions

View file

@ -23,9 +23,7 @@
#include <errno.h> #include <errno.h>
int int
flock(fd, operation) flock(int fd, int operation)
int fd;
int operation;
{ {
struct flock lock; struct flock lock;
@ -90,9 +88,7 @@ flock(fd, operation)
# endif # endif
int int
flock(fd, operation) flock(int fd, int operation)
int fd;
int operation;
{ {
switch (operation) { switch (operation) {
@ -124,9 +120,7 @@ flock(fd, operation)
} }
#elif !defined _WIN32 #elif !defined _WIN32
int int
flock(fd, operation) flock(int fd, int operation)
int fd;
int operation;
{ {
rb_notimplement(); rb_notimplement();
return -1; return -1;

View file

@ -6,8 +6,7 @@
#include <nan.h> #include <nan.h>
int int
isinf(n) isinf(double n)
double n;
{ {
if (IsNANorINF(n) && IsINF(n)) { if (IsNANorINF(n) && IsINF(n)) {
return 1; return 1;
@ -29,8 +28,7 @@ isinf(n)
#endif #endif
int int
isinf(n) isinf(double n)
double n;
{ {
return (!finite(n) && !isnan(n)); return (!finite(n) && !isnan(n));
} }
@ -43,13 +41,12 @@ isinf(n)
# include <strings.h> # include <strings.h>
#endif #endif
static double zero() { return 0.0; } static double zero(void) { return 0.0; }
static double one() { return 1.0; } static double one (void) { return 1.0; }
static double inf() { return one() / zero(); } static double inf (void) { return one() / zero(); }
int int
isinf(n) isinf(double n)
double n;
{ {
static double pinf = 0.0; static double pinf = 0.0;
static double ninf = 0.0; static double ninf = 0.0;