Changeset 36190

Show
Ignore:
Timestamp:
12/18/09 23:12:33 (4 years ago)
Author:
saturday06
Message:

asdf

Location:
lang/objective-cplusplus/i3/trunk
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • lang/objective-cplusplus/i3/trunk/configure.ac

    r36185 r36190  
    167167if test "$with_gui" != "windows"; then 
    168168    AC_MSG_CHECKING([for Objective C++]) 
    169     body="Foo foo; Bar* bar;" 
    170169    LDFLAGS_ORIG="$LDFLAGS" 
    171170    LDFLAGS="$LDFLAGS -xobjective-c++" 
     
    174173            [[ 
    175174#import <Cocoa/Cocoa.h> 
    176 class Foo {}; 
    177 @interface Bar {} 
     175class Foo { 
     176}; 
     177@interface Bar : NSObject 
     178{ 
     179} 
    178180@end 
    179181@implementation Bar 
    180182@end  
    181183            ]], 
    182             [[$body]])], 
     184            [[ 
     185Foo foo; 
     186Bar* bar = [[Bar alloc] init]; 
     187[bar release]; 
     188            ]])], 
    183189        [], 
    184190        [AC_MSG_FAILURE([Objective C++ compiler/linker does not work])]) 
     
    274280 
    275281AC_MSG_CHECKING([for unnamed semaphore]) 
    276 prologue="#include <semaphore.h>" 
    277 body="sem_t sem; return (sem_init(&sem, 0, 0) == 0) ? EXIT_SUCCESS : EXIT_FAILURE;" 
    278 AC_LINK_IFELSE( 
    279     [AC_LANG_PROGRAM([[]], [[$prog]])], 
     282AC_RUN_IFELSE( 
     283    [AC_LANG_PROGRAM([[ 
     284#include <stdlib.h> 
     285#include <semaphore.h> 
     286     ]],  
     287     [[ 
     288sem_t sem; 
     289if (sem_init(&sem, 0, 0) == 0) { 
     290    return EXIT_SUCCESS; 
     291} else { 
     292    return EXIT_FAILURE; 
     293} 
     294     ]])], 
    280295    [AC_MSG_RESULT([yes]); AC_DEFINE(HAVE_UNNAMED_SEMAPHORE, 1, [Unnamed semaphore])], 
    281296    [AC_MSG_RESULT([no])], 
  • lang/objective-cplusplus/i3/trunk/scripts/ac_init_version.sh

    r36146 r36190  
    77VERSION="${I3_VERSION_MAJOR}.${I3_VERSION_MINOR}${I3_VERSION_EXTENSION}" 
    88 
    9 if test "$I3_VERSION_EXTENSION" = ""; then 
    10     echo ${VERSION} 
    11     exit 
    12 fi 
    13  
    14 which svn > /dev/null 2> /dev/null 
    15 if [ ${?} -ne 0 ]; then 
    16     echo ${VERSION}.unknown-revision 
     9svn status > /dev/null 2> /dev/null 
     10if test $? -ne 0; then 
     11    echo "${VERSION}.no-svn" 
    1712    exit 
    1813fi 
    1914 
    2015REVISION=`LC_ALL=en svn info 2> /dev/null | grep "Last Changed Rev:" | head -n 1 | cut -d ' ' -f 4` 
    21 UPDATES=`svn status | grep -v "^\?"` 
    22 if [ "${UPDATES}" != "" ]; then 
    23     REVISION="${REVISION}.modified" 
     16if test "$REVISION" = ""; then 
     17    REVISION=unknown-revision 
    2418fi 
    25 echo ${VERSION}.r${REVISION} 
    2619 
     20if test "$I3_VERSION_EXTENSION" != ""; then 
     21    VERSION="${VERSION}.r${REVISION}" 
     22fi 
    2723 
     24UPDATES=`svn status 2> /dev/null | grep -v "^\?"` 
     25if test "${UPDATES}" != ""; then 
     26    VERSION="${VERSION}.modified" 
     27fi 
    2828 
     29echo $VERSION 
     30 
  • lang/objective-cplusplus/i3/trunk/src/Common.cpp

    r36182 r36190  
    123123error_exit: 
    124124    poptFreeContext(optCon); 
    125     return 1; 
     125    return EXIT_FAILURE; 
    126126 
    127127    /* 
     
    194194      arg_freetable(argtable, _countof(argtable)); 
    195195    */ 
    196     return 1; 
     196    return EXIT_FAILURE; 
    197197} 
    198198}