Changeset 527
- Timestamp:
- 01/31/09 21:10:41 (3 years ago)
- Location:
- interpreter/trunk
- Files:
-
- 8 edited
-
modules/System/date/hires.c (modified) (2 diffs)
-
modules/System/digest.c (modified) (1 diff)
-
objs/kite_obj_locate.c (modified) (2 diffs)
-
windows/config.h (modified) (2 diffs)
-
windows/ikt.vcproj (modified) (1 diff)
-
windows/kdb.vcproj (modified) (1 diff)
-
windows/kite.vcproj (modified) (1 diff)
-
windows/libkite.vcproj (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
interpreter/trunk/modules/System/date/hires.c
r523 r527 4 4 #ifndef WIN32 5 5 #include <unistd.h> 6 #include <sys/time.h> 7 #else 8 #include <winsock2.h> 9 #include <time.h> 10 11 #if defined(_MSC_VER) || defined(_MSC_EXTENSIONS) 12 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000Ui64 13 #else 14 #define DELTA_EPOCH_IN_MICROSECS 11644473600000000ULL 15 #endif 16 6 17 #endif /* WIN32 */ 7 18 #include <errno.h> 8 19 #define __USE_XOPEN 9 #include <sys/time.h>10 20 11 21 #include "kite_object.h" … … 35 45 } 36 46 47 #ifdef WIN32 48 struct timezone 49 { 50 int tz_minuteswest; /* minutes W of Greenwich */ 51 int tz_dsttime; /* type of dst correction */ 52 }; 53 54 int gettimeofday(struct timeval *tv, struct timezone *tz) 55 { 56 FILETIME ft; 57 unsigned __int64 tmpres = 0; 58 static int tzflag; 59 60 if (NULL != tv) 61 { 62 GetSystemTimeAsFileTime(&ft); 63 64 tmpres |= ft.dwHighDateTime; 65 tmpres <<= 32; 66 tmpres |= ft.dwLowDateTime; 67 68 /*converting file time to unix epoch*/ 69 tmpres /= 10; /*convert into microseconds*/ 70 tmpres -= DELTA_EPOCH_IN_MICROSECS; 71 tv->tv_sec = (long)(tmpres / 1000000UL); 72 tv->tv_usec = (long)(tmpres % 1000000UL); 73 } 74 75 if (NULL != tz) 76 { 77 if (!tzflag) 78 { 79 _tzset(); 80 tzflag++; 81 } 82 tz->tz_minuteswest = _timezone / 60; 83 tz->tz_dsttime = _daylight; 84 } 85 86 return 0; 87 } 88 #endif /* WIN32 */ 37 89 38 90 /* Subtract the `struct timeval' values X and Y, -
interpreter/trunk/modules/System/digest.c
r516 r527 5 5 #include "kite_vm.h" 6 6 7 #i mport "md5.h"7 #include "digest/md5.h" 8 8 9 9 KITE_CLASS_METHOD(Digest_md5file) -
interpreter/trunk/objs/kite_obj_locate.c
r519 r527 302 302 free(classname); 303 303 if (word == NULL && loc == NULL) { 304 kite_object_t *exc; 305 304 306 if (strncmp(class, "System.exceptions", strlen("System.exceptions")) == 0) 305 307 { … … 314 316 315 317 /* Couldn't find module; throw exception. */ 316 kite_object_t *exc = kite_new_exception(thd, "System.exceptions.PackageNotFound",318 exc = kite_new_exception(thd, "System.exceptions.PackageNotFound", 317 319 class); 318 320 kite_vm_call_method(thd, exc, "throw", kite_new_list(thd), TRUE); -
interpreter/trunk/windows/config.h
r524 r527 114 114 115 115 /* Define to the full name and version of this package. */ 116 #define PACKAGE_STRING "kite 1.0. 0"116 #define PACKAGE_STRING "kite 1.0.1" 117 117 118 118 /* Define to the one symbol short name of this package. */ … … 120 120 121 121 /* Define to the version of this package. */ 122 #define PACKAGE_VERSION "1.0. 0"122 #define PACKAGE_VERSION "1.0.1" 123 123 124 124 /* Define to 1 if you have the ANSI C header files. */ -
interpreter/trunk/windows/ikt.vcproj
r466 r527 60 60 <Tool 61 61 Name="VCLinkerTool" 62 AdditionalDependencies="gc_debug.lib" 62 AdditionalDependencies="gc_debug.lib msvcrt.lib" 63 IgnoreDefaultLibraryNames="msvcrtd.lib" 63 64 GenerateDebugInformation="true" 64 65 TargetMachine="1" -
interpreter/trunk/windows/kdb.vcproj
r466 r527 60 60 <Tool 61 61 Name="VCLinkerTool" 62 AdditionalDependencies="gc_debug.lib" 62 AdditionalDependencies="gc_debug.lib msvcrt.lib" 63 IgnoreDefaultLibraryNames="msvcrtd.lib" 63 64 GenerateDebugInformation="true" 64 65 TargetMachine="1" -
interpreter/trunk/windows/kite.vcproj
r466 r527 60 60 <Tool 61 61 Name="VCLinkerTool" 62 AdditionalDependencies="gc_debug.lib" 62 AdditionalDependencies="gc_debug.lib msvcrt.lib" 63 IgnoreDefaultLibraryNames="msvcrtd.lib" 63 64 GenerateDebugInformation="true" 64 65 TargetMachine="1" -
interpreter/trunk/windows/libkite.vcproj
r465 r527 330 330 </File> 331 331 <File 332 RelativePath="..\modules\System\digest.c" 333 > 334 </File> 335 <File 332 336 RelativePath="..\modules\System\directory.c" 333 337 > … … 446 450 <File 447 451 RelativePath="..\modules\System\vm\thread.c" 452 > 453 </File> 454 </Filter> 455 <Filter 456 Name="date" 457 > 458 <File 459 RelativePath="..\modules\System\date\hires.c" 460 > 461 </File> 462 </Filter> 463 <Filter 464 Name="digest" 465 > 466 <File 467 RelativePath="..\modules\System\digest\md5.c" 468 > 469 </File> 470 <File 471 RelativePath="..\modules\System\digest\md5.h" 448 472 > 449 473 </File> … … 495 519 <File 496 520 RelativePath="..\modules\interface\language.kt" 521 > 522 </File> 523 <File 524 RelativePath="..\modules\interface\pop3.kt" 525 > 526 </File> 527 <File 528 RelativePath="..\modules\interface\smtp.kt" 497 529 > 498 530 </File>
Note: See TracChangeset
for help on using the changeset viewer.
