Changeset 8730
- Timestamp:
- 07/26/12 21:41:28 (10 months ago)
- Location:
- WizardsToolkit/trunk
- Files:
-
- 1 deleted
- 8 edited
-
Makefile.in (modified) (1 diff)
-
config/config.h.in (modified) (1 diff)
-
config/configure.xml (modified) (1 diff)
-
configure (modified) (3 diffs)
-
configure.ac (modified) (4 diffs)
-
m4/ax_lang_compiler_ms.m4 (deleted)
-
windows/wizard/wizard-config.h (modified) (1 diff)
-
wizard/memory.c (modified) (3 diffs)
-
wizard/version.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
WizardsToolkit/trunk/Makefile.in
r8702 r8730 177 177 $(top_srcdir)/m4/ax_gcc_archflag.m4 \ 178 178 $(top_srcdir)/m4/ax_gcc_x86_cpuid.m4 \ 179 $(top_srcdir)/m4/ax_lang_compiler_ms.m4 \180 179 $(top_srcdir)/m4/ax_prefix_config_h.m4 \ 181 180 $(top_srcdir)/m4/ax_pthread.m4 \ -
WizardsToolkit/trunk/config/config.h.in
r8004 r8730 438 438 /* Define to 1 if you have the <xlocale.h> header file. */ 439 439 #undef HAVE_XLOCALE_H 440 441 /* Define to 1 if you have the `_aligned_malloc' function. */ 442 #undef HAVE__ALIGNED_MALLOC 440 443 441 444 /* Define to 1 if the system has the type `_Bool'. */ -
WizardsToolkit/trunk/config/configure.xml
r8702 r8730 6 6 <configure name="LIB_VERSION" value="0x108" /> 7 7 <configure name="LIB_VERSION_NUMBER" value="1,0,8,10" /> 8 <configure name="RELEASE_DATE" value="2012-07- 18" />8 <configure name="RELEASE_DATE" value="2012-07-26" /> 9 9 <configure name="CONFIGURE" value="./configure " /> 10 10 <configure name="PREFIX" value="/usr/local" /> -
WizardsToolkit/trunk/configure
r8702 r8730 6780 6780 esac 6781 6781 6782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 6783 $as_echo_n "checking for C compiler vendor... " >&6; } 6784 if ${ax_cv_c_compiler_vendor+:} false; then : 6785 $as_echo_n "(cached) " >&6 6786 else 6787 # note: don't check for gcc first since some other compilers define __GNUC__ 6788 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 6789 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 6790 pathscale: __PATHCC__,__PATHSCALE__ 6791 clang: __clang__ 6792 gnu: __GNUC__ 6793 sun: __SUNPRO_C,__SUNPRO_CC 6794 hp: __HP_cc,__HP_aCC 6795 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 6796 borland: __BORLANDC__,__TURBOC__ 6797 comeau: __COMO__ 6798 cray: _CRAYC 6799 kai: __KCC 6800 lcc: __LCC__ 6801 sgi: __sgi,sgi 6802 microsoft: _MSC_VER 6803 metrowerks: __MWERKS__ 6804 watcom: __WATCOMC__ 6805 portland: __PGI 6806 unknown: UNKNOWN" 6807 for ventest in $vendors; do 6808 case $ventest in 6809 *:) vendor=$ventest; continue ;; 6810 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 6811 esac 6812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6813 /* end confdefs.h. */ 6814 6815 int 6816 main () 6817 { 6818 6819 #if !($vencpp) 6820 thisisanerror; 6821 #endif 6822 6823 ; 6824 return 0; 6825 } 6826 _ACEOF 6827 if ac_fn_c_try_compile "$LINENO"; then : 6828 break 6829 fi 6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6831 done 6832 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 6833 6834 fi 6835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5 6836 $as_echo "$ax_cv_c_compiler_vendor" >&6; } 6837 6782 6838 6783 6839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 … … 7509 7565 7510 7566 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&57512 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }7513 if ${ax_cv_c_compiler_ms+:} false; then :7514 $as_echo_n "(cached) " >&67515 else7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext7517 /* end confdefs.h. */7518 7519 int7520 main ()7521 {7522 #ifndef _MSC_VER7523 choke me7524 #endif7525 7526 ;7527 return 0;7528 }7529 _ACEOF7530 if ac_fn_c_try_compile "$LINENO"; then :7531 ax_compiler_ms=yes7532 else7533 ax_compiler_ms=no7534 fi7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext7536 ax_cv_c_compiler_ms=$ax_compiler_ms7537 7538 fi7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&57540 $as_echo "$ax_cv_c_compiler_ms" >&6; }7541 7567 7542 7568 GDI32_LIBS='' … … 22807 22833 fi 22808 22834 22809 for ac_func in atexit clock fchmod fprintf_l ftime getcwd getexecname getdtablesize getpid getpagesize getrusage gettimeofday gmtime_r isascii isnan localtime_r lstat madvise memmove memset mkdir munmap mkstemp newloacle _NSGetExecutablePath pclose poll popen posix_fallocate posix_memalign pow pread pwrite raise readdir_r readlink realpath sbrk select strtod_l setvbuf sysconf sigemptyset sigaction spawnvp strlcat strlcpy strcasecmp strncasecmp setlocale strchr strcspn strdup strrchr strspn strstr strtol strtoul times uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l _wfopen22835 for ac_func in _aligned_malloc atexit clock fchmod fprintf_l ftime getcwd getexecname getdtablesize getpid getpagesize getrusage gettimeofday gmtime_r isascii isnan localtime_r lstat madvise memmove memset mkdir munmap mkstemp newloacle _NSGetExecutablePath pclose poll popen posix_fallocate posix_memalign pow pread pwrite raise readdir_r readlink realpath sbrk select strtod_l setvbuf sysconf sigemptyset sigaction spawnvp strlcat strlcpy strcasecmp strncasecmp setlocale strchr strcspn strdup strrchr strspn strstr strtol strtoul times uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l _wfopen 22810 22836 do : 22811 22837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -
WizardsToolkit/trunk/configure.ac
r7028 r8730 13 13 # limitations under the License. 14 14 # 15 # Configure script for building the Wizard Toolkit. 15 # Copying and distribution of this file, with or without modification, 16 # are permitted in any medium without royalty provided the copyright 17 # notice and this notice are preserved. 16 18 17 19 AC_PREREQ(2.67) … … 225 227 AM_PROG_CC_C_O 226 228 AX_CFLAGS_WARN_ALL 229 AX_COMPILER_VENDOR 227 230 AC_PROG_INSTALL 228 231 AC_PROG_MAKE_SET … … 239 242 AC_EXEEXT 240 243 AC_OBJEXT 241 AX_LANG_COMPILER_MS242 244 243 245 GDI32_LIBS='' … … 890 892 AC_FUNC_STAT 891 893 AC_FUNC_STRERROR_R 892 AC_CHECK_FUNCS([ atexit clock fchmod fprintf_l ftime getcwd getexecname getdtablesize getpid getpagesize getrusage gettimeofday gmtime_r isascii isnan localtime_r lstat madvise memmove memset mkdir munmap mkstemp newloacle _NSGetExecutablePath pclose poll popen posix_fallocate posix_memalign pow pread pwrite raise readdir_r readlink realpath sbrk select strtod_l setvbuf sysconf sigemptyset sigaction spawnvp strlcat strlcpy strcasecmp strncasecmp setlocale strchr strcspn strdup strrchr strspn strstr strtol strtoul times uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l _wfopen])894 AC_CHECK_FUNCS([_aligned_malloc atexit clock fchmod fprintf_l ftime getcwd getexecname getdtablesize getpid getpagesize getrusage gettimeofday gmtime_r isascii isnan localtime_r lstat madvise memmove memset mkdir munmap mkstemp newloacle _NSGetExecutablePath pclose poll popen posix_fallocate posix_memalign pow pread pwrite raise readdir_r readlink realpath sbrk select strtod_l setvbuf sysconf sigemptyset sigaction spawnvp strlcat strlcpy strcasecmp strncasecmp setlocale strchr strcspn strdup strrchr strspn strstr strtol strtoul times uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l _wfopen]) 893 895 894 896 # -
WizardsToolkit/trunk/windows/wizard/wizard-config.h
r5609 r8730 143 143 #define WIZARDSTOOLKIT_HAVE__WFOPEN 1 144 144 145 #define WIZARDSTOOLKIT_HAVE__ALIGNED_MALLOC 1 145 146 #define WIZARDSTOOLKIT_HAVE_VSNPRINTF 1 146 147 #define WIZARDSTOOLKIT_HAVE_GETTIMEOFDAY 1 -
WizardsToolkit/trunk/wizard/memory.c
r8227 r8730 189 189 { 190 190 size_t 191 alignment, 192 extent, 191 193 size; 194 195 void 196 *memory; 192 197 193 198 size=count*quantum; … … 197 202 return((void *) NULL); 198 203 } 204 memory=NULL; 205 alignment=CACHE_LINE_SIZE; 206 extent=(size+alignment-1)+sizeof(void *); 207 if ((size == 0) || (alignment < sizeof(void *)) || (extent <= size)) 208 return((void *) NULL); 199 209 #if defined(WIZARDSTOOLKIT_HAVE_POSIX_MEMALIGN) 210 if (posix_memalign(&memory,alignment,size) != 0) 211 memory=NULL; 212 #elif defined(WIZARDSTOOLKIT_HAVE__ALIGNED_MALLOC) 213 memory=_aligned_malloc(size,alignment); 214 #else 200 215 { 201 216 void 202 *memory; 203 204 if (posix_memalign(&memory,CACHE_LINE_SIZE,CacheAlign(size)) == 0) 205 return(memory); 217 *p; 218 219 p=malloc(extent); 220 if (p != NULL) 221 { 222 memory=(void *) (((size_t) p+sizeof(void *)+alignment-1) & 223 ~(alignment-1)); 224 *((void **) memory-1)=p; 225 } 206 226 } 207 227 #endif 208 return(m alloc(CacheAlign(size)));228 return(memory); 209 229 } 210 230 … … 711 731 if (memory == (void *) NULL) 712 732 return((void *) NULL); 733 #if defined(WIZARDSTOOLKIT_HAVE_POSIX_MEMALIGN) 713 734 free(memory); 714 return((void *) NULL); 735 #elif defined(WIZARDSTOOLKIT_HAVE__ALIGNED_MALLOC) 736 _aligned_free(memory); 737 #else 738 free(*((void **) memory-1)); 739 #endif 740 return(NULL); 715 741 } 716 742 -
WizardsToolkit/trunk/wizard/version.h
r8702 r8730 35 35 #define WizardLibInterface 1 36 36 #define WizardLibMinInterface 1 37 #define WizardReleaseDate "2012-07- 18"37 #define WizardReleaseDate "2012-07-26" 38 38 #define WizardChangeDate "20110224" 39 39 #define WizardAuthoritativeURL "http://www.wizards-toolkit.org"
Note: See TracChangeset
for help on using the changeset viewer.
