Ignore:
Timestamp:
Jan 1, 2015, 3:47:26 PM (5 years ago)
Author:
cameron
Message:

Support for the Unicode script property

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/compiler.cpp

    r4383 r4385  
    2525#include <pablo/analysis/useanalysis.h>
    2626
    27 #include "unicode_categories.h"
     27#include "UCD/precompiled_gc.h"
     28#include "UCD/precompiled_sc.h"
    2829
    2930#include "resolve_properties.cpp"
     
    153154    PabloCompiler pablo_compiler(basisBits);
    154155   
    155 #define CHECK_GENERAL_CODE_CATEGORY(SUFFIX) \
    156     pablo_compiler.InstallExternalFunction(std::string("__get_gc_") + std::string(#SUFFIX), (void*)&__get_gc_##SUFFIX);
    157    
    158     CHECK_GENERAL_CODE_CATEGORY(Cc)
    159     CHECK_GENERAL_CODE_CATEGORY(Cf)
    160     CHECK_GENERAL_CODE_CATEGORY(Cn)
    161     CHECK_GENERAL_CODE_CATEGORY(Co)
    162     CHECK_GENERAL_CODE_CATEGORY(Cs)
    163     CHECK_GENERAL_CODE_CATEGORY(Ll)
    164     CHECK_GENERAL_CODE_CATEGORY(Lm)
    165     CHECK_GENERAL_CODE_CATEGORY(Lo)
    166     CHECK_GENERAL_CODE_CATEGORY(Lt)
    167     CHECK_GENERAL_CODE_CATEGORY(Lu)
    168     CHECK_GENERAL_CODE_CATEGORY(Mc)
    169     CHECK_GENERAL_CODE_CATEGORY(Me)
    170     CHECK_GENERAL_CODE_CATEGORY(Mn)
    171     CHECK_GENERAL_CODE_CATEGORY(Nd)
    172     CHECK_GENERAL_CODE_CATEGORY(Nl)
    173     CHECK_GENERAL_CODE_CATEGORY(No)
    174     CHECK_GENERAL_CODE_CATEGORY(Pc)
    175     CHECK_GENERAL_CODE_CATEGORY(Pd)
    176     CHECK_GENERAL_CODE_CATEGORY(Pe)
    177     CHECK_GENERAL_CODE_CATEGORY(Pf)
    178     CHECK_GENERAL_CODE_CATEGORY(Pi)
    179     CHECK_GENERAL_CODE_CATEGORY(Po)
    180     CHECK_GENERAL_CODE_CATEGORY(Ps)
    181     CHECK_GENERAL_CODE_CATEGORY(Sc)
    182     CHECK_GENERAL_CODE_CATEGORY(Sk)
    183     CHECK_GENERAL_CODE_CATEGORY(Sm)
    184     CHECK_GENERAL_CODE_CATEGORY(So)
    185     CHECK_GENERAL_CODE_CATEGORY(Zl)
    186     CHECK_GENERAL_CODE_CATEGORY(Zp)
    187     CHECK_GENERAL_CODE_CATEGORY(Zs)
    188    
     156    install_property_gc_fn_ptrs(pablo_compiler);
     157    install_property_sc_fn_ptrs(pablo_compiler);
    189158
    190159    LLVM_Gen_RetVal retVal = pablo_compiler.compile(main);
Note: See TracChangeset for help on using the changeset viewer.