Changeset 8730


Ignore:
Timestamp:
07/26/12 21:41:28 (10 months ago)
Author:
cristy
Message:
 
Location:
WizardsToolkit/trunk
Files:
1 deleted
8 edited

Legend:

Unmodified
Added
Removed
  • WizardsToolkit/trunk/Makefile.in

    r8702 r8730  
    177177        $(top_srcdir)/m4/ax_gcc_archflag.m4 \ 
    178178        $(top_srcdir)/m4/ax_gcc_x86_cpuid.m4 \ 
    179         $(top_srcdir)/m4/ax_lang_compiler_ms.m4 \ 
    180179        $(top_srcdir)/m4/ax_prefix_config_h.m4 \ 
    181180        $(top_srcdir)/m4/ax_pthread.m4 \ 
  • WizardsToolkit/trunk/config/config.h.in

    r8004 r8730  
    438438/* Define to 1 if you have the <xlocale.h> header file. */ 
    439439#undef HAVE_XLOCALE_H 
     440 
     441/* Define to 1 if you have the `_aligned_malloc' function. */ 
     442#undef HAVE__ALIGNED_MALLOC 
    440443 
    441444/* Define to 1 if the system has the type `_Bool'. */ 
  • WizardsToolkit/trunk/config/configure.xml

    r8702 r8730  
    66  <configure name="LIB_VERSION" value="0x108" /> 
    77  <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" /> 
    99  <configure name="CONFIGURE" value="./configure " /> 
    1010  <configure name="PREFIX" value="/usr/local" /> 
  • WizardsToolkit/trunk/configure

    r8702 r8730  
    67806780esac 
    67816781 
     6782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5 
     6783$as_echo_n "checking for C compiler vendor... " >&6; } 
     6784if ${ax_cv_c_compiler_vendor+:} false; then : 
     6785  $as_echo_n "(cached) " >&6 
     6786else 
     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 
     6815int 
     6816main () 
     6817{ 
     6818 
     6819      #if !($vencpp) 
     6820        thisisanerror; 
     6821      #endif 
     6822 
     6823  ; 
     6824  return 0; 
     6825} 
     6826_ACEOF 
     6827if ac_fn_c_try_compile "$LINENO"; then : 
     6828  break 
     6829fi 
     6830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
     6831  done 
     6832  ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1` 
     6833 
     6834fi 
     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 
    67826838 
    67836839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 
     
    75097565 
    75107566 
    7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5 
    7512 $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) " >&6 
    7515 else 
    7516   cat confdefs.h - <<_ACEOF >conftest.$ac_ext 
    7517 /* end confdefs.h.  */ 
    7518  
    7519 int 
    7520 main () 
    7521 { 
    7522 #ifndef _MSC_VER 
    7523        choke me 
    7524 #endif 
    7525  
    7526   ; 
    7527   return 0; 
    7528 } 
    7529 _ACEOF 
    7530 if ac_fn_c_try_compile "$LINENO"; then : 
    7531   ax_compiler_ms=yes 
    7532 else 
    7533   ax_compiler_ms=no 
    7534 fi 
    7535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 
    7536 ax_cv_c_compiler_ms=$ax_compiler_ms 
    7537  
    7538 fi 
    7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5 
    7540 $as_echo "$ax_cv_c_compiler_ms" >&6; } 
    75417567 
    75427568GDI32_LIBS='' 
     
    2280722833fi 
    2280822834 
    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 _wfopen 
     22835for 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 
    2281022836do : 
    2281122837  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 
  • WizardsToolkit/trunk/configure.ac

    r7028 r8730  
    1313#  limitations under the License. 
    1414# 
    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. 
    1618 
    1719AC_PREREQ(2.67) 
     
    225227AM_PROG_CC_C_O 
    226228AX_CFLAGS_WARN_ALL 
     229AX_COMPILER_VENDOR 
    227230AC_PROG_INSTALL 
    228231AC_PROG_MAKE_SET 
     
    239242AC_EXEEXT 
    240243AC_OBJEXT 
    241 AX_LANG_COMPILER_MS 
    242244 
    243245GDI32_LIBS='' 
     
    890892AC_FUNC_STAT 
    891893AC_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]) 
     894AC_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]) 
    893895 
    894896# 
  • WizardsToolkit/trunk/windows/wizard/wizard-config.h

    r5609 r8730  
    143143#define WIZARDSTOOLKIT_HAVE__WFOPEN   1 
    144144 
     145#define WIZARDSTOOLKIT_HAVE__ALIGNED_MALLOC 1 
    145146#define WIZARDSTOOLKIT_HAVE_VSNPRINTF  1 
    146147#define WIZARDSTOOLKIT_HAVE_GETTIMEOFDAY  1  
  • WizardsToolkit/trunk/wizard/memory.c

    r8227 r8730  
    189189{ 
    190190  size_t 
     191    alignment, 
     192    extent, 
    191193    size; 
     194 
     195  void 
     196    *memory; 
    192197 
    193198  size=count*quantum; 
     
    197202      return((void *) NULL); 
    198203    } 
     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); 
    199209#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 
    200215  { 
    201216    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      } 
    206226  } 
    207227#endif 
    208   return(malloc(CacheAlign(size))); 
     228  return(memory); 
    209229} 
    210230 
     
    711731  if (memory == (void *) NULL) 
    712732    return((void *) NULL); 
     733#if defined(WIZARDSTOOLKIT_HAVE_POSIX_MEMALIGN) 
    713734  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); 
    715741} 
    716742 
  • WizardsToolkit/trunk/wizard/version.h

    r8702 r8730  
    3535#define WizardLibInterface  1 
    3636#define WizardLibMinInterface  1 
    37 #define WizardReleaseDate  "2012-07-18" 
     37#define WizardReleaseDate  "2012-07-26" 
    3838#define WizardChangeDate   "20110224" 
    3939#define WizardAuthoritativeURL  "http://www.wizards-toolkit.org" 
Note: See TracChangeset for help on using the changeset viewer.