git-svn-id: svn://db.shs.com.ru/pip@547 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
49
main.cpp
49
main.cpp
@@ -1,52 +1,11 @@
|
|||||||
#include "pip.h"
|
#include "pip.h"
|
||||||
|
#include "picodeparser.h"
|
||||||
#include "pivector2d.h"
|
#include "pivector2d.h"
|
||||||
#include "pistring.h"
|
|
||||||
#ifdef QNX
|
|
||||||
# include <net/if.h>
|
|
||||||
# include <net/if_dl.h>
|
|
||||||
# include <hw/nicinfo.h>
|
|
||||||
# include <netdb.h>
|
|
||||||
# include <sys/socket.h>
|
|
||||||
# include <sys/time.h>
|
|
||||||
# include <sys/types.h>
|
|
||||||
# include <sys/ioctl.h>
|
|
||||||
# include <netinet/in.h>
|
|
||||||
# include <arpa/inet.h>
|
|
||||||
# include <ifaddrs.h>
|
|
||||||
# include <fcntl.h>
|
|
||||||
# ifdef BLACKBERRY
|
|
||||||
# include <netinet/in.h>
|
|
||||||
# else
|
|
||||||
# include <sys/dcmd_io-net.h>
|
|
||||||
# endif
|
|
||||||
# define ip_mreqn ip_mreq
|
|
||||||
# define imr_address imr_interface
|
|
||||||
#else
|
|
||||||
# ifdef WINDOWS
|
|
||||||
# include <io.h>
|
|
||||||
# include <winsock2.h>
|
|
||||||
# include <iphlpapi.h>
|
|
||||||
# include <psapi.h>
|
|
||||||
# include <ws2tcpip.h>
|
|
||||||
# define ip_mreqn ip_mreq
|
|
||||||
# define imr_address imr_interface
|
|
||||||
# else
|
|
||||||
# include <fcntl.h>
|
|
||||||
# include <sys/ioctl.h>
|
|
||||||
# include <netinet/in.h>
|
|
||||||
# include <arpa/inet.h>
|
|
||||||
# include <sys/socket.h>
|
|
||||||
# include <net/if.h>
|
|
||||||
# include <netdb.h>
|
|
||||||
# ifndef ANDROID
|
|
||||||
# include <ifaddrs.h>
|
|
||||||
# endif
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
#include <errno.h>
|
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
|
PICodeParser cp;
|
||||||
|
cp.parseFile("cp.h");
|
||||||
/*PIString s = PIString::fromUTF8("hello, привет");
|
/*PIString s = PIString::fromUTF8("hello, привет");
|
||||||
piCout << s;
|
piCout << s;
|
||||||
PIByteArray ba = s.toUTF8();
|
PIByteArray ba = s.toUTF8();
|
||||||
@@ -54,8 +13,6 @@ int main(int argc, char *argv[]) {
|
|||||||
PIString s2;
|
PIString s2;
|
||||||
s2 = PIString::fromUTF8(ba);
|
s2 = PIString::fromUTF8(ba);
|
||||||
piCout << s2;*/
|
piCout << s2;*/
|
||||||
piCout << PIEthernet::Address::resolve("www.ya.ru:22");
|
|
||||||
piCout << PIEthernet::Address::resolve("www.ya.ru", 22);
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -203,6 +203,7 @@
|
|||||||
c::__PrivateInitializer__ & c::__PrivateInitializer__::operator =(const c::__PrivateInitializer__ & o) {if (p) delete p; p = new c::__Private__(); return *this;}
|
c::__PrivateInitializer__ & c::__PrivateInitializer__::operator =(const c::__PrivateInitializer__ & o) {if (p) delete p; p = new c::__Private__(); return *this;}
|
||||||
|
|
||||||
#define PRIVATE (__privateinitializer__.p)
|
#define PRIVATE (__privateinitializer__.p)
|
||||||
|
#define PRIVATEWB __privateinitializer__.p
|
||||||
|
|
||||||
|
|
||||||
//! Macro used for infinite loop
|
//! Macro used for infinite loop
|
||||||
|
|||||||
Reference in New Issue
Block a user