Mercurial > ~astiob > upreckon > hgweb
comparison upreckon/_unixmodule.cpp @ 254:393b4689ac2f
Made is_int declarations in _unix non-static
This removes some compiler warnings.
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 14 Mar 2014 15:31:40 +0000 |
parents | d06e57b182a9 |
children |
comparison
equal
deleted
inserted
replaced
253:d06e57b182a9 | 254:393b4689ac2f |
---|---|
691 return ptv->tv_usec != -1 || PyErr_Occurred() == NULL; | 691 return ptv->tv_usec != -1 || PyErr_Occurred() == NULL; |
692 } | 692 } |
693 | 693 |
694 #ifdef __cplusplus | 694 #ifdef __cplusplus |
695 typedef struct { char a[2]; } two_chars; | 695 typedef struct { char a[2]; } two_chars; |
696 static char is_int(char); | 696 char is_int(char); |
697 static char is_int(signed char); | 697 char is_int(signed char); |
698 static char is_int(unsigned char); | 698 char is_int(unsigned char); |
699 static char is_int(short); | 699 char is_int(short); |
700 static char is_int(unsigned short); | 700 char is_int(unsigned short); |
701 static char is_int(int); | 701 char is_int(int); |
702 static char is_int(unsigned); | 702 char is_int(unsigned); |
703 static char is_int(long); | 703 char is_int(long); |
704 static char is_int(unsigned long); | 704 char is_int(unsigned long); |
705 #ifdef HAVE_LONG_LONG | 705 #ifdef HAVE_LONG_LONG |
706 static char is_int(long long); | 706 char is_int(long long); |
707 static char is_int(unsigned long long); | 707 char is_int(unsigned long long); |
708 #endif | 708 #endif |
709 static two_chars is_int(...); | 709 two_chars is_int(...); |
710 #endif | 710 #endif |
711 | 711 |
712 static inline PyObject *timeval_to_obj(const _PyTime_timeval *ptv) | 712 static inline PyObject *timeval_to_obj(const _PyTime_timeval *ptv) |
713 { | 713 { |
714 #ifdef __cplusplus | 714 #ifdef __cplusplus |