SNAP Library 6.0, User Reference  2020-12-09 16:24:20
SNAP, a general purpose, high performance system for analysis and manipulation of large networks
base.cpp
Go to the documentation of this file.
1 #include "stdafx.h"
2 
3 #include "base.h"
4 
5 void BaseTralala(){
6  printf("Active defines:\n");
7  #ifdef GLib_WIN
8  printf(" GLib_WIN\n");
9  #endif
10  #ifdef GLib_WIN32
11  printf(" GLib_WIN32\n");
12  #endif
13  #ifdef GLib_WIN64
14  printf(" GLib_WIN64\n");
15  #endif
16  #ifdef GLib_UNIX
17  printf(" GLib_UNIX\n");
18  #endif
19  #ifdef GLib_LINUX
20  printf(" GLib_LINUX\n");
21  #endif
22  #ifdef GLib_SOLARIS
23  printf(" GLib_SOLARIS\n");
24  #endif
25  #ifdef GLib_MSC
26  printf(" GLib_MSC\n");
27  #endif
28  #ifdef GLib_CYGWIN
29  printf(" GLib_CYGWIN\n");
30  #endif
31  #ifdef GLib_BCB
32  printf(" GLib_BCB\n");
33  #endif
34  #ifdef GLib_GCC
35  printf(" GLib_GCC\n");
36  #endif
37  #ifdef GLib_MACOSX
38  printf(" GLib_MACOSX\n");
39  #endif
40  #ifdef GLib_64Bit
41  printf(" GLib_64Bit\n");
42  #endif
43  #ifdef GLib_32Bit
44  printf(" GLib_32Bit\n");
45  #endif
46  #ifdef GLib_GLIBC
47  printf(" GLib_GLIBC\n");
48  #endif
49  #ifdef GLib_POSIX_1j
50  printf(" GLib_POSIX_1j\n");
51  #endif
52 }
53 
54 #if defined(GLib_UNIX) && ! defined(GLib_CYGWIN)
55 int _daylight = 0;
56 #endif
57 
58 #if defined(WIN32_LEAN_AND_MEAN)
59 int gettimeofday(struct timeval *tp, void *tzp)
60 {
61  // Note: some broken versions only have 8 trailing zero's, the correct epoch has 9 trailing zero's
62  static const uint64_t EPOCH = ((uint64_t) 116444736000000000ULL);
63 
64  SYSTEMTIME system_time;
65  FILETIME file_time;
66  uint64_t time;
67 
68  GetSystemTime( &system_time );
69  SystemTimeToFileTime( &system_time, &file_time );
70  time = ((uint64_t)file_time.dwLowDateTime ) ;
71  time += ((uint64_t)file_time.dwHighDateTime) << 32;
72 
73  tp->tv_sec = (long) ((time - EPOCH) / 10000000L);
74  tp->tv_usec = (long) (system_time.wMilliseconds * 1000);
75  return 0;
76 }
77 #endif
78 
79 #include "bd.cpp"
80 #include "fl.cpp"
81 #include "dt.cpp"
82 #include "ut.cpp"
83 #include "hash.cpp"
84 
85 #include "unicode.cpp"
86 #include "unicodestring.cpp"
87 #include "tm.cpp"
88 #include "os.cpp"
89 
90 #include "bits.cpp"
91 #include "env.cpp"
92 #include "wch.cpp"
93 #include "xfl.cpp"
94 #include "xmath.cpp"
95 
96 #include "blobbs.cpp"
97 #include "lx.cpp"
98 #include "url.cpp"
99 
100 #include "http.cpp"
101 #include "html.cpp"
102 #include "md5.cpp"
103 #include "ss.cpp"
104 #include "ssmp.cpp"
105 #include "xml.cpp"
106 #include "json.cpp"
107 //#include "prolog.cpp"
108 
109 #include "zipfl.cpp"
110 
void BaseTralala()
Definition: base.cpp:5