Ignore:
Timestamp:
2012-02-28T13:59:00+13:00 (12 years ago)
Author:
kjdon
Message:

merged 64_bit_Greenstone branch into trunk, rev 25139

Location:
main/trunk/greenstone2/common-src/indexers/mgpp
Files:
89 edited
1 copied

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone2/common-src/indexers/mgpp/Makefile.in

    r16583 r25147  
    2929CC = @CC@
    3030CXX = @CXX@
    31 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi
     31CFLAGS = @CFLAGS@ -ansi
    3232INSTALL = @INSTALL@
    3333INSTALL_DATA = @INSTALL_DATA@
    3434INSTALL_PROGRAM = @INSTALL_PROGRAM@
    35 LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
     35LDFLAGS = @LDFLAGS@
    3636LIBS = @LIBS@ 
    3737TOUCH = echo timestamp >
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure

    r23356 r25147  
    11#! /bin/sh
    22# Guess values for system-dependent variables and create Makefiles.
    3 # Generated by GNU Autoconf 2.67.
     3# Generated by GNU Autoconf 2.65.
    44#
    55#
    66# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
    7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
    8 # Foundation, Inc.
     7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
     8# Inc.
    99#
    1010#
     
    317317    done
    318318    test -z "$as_dirs" || eval "mkdir $as_dirs"
    319   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     319  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    320320
    321321
     
    357357
    358358
    359 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    360 # ----------------------------------------
     359# as_fn_error ERROR [LINENO LOG_FD]
     360# ---------------------------------
    361361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    362362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    363 # script with STATUS, using 1 if that was 0.
     363# script with status $?, using 1 if that was 0.
    364364as_fn_error ()
    365365{
    366   as_status=$1; test $as_status -eq 0 && as_status=1
    367   if test "$4"; then
    368     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    369     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     366  as_status=$?; test $as_status -eq 0 && as_status=1
     367  if test "$3"; then
     368    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     369    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    370370  fi
    371   $as_echo "$as_me: error: $2" >&2
     371  $as_echo "$as_me: error: $1" >&2
    372372  as_fn_exit $as_status
    373373} # as_fn_error
     
    531531
    532532# Name of the host.
    533 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
     533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
    534534# so uname gets run too.
    535535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
     
    628628CXX
    629629ENABLE_ACCENTFOLD
    630 COMPAT32BITFLAGS
    631630ENABLE_JAVA
    632631VERSION
     
    769768
    770769  case $ac_option in
    771   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
    772   *=)   ac_optarg= ;;
    773   *)    ac_optarg=yes ;;
     770  *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
     771  *)    ac_optarg=yes ;;
    774772  esac
    775773
     
    816814    # Reject names that are not valid shell variable names.
    817815    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    818       as_fn_error $? "invalid feature name: $ac_useropt"
     816      as_fn_error "invalid feature name: $ac_useropt"
    819817    ac_useropt_orig=$ac_useropt
    820818    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    842840    # Reject names that are not valid shell variable names.
    843841    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    844       as_fn_error $? "invalid feature name: $ac_useropt"
     842      as_fn_error "invalid feature name: $ac_useropt"
    845843    ac_useropt_orig=$ac_useropt
    846844    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10461044    # Reject names that are not valid shell variable names.
    10471045    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1048       as_fn_error $? "invalid package name: $ac_useropt"
     1046      as_fn_error "invalid package name: $ac_useropt"
    10491047    ac_useropt_orig=$ac_useropt
    10501048    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10621060    # Reject names that are not valid shell variable names.
    10631061    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
    1064       as_fn_error $? "invalid package name: $ac_useropt"
     1062      as_fn_error "invalid package name: $ac_useropt"
    10651063    ac_useropt_orig=$ac_useropt
    10661064    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
     
    10921090    x_libraries=$ac_optarg ;;
    10931091
    1094   -*) as_fn_error $? "unrecognized option: \`$ac_option'
    1095 Try \`$0 --help' for more information"
     1092  -*) as_fn_error "unrecognized option: \`$ac_option'
     1093Try \`$0 --help' for more information."
    10961094    ;;
    10971095
     
    11011099    case $ac_envvar in #(
    11021100      '' | [0-9]* | *[!_$as_cr_alnum]* )
    1103       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
     1101      as_fn_error "invalid variable name: \`$ac_envvar'" ;;
    11041102    esac
    11051103    eval $ac_envvar=\$ac_optarg
     
    11191117if test -n "$ac_prev"; then
    11201118  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
    1121   as_fn_error $? "missing argument to $ac_option"
     1119  as_fn_error "missing argument to $ac_option"
    11221120fi
    11231121
     
    11251123  case $enable_option_checking in
    11261124    no) ;;
    1127     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
     1125    fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
    11281126    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
    11291127  esac
     
    11481146    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
    11491147  esac
    1150   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
     1148  as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
    11511149done
    11521150
     
    11621160  if test "x$build_alias" = x; then
    11631161    cross_compiling=maybe
    1164     $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
    1165     If a cross compiler is detected then cross compile mode will be used" >&2
     1162    $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
     1163    If a cross compiler is detected then cross compile mode will be used." >&2
    11661164  elif test "x$build_alias" != "x$host_alias"; then
    11671165    cross_compiling=yes
     
    11781176ac_ls_di=`ls -di .` &&
    11791177ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
    1180   as_fn_error $? "working directory cannot be determined"
     1178  as_fn_error "working directory cannot be determined"
    11811179test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
    1182   as_fn_error $? "pwd does not report name of working directory"
     1180  as_fn_error "pwd does not report name of working directory"
    11831181
    11841182
     
    12191217if test ! -r "$srcdir/$ac_unique_file"; then
    12201218  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
    1221   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
     1219  as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
    12221220fi
    12231221ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
    12241222ac_abs_confdir=`(
    1225     cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
     1223    cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
    12261224    pwd)`
    12271225# When building in place, set srcdir=.
     
    12631261      --help=recursive    display the short help of all the included packages
    12641262  -V, --version           display version information and exit
    1265   -q, --quiet, --silent   do not print \`checking ...' messages
     1263  -q, --quiet, --silent   do not print \`checking...' messages
    12661264      --cache-file=FILE   cache test results in FILE [disabled]
    12671265  -C, --config-cache      alias for \`--cache-file=config.cache'
     
    14241422  cat <<\_ACEOF
    14251423configure
    1426 generated by GNU Autoconf 2.67
    1427 
    1428 Copyright (C) 2010 Free Software Foundation, Inc.
     1424generated by GNU Autoconf 2.65
     1425
     1426Copyright (C) 2009 Free Software Foundation, Inc.
    14291427This configure script is free software; the Free Software Foundation
    14301428gives unlimited permission to copy, distribute and modify it.
     
    15341532  fi
    15351533  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
    1536   test $ac_status = 0; } > conftest.i && {
     1534  test $ac_status = 0; } >/dev/null && {
    15371535     test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
    15381536     test ! -s conftest.err
     
    15581556{
    15591557  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    1560   if eval "test \"\${$3+set}\"" = set; then :
     1558  if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    15611559  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    15621560$as_echo_n "checking for $2... " >&6; }
    1563 if eval "test \"\${$3+set}\"" = set; then :
     1561if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    15641562  $as_echo_n "(cached) " >&6
    15651563fi
     
    15971595  ac_header_preproc=no
    15981596fi
    1599 rm -f conftest.err conftest.i conftest.$ac_ext
     1597rm -f conftest.err conftest.$ac_ext
    16001598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
    16011599$as_echo "$ac_header_preproc" >&6; }
     
    16241622  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    16251623$as_echo_n "checking for $2... " >&6; }
    1626 if eval "test \"\${$3+set}\"" = set; then :
     1624if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    16271625  $as_echo_n "(cached) " >&6
    16281626else
     
    16881686  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    16891687$as_echo_n "checking for $2... " >&6; }
    1690 if eval "test \"\${$3+set}\"" = set; then :
     1688if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    16911689  $as_echo_n "(cached) " >&6
    16921690else
     
    17651763  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    17661764$as_echo_n "checking for $2... " >&6; }
    1767 if eval "test \"\${$3+set}\"" = set; then :
     1765if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    17681766  $as_echo_n "(cached) " >&6
    17691767else
     
    18181816  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
    18191817$as_echo_n "checking for $2... " >&6; }
    1820 if eval "test \"\${$3+set}\"" = set; then :
     1818if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
    18211819  $as_echo_n "(cached) " >&6
    18221820else
     
    20592057
    20602058It was created by $as_me, which was
    2061 generated by GNU Autoconf 2.67.  Invocation command line was
     2059generated by GNU Autoconf 2.65.  Invocation command line was
    20622060
    20632061  $ $0 $@
     
    21692167    echo
    21702168
    2171     $as_echo "## ---------------- ##
     2169    cat <<\_ASBOX
     2170## ---------------- ##
    21722171## Cache variables. ##
    2173 ## ---------------- ##"
     2172## ---------------- ##
     2173_ASBOX
    21742174    echo
    21752175    # The following way of writing the cache mishandles newlines in values,
     
    22052205    echo
    22062206
    2207     $as_echo "## ----------------- ##
     2207    cat <<\_ASBOX
     2208## ----------------- ##
    22082209## Output variables. ##
    2209 ## ----------------- ##"
     2210## ----------------- ##
     2211_ASBOX
    22102212    echo
    22112213    for ac_var in $ac_subst_vars
     
    22202222
    22212223    if test -n "$ac_subst_files"; then
    2222       $as_echo "## ------------------- ##
     2224      cat <<\_ASBOX
     2225## ------------------- ##
    22232226## File substitutions. ##
    2224 ## ------------------- ##"
     2227## ------------------- ##
     2228_ASBOX
    22252229      echo
    22262230      for ac_var in $ac_subst_files
     
    22362240
    22372241    if test -s confdefs.h; then
    2238       $as_echo "## ----------- ##
     2242      cat <<\_ASBOX
     2243## ----------- ##
    22392244## confdefs.h. ##
    2240 ## ----------- ##"
     2245## ----------- ##
     2246_ASBOX
    22412247      echo
    22422248      cat confdefs.h
     
    22932299ac_site_file2=NONE
    22942300if test -n "$CONFIG_SITE"; then
    2295   # We do not want a PATH search for config.site.
    2296   case $CONFIG_SITE in #((
    2297     -*)  ac_site_file1=./$CONFIG_SITE;;
    2298     */*) ac_site_file1=$CONFIG_SITE;;
    2299     *)   ac_site_file1=./$CONFIG_SITE;;
    2300   esac
     2301  ac_site_file1=$CONFIG_SITE
    23012302elif test "x$prefix" != xNONE; then
    23022303  ac_site_file1=$prefix/share/config.site
     
    23132314$as_echo "$as_me: loading site script $ac_site_file" >&6;}
    23142315    sed 's/^/| /' "$ac_site_file" >&5
    2315     . "$ac_site_file" \
    2316       || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    2317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2318 as_fn_error $? "failed to load site script $ac_site_file
    2319 See \`config.log' for more details" "$LINENO" 5 ; }
     2316    . "$ac_site_file"
    23202317  fi
    23212318done
     
    23932390  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
    23942391$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
    2395   as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
     2392  as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
    23962393fi
    23972394## -------------------- ##
     
    24112408ac_aux_dir=
    24122409for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
    2413   if test -f "$ac_dir/install-sh"; then
    2414     ac_aux_dir=$ac_dir
    2415     ac_install_sh="$ac_aux_dir/install-sh -c"
    2416     break
    2417   elif test -f "$ac_dir/install.sh"; then
    2418     ac_aux_dir=$ac_dir
    2419     ac_install_sh="$ac_aux_dir/install.sh -c"
    2420     break
    2421   elif test -f "$ac_dir/shtool"; then
    2422     ac_aux_dir=$ac_dir
    2423     ac_install_sh="$ac_aux_dir/shtool install -c"
    2424     break
    2425   fi
     2410  for ac_t in install-sh install.sh shtool; do
     2411    if test -f "$ac_dir/$ac_t"; then
     2412      ac_aux_dir=$ac_dir
     2413      ac_install_sh="$ac_aux_dir/$ac_t -c"
     2414      break 2
     2415    fi
     2416  done
    24262417done
    24272418if test -z "$ac_aux_dir"; then
    2428   as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
     2419  as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
    24292420fi
    24302421
     
    24402431# Make sure we can run config.sub.
    24412432$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
    2442   as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
     2433  as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
    24432434
    24442435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
     
    24512442  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
    24522443test "x$ac_build_alias" = x &&
    2453   as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
     2444  as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
    24542445ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
    2455   as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
     2446  as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
    24562447
    24572448fi
     
    24602451case $ac_cv_build in
    24612452*-*-*) ;;
    2462 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
     2453*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
    24632454esac
    24642455build=$ac_cv_build
     
    24852476else
    24862477  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
    2487     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
     2478    as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
    24882479fi
    24892480
     
    24932484case $ac_cv_host in
    24942485*-*-*) ;;
    2495 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
     2486*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
    24962487esac
    24972488host=$ac_cv_host
     
    25182509else
    25192510  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
    2520     as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
     2511    as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
    25212512fi
    25222513
     
    25262517case $ac_cv_target in
    25272518*-*-*) ;;
    2528 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5 ;;
     2519*) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
    25292520esac
    25302521target=$ac_cv_target
     
    25932584fi
    25942585
    2595 
    2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if architecture is 64-bit" >&5
    2597 $as_echo_n "checking to see if architecture is 64-bit... " >&6; }
    2598 arch_64bit=no
    2599 case "$host_cpu" in
    2600 x86_64) arch_64bit=yes ;;
    2601 esac
    2602 
    2603 if test "$arch_64bit" = yes; then
    2604   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
    2605 $as_echo "yes" >&6; }
    2606   if test -z "$COMPAT32BITFLAGS" ; then
    2607     COMPAT32BITFLAGS="-m32"
    2608   fi
    2609 else
    2610   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
    2611 $as_echo "no" >&6; }
    2612   if test -z "$COMPAT32BITFLAGS" ; then
    2613     COMPAT32BITFLAGS=
    2614   fi
    2615 fi
    26162586
    26172587
     
    28562826{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    28572827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2858 as_fn_error 77 "C++ compiler cannot create executables
    2859 See \`config.log' for more details" "$LINENO" 5 ; }
     2828{ as_fn_set_status 77
     2829as_fn_error "C++ compiler cannot create executables
     2830See \`config.log' for more details." "$LINENO" 5; }; }
    28602831else
    28612832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
     
    28992870  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    29002871$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2901 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
    2902 See \`config.log' for more details" "$LINENO" 5 ; }
     2872as_fn_error "cannot compute suffix of executables: cannot compile and link
     2873See \`config.log' for more details." "$LINENO" 5; }
    29032874fi
    29042875rm -f conftest conftest$ac_cv_exeext
     
    29572928    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    29582929$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    2959 as_fn_error $? "cannot run C++ compiled programs.
     2930as_fn_error "cannot run C++ compiled programs.
    29602931If you meant to cross compile, use \`--host'.
    2961 See \`config.log' for more details" "$LINENO" 5 ; }
     2932See \`config.log' for more details." "$LINENO" 5; }
    29622933    fi
    29632934  fi
     
    30102981{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    30112982$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3012 as_fn_error $? "cannot compute suffix of object files: cannot compile
    3013 See \`config.log' for more details" "$LINENO" 5 ; }
     2983as_fn_error "cannot compute suffix of object files: cannot compile
     2984See \`config.log' for more details." "$LINENO" 5; }
    30142985fi
    30152986rm -f conftest.$ac_cv_objext conftest.$ac_ext
     
    35253496test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    35263497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    3527 as_fn_error $? "no acceptable C compiler found in \$PATH
    3528 See \`config.log' for more details" "$LINENO" 5 ; }
     3498as_fn_error "no acceptable C compiler found in \$PATH
     3499See \`config.log' for more details." "$LINENO" 5; }
    35293500
    35303501# Provide some information about the compiler.
     
    38733844set x ${MAKE-make}
    38743845ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
    3875 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then :
     3846if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
    38763847  $as_echo_n "(cached) " >&6
    38773848else
     
    38813852    @echo '@@@%%%=$(MAKE)=@@@%%%'
    38823853_ACEOF
    3883 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
     3854# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
    38843855case `${MAKE-make} -f conftest.make 2>/dev/null` in
    38853856  *@@@%%%=?*=@@@%%%*)
     
    40844055
    40854056    fi
    4086     test x$JAVA = x && as_fn_error $? "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
     4057    test x$JAVA = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
    40874058fi
    40884059
     
    41464117        ac_cv_prog_uudecode_base64=yes
    41474118else
    4148         echo "configure: 4148: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
     4119        echo "configure: 4119: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
    41494120        echo "configure: failed file was:" >&5
    41504121        cat Test.uue >&5
     
    41614132$as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
    41624133        if test x$ac_cv_prog_javac_works = xno; then
    4163                 as_fn_error $? "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
     4134                as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
    41644135        fi
    41654136        if test x$ac_cv_prog_javac_works = x; then
     
    42544225
    42554226  fi
    4256   test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4227  test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
    42574228else
    42584229  echo "Checking for javac... $JAVAC"
     
    42694240CLASS_TEST=Test.class
    42704241cat << \EOF > $JAVA_TEST
    4271 /* #line 4271 "configure" */
     4242/* #line 4242 "configure" */
    42724243public class Test {
    42734244}
     
    42814252  ac_cv_prog_javac_works=yes
    42824253else
    4283   as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4254  as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    42844255  echo "configure: failed program was:" >&5
    42854256  cat $JAVA_TEST >&5
     
    43084279TEST=Test
    43094280cat << \EOF > $JAVA_TEST
    4310 /* [#]line 4310 "configure" */
     4281/* [#]line 4281 "configure" */
    43114282public class Test {
    43124283public static void main (String args[]) {
     
    43254296          echo "configure: failed program was:" >&5
    43264297          cat $JAVA_TEST >&5
    4327           as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4298          as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    43284299        fi
    43294300fi
     
    43384309  echo "configure: failed program was:" >&5
    43394310  cat $JAVA_TEST >&5
    4340   as_fn_error $? "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4311  as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    43414312fi
    43424313rm -fr $JAVA_TEST $CLASS_TEST Test.uue
     
    44384409
    44394410  fi
    4440   test "x$JAVAC" = x && as_fn_error $? "no acceptable Java compiler found in \$PATH" "$LINENO" 5
     4411  test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
    44414412else
    44424413  echo "Checking for javac... $JAVAC"
     
    44534424CLASS_TEST=Test.class
    44544425cat << \EOF > $JAVA_TEST
    4455 /* #line 4455 "configure" */
     4426/* #line 4426 "configure" */
    44564427public class Test {
    44574428}
     
    44654436  ac_cv_prog_javac_works=yes
    44664437else
    4467   as_fn_error $? "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
     4438  as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
    44684439  echo "configure: failed program was:" >&5
    44694440  cat $JAVA_TEST >&5
     
    45254496continue
    45264497fi
    4527 rm -f conftest.err conftest.i conftest.$ac_ext
     4498rm -f conftest.err conftest.$ac_ext
    45284499
    45294500  # OK, works on sane cases.  Now check whether nonexistent headers
     
    45414512break
    45424513fi
    4543 rm -f conftest.err conftest.i conftest.$ac_ext
     4514rm -f conftest.err conftest.$ac_ext
    45444515
    45454516done
    45464517# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4547 rm -f conftest.i conftest.err conftest.$ac_ext
     4518rm -f conftest.err conftest.$ac_ext
    45484519if $ac_preproc_ok; then :
    45494520  break
     
    45844555continue
    45854556fi
    4586 rm -f conftest.err conftest.i conftest.$ac_ext
     4557rm -f conftest.err conftest.$ac_ext
    45874558
    45884559  # OK, works on sane cases.  Now check whether nonexistent headers
     
    46004571break
    46014572fi
    4602 rm -f conftest.err conftest.i conftest.$ac_ext
     4573rm -f conftest.err conftest.$ac_ext
    46034574
    46044575done
    46054576# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
    4606 rm -f conftest.i conftest.err conftest.$ac_ext
     4577rm -f conftest.err conftest.$ac_ext
    46074578if $ac_preproc_ok; then :
    46084579
     
    46104581  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    46114582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    4612 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
    4613 See \`config.log' for more details" "$LINENO" 5 ; }
     4583as_fn_error "C preprocessor \"$CPP\" fails sanity check
     4584See \`config.log' for more details." "$LINENO" 5; }
    46144585fi
    46154586
     
    46724643IFS=$as_save_IFS
    46734644  if test -z "$ac_cv_path_GREP"; then
    4674     as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4645    as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    46754646  fi
    46764647else
     
    47384709IFS=$as_save_IFS
    47394710  if test -z "$ac_cv_path_EGREP"; then
    4740     as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
     4711    as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
    47414712  fi
    47424713else
     
    48704841ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
    48714842"
    4872 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     4843eval as_val=\$$as_ac_Header
     4844   if test "x$as_val" = x""yes; then :
    48734845  cat >>confdefs.h <<_ACEOF
    48744846#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    54425414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
    54435415$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
    5444 if eval "test \"\${$as_ac_Header+set}\"" = set; then :
     5416if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
    54455417  $as_echo_n "(cached) " >&6
    54465418else
     
    54695441           { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
    54705442$as_echo "$ac_res" >&6; }
    5471 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     5443eval as_val=\$$as_ac_Header
     5444   if test "x$as_val" = x""yes; then :
    54725445  cat >>confdefs.h <<_ACEOF
    54735446#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
     
    57115684  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
    57125685ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
    5713 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
     5686eval as_val=\$$as_ac_Header
     5687   if test "x$as_val" = x""yes; then :
    57145688  cat >>confdefs.h <<_ACEOF
    57155689#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
     
    58845858    as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    58855859ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
    5886 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     5860eval as_val=\$$as_ac_var
     5861   if test "x$as_val" = x""yes; then :
    58875862
    58885863cat >>confdefs.h <<_ACEOF
     
    60446019  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
    60456020ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
    6046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
     6021eval as_val=\$$as_ac_var
     6022   if test "x$as_val" = x""yes; then :
    60476023  cat >>confdefs.h <<_ACEOF
    60486024#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     
    60526028done
    60536029
    6054 ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate"
    6055 if test "x$ac_cv_func_ftruncate" = x""yes; then :
    6056   $as_echo "#define HAVE_FTRUNCATE 1" >>confdefs.h
     6030for ac_func in ftruncate strstr strcasecmp
     6031do :
     6032  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
     6033ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
     6034eval as_val=\$$as_ac_var
     6035   if test "x$as_val" = x""yes; then :
     6036  cat >>confdefs.h <<_ACEOF
     6037#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
     6038_ACEOF
    60576039
    60586040else
    60596041  case " $LIBOBJS " in
    6060   *" ftruncate.$ac_objext "* ) ;;
    6061   *) LIBOBJS="$LIBOBJS ftruncate.$ac_objext"
     6042  *" $ac_func.$ac_objext "* ) ;;
     6043  *) LIBOBJS="$LIBOBJS $ac_func.$ac_objext"
    60626044 ;;
    60636045esac
    60646046
    60656047fi
    6066 
    6067 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
    6068 if test "x$ac_cv_func_strstr" = x""yes; then :
    6069   $as_echo "#define HAVE_STRSTR 1" >>confdefs.h
    6070 
    6071 else
    6072   case " $LIBOBJS " in
    6073   *" strstr.$ac_objext "* ) ;;
    6074   *) LIBOBJS="$LIBOBJS strstr.$ac_objext"
    6075  ;;
    6076 esac
    6077 
    6078 fi
    6079 
    6080 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
    6081 if test "x$ac_cv_func_strcasecmp" = x""yes; then :
    6082   $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
    6083 
    6084 else
    6085   case " $LIBOBJS " in
    6086   *" strcasecmp.$ac_objext "* ) ;;
    6087   *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
    6088  ;;
    6089 esac
    6090 
    6091 fi
     6048done
    60926049
    60936050
     
    62286185     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
    62296186$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
    6230 as_fn_error 77 "cannot compute sizeof (unsigned char *)
    6231 See \`config.log' for more details" "$LINENO" 5 ; }
     6187{ as_fn_set_status 77
     6188as_fn_error "cannot compute sizeof (unsigned char *)
     6189See \`config.log' for more details." "$LINENO" 5; }; }
    62326190   else
    62336191     ac_cv_sizeof_unsigned_char_p=0
     
    66156573     ;; #(
    66166574   *)
    6617      as_fn_error $? "unknown endianness
    6618  presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5  ;;
     6575     as_fn_error "unknown endianness
     6576 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
    66196577 esac
    66206578
     
    67366694ac_libobjs=
    67376695ac_ltlibobjs=
    6738 U=
    67396696for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
    67406697  # 1. Remove the extension, and $U if already installed.
     
    68996856
    69006857
    6901 # as_fn_error STATUS ERROR [LINENO LOG_FD]
    6902 # ----------------------------------------
     6858# as_fn_error ERROR [LINENO LOG_FD]
     6859# ---------------------------------
    69036860# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
    69046861# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
    6905 # script with STATUS, using 1 if that was 0.
     6862# script with status $?, using 1 if that was 0.
    69066863as_fn_error ()
    69076864{
    6908   as_status=$1; test $as_status -eq 0 && as_status=1
    6909   if test "$4"; then
    6910     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
    6911     $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
     6865  as_status=$?; test $as_status -eq 0 && as_status=1
     6866  if test "$3"; then
     6867    as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
     6868    $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
    69126869  fi
    6913   $as_echo "$as_me: error: $2" >&2
     6870  $as_echo "$as_me: error: $1" >&2
    69146871  as_fn_exit $as_status
    69156872} # as_fn_error
     
    71077064    done
    71087065    test -z "$as_dirs" || eval "mkdir $as_dirs"
    7109   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
     7066  } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
    71107067
    71117068
     
    71617118ac_log="
    71627119This file was extended by $as_me, which was
    7163 generated by GNU Autoconf 2.67.  Invocation command line was
     7120generated by GNU Autoconf 2.65.  Invocation command line was
    71647121
    71657122  CONFIG_FILES    = $CONFIG_FILES
     
    72277184ac_cs_version="\\
    72287185config.status
    7229 configured by $0, generated by GNU Autoconf 2.67,
     7186configured by $0, generated by GNU Autoconf 2.65,
    72307187  with options \\"\$ac_cs_config\\"
    72317188
    7232 Copyright (C) 2010 Free Software Foundation, Inc.
     7189Copyright (C) 2009 Free Software Foundation, Inc.
    72337190This config.status script is free software; the Free Software Foundation
    72347191gives unlimited permission to copy, distribute and modify it."
     
    72477204do
    72487205  case $1 in
    7249   --*=?*)
     7206  --*=*)
    72507207    ac_option=`expr "X$1" : 'X\([^=]*\)='`
    72517208    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
    7252     ac_shift=:
    7253     ;;
    7254   --*=)
    7255     ac_option=`expr "X$1" : 'X\([^=]*\)='`
    7256     ac_optarg=
    72577209    ac_shift=:
    72587210    ;;
     
    72787230    case $ac_optarg in
    72797231    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
    7280     '') as_fn_error $? "missing file argument" ;;
    72817232    esac
    72827233    as_fn_append CONFIG_FILES " '$ac_optarg'"
     
    72917242  --he | --h)
    72927243    # Conflict between --help and --header
    7293     as_fn_error $? "ambiguous option: \`$1'
     7244    as_fn_error "ambiguous option: \`$1'
    72947245Try \`$0 --help' for more information.";;
    72957246  --help | --hel | -h )
     
    73007251
    73017252  # This is an error.
    7302   -*) as_fn_error $? "unrecognized option: \`$1'
     7253  -*) as_fn_error "unrecognized option: \`$1'
    73037254Try \`$0 --help' for more information." ;;
    73047255
     
    73577308    "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
    73587309
    7359   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
     7310  *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
    73607311  esac
    73617312done
     
    73957346  tmp=./conf$$-$RANDOM
    73967347  (umask 077 && mkdir "$tmp")
    7397 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
     7348} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
    73987349
    73997350# Set up the scripts for CONFIG_FILES section.
     
    74127363ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
    74137364if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
    7414   ac_cs_awk_cr='\\r'
     7365  ac_cs_awk_cr='\r'
    74157366else
    74167367  ac_cs_awk_cr=$ac_cr
     
    74267377  echo "_ACEOF"
    74277378} >conf$$subs.sh ||
    7428   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
    7429 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
     7379  as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
     7380ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
    74307381ac_delim='%!_!# '
    74317382for ac_last_try in false false false false false :; do
    74327383  . ./conf$$subs.sh ||
    7433     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7384    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
    74347385
    74357386  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
     
    74377388    break
    74387389  elif $ac_last_try; then
    7439     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
     7390    as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
    74407391  else
    74417392    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    75267477  cat
    75277478fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
    7528   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
    7529 _ACEOF
    7530 
    7531 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
    7532 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
     7479  || as_fn_error "could not setup config files machinery" "$LINENO" 5
     7480_ACEOF
     7481
     7482# VPATH may cause trouble with some makes, so we remove $(srcdir),
     7483# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
    75337484# trailing colons and then remove the whole line if VPATH becomes empty
    75347485# (actually we leave an empty line to preserve line numbers).
    75357486if test "x$srcdir" = x.; then
    7536   ac_vpsub='/^[  ]*VPATH[    ]*=[    ]*/{
    7537 h
    7538 s///
    7539 s/^/:/
    7540 s/[  ]*$/:/
    7541 s/:\$(srcdir):/:/g
    7542 s/:\${srcdir}:/:/g
    7543 s/:@srcdir@:/:/g
    7544 s/^:*//
     7487  ac_vpsub='/^[  ]*VPATH[    ]*=/{
     7488s/:*\$(srcdir):*/:/
     7489s/:*\${srcdir}:*/:/
     7490s/:*@srcdir@:*/:/
     7491s/^\([^=]*=[     ]*\):*/\1/
    75457492s/:*$//
    7546 x
    7547 s/\(=[   ]*\).*/\1/
    7548 G
    7549 s/\n//
    75507493s/^[^=]*=[   ]*$//
    75517494}'
     
    75757518    break
    75767519  elif $ac_last_try; then
    7577     as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
     7520    as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
    75787521  else
    75797522    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
     
    76607603_ACEOF
    76617604cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
    7662   as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
     7605  as_fn_error "could not setup config headers machinery" "$LINENO" 5
    76637606fi # test -n "$CONFIG_HEADERS"
    76647607
     
    76737616  case $ac_mode$ac_tag in
    76747617  :[FHL]*:*);;
    7675   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
     7618  :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
    76767619  :[FH]-) ac_tag=-:-;;
    76777620  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
     
    77017644       *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
    77027645       esac ||
    7703        as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
     7646       as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
    77047647      esac
    77057648      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
     
    77287671    case $ac_tag in
    77297672    *:-:* | *:-) cat >"$tmp/stdin" \
    7730       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
     7673      || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
    77317674    esac
    77327675    ;;
     
    78597802"
    78607803eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
    7861   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7804  || as_fn_error "could not create $ac_file" "$LINENO" 5
    78627805
    78637806test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
     
    78657808  { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
    78667809  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    7867 which seems to be undefined.  Please make sure it is defined" >&5
     7810which seems to be undefined.  Please make sure it is defined." >&5
    78687811$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
    7869 which seems to be undefined.  Please make sure it is defined" >&2;}
     7812which seems to be undefined.  Please make sure it is defined." >&2;}
    78707813
    78717814  rm -f "$tmp/stdin"
     
    78747817  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
    78757818  esac \
    7876   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7819  || as_fn_error "could not create $ac_file" "$LINENO" 5
    78777820 ;;
    78787821  :H)
     
    78857828      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
    78867829    } >"$tmp/config.h" \
    7887       || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7830      || as_fn_error "could not create $ac_file" "$LINENO" 5
    78887831    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
    78897832      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
     
    78927835      rm -f "$ac_file"
    78937836      mv "$tmp/config.h" "$ac_file" \
    7894     || as_fn_error $? "could not create $ac_file" "$LINENO" 5
     7837    || as_fn_error "could not create $ac_file" "$LINENO" 5
    78957838    fi
    78967839  else
    78977840    $as_echo "/* $configure_input  */" \
    78987841      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
    7899       || as_fn_error $? "could not create -" "$LINENO" 5
     7842      || as_fn_error "could not create -" "$LINENO" 5
    79007843  fi
    79017844 ;;
     
    79197862
    79207863test $ac_write_fail = 0 ||
    7921   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
     7864  as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
    79227865
    79237866
     
    79407883  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
    79417884  # would make configure fail if this is the last instruction.
    7942   $ac_cs_success || as_fn_exit 1
     7885  $ac_cs_success || as_fn_exit $?
    79437886fi
    79447887if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  • main/trunk/greenstone2/common-src/indexers/mgpp/configure.in

    r23356 r25147  
    3434AC_SUBST(ENABLE_JAVA)
    3535
    36 AC_MSG_CHECKING(to see if architecture is 64-bit)
    37 arch_64bit=no
    38 case "$host_cpu" in
    39 x86_64) arch_64bit=yes ;;
    40 esac
    41 
    42 if test "$arch_64bit" = yes; then
    43   AC_MSG_RESULT(yes)
    44   if test -z "$COMPAT32BITFLAGS" ; then
    45     COMPAT32BITFLAGS="-m32"
    46   fi
    47 else
    48   AC_MSG_RESULT(no)
    49   if test -z "$COMPAT32BITFLAGS" ; then
    50     COMPAT32BITFLAGS=
    51   fi
    52 fi
    53 AC_SUBST(COMPAT32BITFLAGS)
     36dnl AC_MSG_CHECKING(to see if architecture is 64-bit)
     37dnl arch_64bit=no
     38dnl case "$host_cpu" in
     39dnl x86_64) arch_64bit=yes ;;
     40dnl esac
    5441
    5542dnl
  • main/trunk/greenstone2/common-src/indexers/mgpp/java/org/greenstone/mgpp/Makefile.in

    r23356 r25147  
    1717JAVAH = javah
    1818JAR = jar
    19 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
    20 CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -DSILENT -DSHORT_SUFFIX
     19CFLAGS = @CFLAGS@ -ansi -DSILENT -DSHORT_SUFFIX
     20CXXFLAGS = @CXXFLAGS@ -DSILENT -DSHORT_SUFFIX
    2121JAVACFLAGS = @JAVACFLAGS@
    2222DEFS = @DEFS@
     
    2525INSTALL_DATA = @INSTALL_DATA@
    2626INSTALL_PROGRAM = @INSTALL_PROGRAM@
    27 LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
     27LDFLAGS = @LDFLAGS@
    2828LIBS =  -lstdc++ @LIBS@
    2929TOUCH = echo timestamp >
  • main/trunk/greenstone2/common-src/indexers/mgpp/jni/MGPPRetrieveWrapperImpl.cpp

    r16583 r25147  
    5656   
    5757  // does this work alright? j_docnum is a long (64 bit)
    58   unsigned long docnum = j_docnum;
     58  mg_u_long docnum = j_docnum;
    5959  TextData td;
    6060
  • main/trunk/greenstone2/common-src/indexers/mgpp/jni/Makefile.in

    r22070 r25147  
    2626CC = @CC@
    2727CXX = @CXX@
    28 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -fPIC -ansi -DSILENT -DSHORT_SUFFIX
    29 CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX
     28CFLAGS = @CFLAGS@ -fPIC -ansi -DSILENT -DSHORT_SUFFIX
     29CXXFLAGS = @CXXFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX
    3030DEFS = @DEFS@
    3131RANLIB = @RANLIB@
     
    3333INSTALL_DATA = @INSTALL_DATA@
    3434INSTALL_PROGRAM = @INSTALL_PROGRAM@
    35 LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
     35LDFLAGS = @LDFLAGS@
    3636#NOTE: libmgpptext.a needs to come before libmgpplib.a !!!
    3737QUERY_LIBS = ../text/libmgpptext.a   ../lib/libmgpplib.a $(AFLIBS)  -lstdc++ ../../../packages/iconv/lib/libiconv.a @LIBS@
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/Makefile.in

    r22070 r25147  
    3636CXX = @CXX@
    3737ifneq ($(NZDL), 1)
    38 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -fPIC
     38CFLAGS = @CFLAGS@ -ansi -fPIC
    3939else
    40 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -fPIC -DSILENT
     40CFLAGS = @CFLAGS@ -ansi -fPIC -DSILENT
    4141endif
    42 CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC
     42CXXFLAGS = @CXXFLAGS@ -fPIC
    4343DEFS = @DEFS@
    4444RANLIB = @RANLIB@
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/alloca.c

    r16583 r25147  
    5959
    6060#if defined (CRAY) && defined (CRAY_STACKSEG_END)
    61 long i00afunc ();
     61mg_s_long i00afunc ();
    6262#define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg))
    6363#else
     
    237237struct stack_control_header
    238238  {
    239     long shgrow:32;     /* Number of times stack has grown.  */
    240     long shaseg:32;     /* Size of increments to stack.  */
    241     long shhwm:32;      /* High water mark of stack.  */
    242     long shsize:32;     /* Current size of stack (all segments).  */
     239    mg_s_long shgrow:32;        /* Number of times stack has grown.  */
     240    mg_s_long shaseg:32;        /* Size of increments to stack.  */
     241    mg_s_long shhwm:32;     /* High water mark of stack.  */
     242    mg_s_long shsize:32;        /* Current size of stack (all segments).  */
    243243  };
    244244
     
    252252struct stack_segment_linkage
    253253  {
    254     long ss[0200];      /* 0200 overflow words.  */
    255     long sssize:32;     /* Number of words in this segment.  */
    256     long ssbase:32;     /* Offset to stack base.  */
    257     long:32;
    258     long sspseg:32;     /* Offset to linkage control of previous
     254    mg_s_long ss[0200];     /* 0200 overflow words.  */
     255    mg_s_long sssize:32;        /* Number of words in this segment.  */
     256    mg_s_long ssbase:32;        /* Offset to stack base.  */
     257    mg_s_long:32;
     258    mg_s_long sspseg:32;        /* Offset to linkage control of previous
    259259                   segment of stack.  */
    260     long:32;
    261     long sstcpt:32;     /* Pointer to task common address block.  */
    262     long sscsnm;        /* Private control structure number for
     260    mg_s_long:32;
     261    mg_s_long sstcpt:32;        /* Pointer to task common address block.  */
     262    mg_s_long sscsnm;       /* Private control structure number for
    263263                   microtasking.  */
    264     long ssusr1;        /* Reserved for user.  */
    265     long ssusr2;        /* Reserved for user.  */
    266     long sstpid;        /* Process ID for pid based multi-tasking.  */
    267     long ssgvup;        /* Pointer to multitasking thread giveup.  */
    268     long sscray[7];     /* Reserved for Cray Research.  */
    269     long ssa0;
    270     long ssa1;
    271     long ssa2;
    272     long ssa3;
    273     long ssa4;
    274     long ssa5;
    275     long ssa6;
    276     long ssa7;
    277     long sss0;
    278     long sss1;
    279     long sss2;
    280     long sss3;
    281     long sss4;
    282     long sss5;
    283     long sss6;
    284     long sss7;
     264    mg_s_long ssusr1;       /* Reserved for user.  */
     265    mg_s_long ssusr2;       /* Reserved for user.  */
     266    mg_s_long sstpid;       /* Process ID for pid based multi-tasking.  */
     267    mg_s_long ssgvup;       /* Pointer to multitasking thread giveup.  */
     268    mg_s_long sscray[7];        /* Reserved for Cray Research.  */
     269    mg_s_long ssa0;
     270    mg_s_long ssa1;
     271    mg_s_long ssa2;
     272    mg_s_long ssa3;
     273    mg_s_long ssa4;
     274    mg_s_long ssa5;
     275    mg_s_long ssa6;
     276    mg_s_long ssa7;
     277    mg_s_long sss0;
     278    mg_s_long sss1;
     279    mg_s_long sss2;
     280    mg_s_long sss3;
     281    mg_s_long sss4;
     282    mg_s_long sss5;
     283    mg_s_long sss6;
     284    mg_s_long sss7;
    285285  };
    286286
     
    290290struct stk_stat
    291291  {
    292     long now;           /* Current total stack size.  */
    293     long maxc;          /* Amount of contiguous space which would
     292    mg_s_long now;          /* Current total stack size.  */
     293    mg_s_long maxc;         /* Amount of contiguous space which would
    294294                   be required to satisfy the maximum
    295295                   stack demand to date.  */
    296     long high_water;        /* Stack high-water mark.  */
    297     long overflows;     /* Number of stack overflow ($STKOFEN) calls.  */
    298     long hits;          /* Number of internal buffer hits.  */
    299     long extends;       /* Number of block extensions.  */
    300     long stko_mallocs;      /* Block allocations by $STKOFEN.  */
    301     long underflows;        /* Number of stack underflow calls ($STKRETN).  */
    302     long stko_free;     /* Number of deallocations by $STKRETN.  */
    303     long stkm_free;     /* Number of deallocations by $STKMRET.  */
    304     long segments;      /* Current number of stack segments.  */
    305     long maxs;          /* Maximum number of stack segments so far.  */
    306     long pad_size;      /* Stack pad size.  */
    307     long current_address;   /* Current stack segment address.  */
    308     long current_size;      /* Current stack segment size.  This
     296    mg_s_long high_water;       /* Stack high-water mark.  */
     297    mg_s_long overflows;        /* Number of stack overflow ($STKOFEN) calls.  */
     298    mg_s_long hits;         /* Number of internal buffer hits.  */
     299    mg_s_long extends;      /* Number of block extensions.  */
     300    mg_s_long stko_mallocs;     /* Block allocations by $STKOFEN.  */
     301    mg_s_long underflows;       /* Number of stack underflow calls ($STKRETN).  */
     302    mg_s_long stko_free;        /* Number of deallocations by $STKRETN.  */
     303    mg_s_long stkm_free;        /* Number of deallocations by $STKMRET.  */
     304    mg_s_long segments;     /* Current number of stack segments.  */
     305    mg_s_long maxs;         /* Maximum number of stack segments so far.  */
     306    mg_s_long pad_size;     /* Stack pad size.  */
     307    mg_s_long current_address;  /* Current stack segment address.  */
     308    mg_s_long current_size;     /* Current stack segment size.  This
    309309                   number is actually corrupted by STKSTAT to
    310310                   include the fifteen word trailer area.  */
    311     long initial_address;   /* Address of initial segment.  */
    312     long initial_size;      /* Size of initial segment.  */
     311    mg_s_long initial_address;  /* Address of initial segment.  */
     312    mg_s_long initial_size;     /* Size of initial segment.  */
    313313  };
    314314
     
    319319struct stk_trailer
    320320  {
    321     long this_address;      /* Address of this block.  */
    322     long this_size;     /* Size of this block (does not include
     321    mg_s_long this_address;     /* Address of this block.  */
     322    mg_s_long this_size;        /* Size of this block (does not include
    323323                   this trailer).  */
    324     long unknown2;
    325     long unknown3;
    326     long link;          /* Address of trailer block of previous
     324    mg_s_long unknown2;
     325    mg_s_long unknown3;
     326    mg_s_long link;         /* Address of trailer block of previous
    327327                   segment.  */
    328     long unknown5;
    329     long unknown6;
    330     long unknown7;
    331     long unknown8;
    332     long unknown9;
    333     long unknown10;
    334     long unknown11;
    335     long unknown12;
    336     long unknown13;
    337     long unknown14;
     328    mg_s_long unknown5;
     329    mg_s_long unknown6;
     330    mg_s_long unknown7;
     331    mg_s_long unknown8;
     332    mg_s_long unknown9;
     333    mg_s_long unknown10;
     334    mg_s_long unknown11;
     335    mg_s_long unknown12;
     336    mg_s_long unknown13;
     337    mg_s_long unknown14;
    338338  };
    339339
     
    345345   I doubt that "lint" will like this much. */
    346346
    347 static long
    348 i00afunc (long *address)
     347static mg_s_long
     348i00afunc (mg_s_long *address)
    349349{
    350350  struct stk_stat status;
    351351  struct stk_trailer *trailer;
    352   long *block, size;
    353   long result = 0;
     352  mg_s_long *block, size;
     353  mg_s_long result = 0;
    354354
    355355  /* We want to iterate through all of the segments.  The first
     
    376376  while (trailer != 0)
    377377    {
    378       block = (long *) trailer->this_address;
     378      block = (mg_s_long *) trailer->this_address;
    379379      size = trailer->this_size;
    380380      if (block == 0 || size == 0)
     
    419419   for alloca.  */
    420420
    421 static long
    422 i00afunc (long address)
     421static mg_s_long
     422i00afunc (mg_s_long address)
    423423{
    424   long stkl = 0;
    425 
    426   long size, pseg, this_segment, stack;
    427   long result = 0;
     424  mg_s_long stkl = 0;
     425
     426  mg_s_long size, pseg, this_segment, stack;
     427  mg_s_long result = 0;
    428428
    429429  struct stack_segment_linkage *ssptr;
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_gen.cpp

    r16583 r25147  
    2525int fprintf (FILE *, const char *,...);
    2626
    27 unsigned long
    28 BIO_Unary_Length (unsigned long val)
     27mg_u_long
     28BIO_Unary_Length (mg_u_long val)
    2929{
    30   register unsigned long num;
     30  register mg_u_long num;
    3131  num = bitio_buffer::unary_length(val);
    3232  //  UNARY_LENGTH (val, num);
     
    3535
    3636
    37 unsigned long
    38 BIO_Binary_Length (unsigned long val, unsigned long b)
     37mg_u_long
     38BIO_Binary_Length (mg_u_long val, mg_u_long b)
    3939{
    40   register unsigned long num;
     40  register mg_u_long num;
    4141  num = bitio_buffer::binary_length (val, b);
    4242  return (num);
     
    4444
    4545
    46 unsigned long BIO_Gamma_Length (unsigned long val) {
    47   register unsigned long num;
     46mg_u_long BIO_Gamma_Length (mg_u_long val) {
     47  register mg_u_long num;
    4848  num = bitio_buffer::gamma_length(val);
    4949  return (num);
     
    5151
    5252
    53 unsigned long
    54 BIO_Delta_Length (unsigned long val)
     53mg_u_long
     54BIO_Delta_Length (mg_u_long val)
    5555{
    56   register unsigned long num;
     56  register mg_u_long num;
    5757  num = bitio_buffer::delta_length(val);
    5858  return (num);
     
    6060
    6161
    62 unsigned long
    63 BIO_Elias_Length (unsigned long val, unsigned long b, double s)
     62mg_u_long
     63BIO_Elias_Length (mg_u_long val, mg_u_long b, double s)
    6464{
    65   register unsigned long num;
     65  register mg_u_long num;
    6666  num = bitio_buffer::elias_length(val, b, s);
    6767  return (num);
    6868}
    6969
    70 unsigned long
    71 BIO_Bblock_Length (unsigned long val, unsigned long b)
     70mg_u_long
     71BIO_Bblock_Length (mg_u_long val, mg_u_long b)
    7272{
    73   register unsigned long num;
     73  register mg_u_long num;
    7474  num = bitio_buffer::bblock_length (val, b);
    7575  return (num);
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_gen.h

    r16583 r25147  
    3333#define H_BITIO_GEN
    3434
    35 unsigned long BIO_Unary_Length (unsigned long val);
     35mg_u_long BIO_Unary_Length (mg_u_long val);
    3636
    37 unsigned long BIO_Binary_Length (unsigned long val, unsigned long b);
     37mg_u_long BIO_Binary_Length (mg_u_long val, mg_u_long b);
    3838
    39 unsigned long BIO_Gamma_Length (unsigned long val);
     39mg_u_long BIO_Gamma_Length (mg_u_long val);
    4040
    41 unsigned long BIO_Delta_Length (unsigned long val);
     41mg_u_long BIO_Delta_Length (mg_u_long val);
    4242
    43 unsigned long BIO_Elias_Length (unsigned long val, unsigned long b, double s);
     43mg_u_long BIO_Elias_Length (mg_u_long val, mg_u_long b, double s);
    4444
    45 unsigned long BIO_Bblock_Length (unsigned long val, unsigned long b);
     45mg_u_long BIO_Bblock_Length (mg_u_long val, mg_u_long b);
    4646
    4747int BIO_Bblock_Init (int N, int p);
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_abstract.h

    r18716 r25147  
    11#ifndef H_BITIO_ABSTRACT
    22#define H_BITIO_ABSTRACT
     3#include "mglong.h"
    34#include <cstdlib>
    45class bitio_buffer {
     
    67  virtual int bit() = 0;
    78  virtual void encodeBit(int bit) = 0;
    8   virtual void seek(unsigned long topos) = 0;
    9  
    10   static inline void check_positive(char *type, unsigned long x) {
     9  virtual void seek(mg_u_long topos) = 0;
     10
     11  virtual ~bitio_buffer() {}
     12
     13  static inline void check_positive(char *type, mg_u_long x) {
    1114    if (x <= 0) {
    12       fprintf(stderr, "Error: Cannot %s encode %lu\n", type, x);
     15      fprintf(stderr, "Error: Cannot %s encode %u\n", type, x);
    1316      exit(1);
    1417    }
    1518  }
    1619
    17   static inline int floor_log2(unsigned long x) {
    18     unsigned long  _B_x = x;
     20  static inline int floor_log2(mg_u_long x) {
     21    mg_u_long  _B_x = x;
    1922    int reply;
    2023   
     
    2730  }
    2831 
    29   static inline int ceil_log2(unsigned long x) {
     32  static inline int ceil_log2(mg_u_long x) {
    3033    register int _B_x;
    31     unsigned long reply;
     34    mg_u_long reply;
    3235   
    3336    _B_x = x - 1;
     
    4043  }
    4144
    42   inline unsigned long unary_decode(unsigned long *count) {
    43     unsigned long x;
     45  inline mg_u_long unary_decode(mg_u_long *count) {
     46    mg_u_long x;
    4447   
    4548    x = 1;
     
    5154  }
    5255
    53   inline void unary_encode(unsigned long x, unsigned long *count) {
    54     register unsigned long _B_x = x;
    55     check_positive("unary", _B_x);
     56  inline void unary_encode(mg_u_long x, mg_u_long *count) {
     57    register mg_u_long _B_x = x;
     58    check_positive((char*)"unary", _B_x);
    5659    if (count != NULL) {
    5760      *count += _B_x;
     
    6366
    6467
    65   inline unsigned long binary_decode(unsigned long b, unsigned long *count) {
    66     register unsigned long _B_x = 0;
    67     register unsigned long _B_b = b;
     68  inline mg_u_long binary_decode(mg_u_long b, mg_u_long *count) {
     69    register mg_u_long _B_x = 0;
     70    register mg_u_long _B_b = b;
    6871    register int _B_i, _B_logofb, _B_thresh;
    69     register unsigned long reply;
     72    register mg_u_long reply;
    7073   
    7174    if (_B_b != 1) {                   
     
    9699  }
    97100
    98   inline void binary_encode(unsigned long x, unsigned long b, unsigned long *count) {
    99     register unsigned long _B_x = (x);
    100     register unsigned long _B_b = (b);
     101  inline void binary_encode(mg_u_long x, mg_u_long b, mg_u_long *count) {
     102    register mg_u_long _B_x = (x);
     103    register mg_u_long _B_b = (b);
    101104    register int _B_nbits, _B_logofb, _B_thresh;
    102105   
    103     check_positive("binary", _B_x);
     106    check_positive((char*)"binary", _B_x);
    104107    _B_logofb = ceil_log2(_B_b);
    105108   
     
    117120  }
    118121
    119   inline unsigned long bblock_decode(unsigned long b, unsigned long *count) {
    120     register unsigned long _B_x1, _B_xx = 0;
    121     register unsigned long _B_bb = (b);
     122  inline mg_u_long bblock_decode(mg_u_long b, mg_u_long *count) {
     123    register mg_u_long _B_x1, _B_xx = 0;
     124    register mg_u_long _B_bb = (b);
    122125    register int _B_xdivb;
    123126   
     
    131134  }
    132135 
    133   inline void bblock_encode(unsigned long x, unsigned long b, unsigned long *count) {
    134     register unsigned long _B_xx = (x);
    135     register unsigned long _B_bb = (b);
     136  inline void bblock_encode(mg_u_long x, mg_u_long b, mg_u_long *count) {
     137    register mg_u_long _B_xx = (x);
     138    register mg_u_long _B_bb = (b);
    136139    register int _B_xdivb = 0;
    137     check_positive("bblock", _B_xx);
     140    check_positive((char*)"bblock", _B_xx);
    138141    --_B_xx;
    139142    while (_B_xx >= _B_bb) {
     
    145148  }
    146149
    147   inline unsigned long elias_decode(unsigned long b, double s, unsigned long *count) {
    148     register unsigned long _B_xx;
    149     register unsigned long _B_b = b;
     150  inline mg_u_long elias_decode(mg_u_long b, double s, mg_u_long *count) {
     151    register mg_u_long _B_xx;
     152    register mg_u_long _B_b = b;
    150153    register double _B_s = s;
    151154    register int _B_lower=1, _B_upper=1;
     
    162165    _B_xx = this->binary_decode(_B_upper-_B_lower+1, count);
    163166    --_B_xx;
    164     check_positive("gamma", _B_xx+_B_lower);
     167    check_positive((char*)"gamma", _B_xx+_B_lower);
    165168    return _B_xx+_B_lower;
    166169  }
    167170 
    168   inline void elias_encode(unsigned long x, unsigned long b, double s, unsigned long *count) {
    169     register unsigned long _B_xx = x;
    170     register unsigned long _B_b = b;
     171  inline void elias_encode(mg_u_long x, mg_u_long b, double s, mg_u_long *count) {
     172    register mg_u_long _B_xx = x;
     173    register mg_u_long _B_b = b;
    171174    register double _B_s = s;
    172175    register int _B_lower=1, _B_upper=1;
     
    174177    register double _B_pow=1.0;
    175178   
    176     check_positive("elias", _B_xx);
     179    check_positive((char*)"elias", _B_xx);
    177180   
    178181    while ((int)_B_xx>_B_upper) {
     
    186189  }
    187190 
    188   inline unsigned long gamma_decode(unsigned long *count) {
    189     register unsigned long _B_xx = 1;
     191  inline mg_u_long gamma_decode(mg_u_long *count) {
     192    register mg_u_long _B_xx = 1;
    190193    register int _B_nbits = 0;
    191194   
     
    199202  }
    200203
    201   inline void gamma_encode(unsigned long x, unsigned long *count) {
    202     register unsigned long _B_xx = x;
     204  inline void gamma_encode(mg_u_long x, mg_u_long *count) {
     205    register mg_u_long _B_xx = x;
    203206    register int _B_logofb;
    204207    register int _B_nbits;
    205208   
    206     check_positive("gamma", _B_xx);
     209    check_positive((char*)"gamma", _B_xx);
    207210    _B_logofb = floor_log2(_B_xx);
    208211    _B_nbits = _B_logofb+1;
     
    215218  }
    216219 
    217   inline unsigned long delta_decode(unsigned long *count) {
    218     register unsigned long _B_xxx;
     220  inline mg_u_long delta_decode(mg_u_long *count) {
     221    register mg_u_long _B_xxx;
    219222    register int _B_logx;
    220223    _B_logx = gamma_decode(count);
     
    225228  }
    226229
    227   inline void delta_encode(unsigned long x, unsigned long *count) {
    228     register unsigned long _B_xxx = x;
     230  inline void delta_encode(mg_u_long x, mg_u_long *count) {
     231    register mg_u_long _B_xxx = x;
    229232    register int _B_logx;
    230233    _B_logx = floor_log2(_B_xxx);
     
    233236  }
    234237
    235   inline unsigned long huff_decode(unsigned long *mcodes, unsigned long **values,
    236                    unsigned long *count = NULL) {
    237     register unsigned long *__min_code = mcodes;
    238     register unsigned long *__mclen    = mcodes;
    239     register unsigned long **__values  = values;
    240     register unsigned long __code = 0;
     238  inline mg_u_long huff_decode(mg_u_long *mcodes, mg_u_long **values,
     239                   mg_u_long *count = NULL) {
     240    register mg_u_long *__min_code = mcodes;
     241    register mg_u_long *__mclen    = mcodes;
     242    register mg_u_long **__values  = values;
     243    register mg_u_long __code = 0;
    241244    do {
    242245      __code += __code + bit();
     
    247250  }
    248251
    249   inline void huff_encode(unsigned long x, unsigned long *codes, char *lens,
    250               unsigned long *count = NULL) {
     252  inline void huff_encode(mg_u_long x, mg_u_long *codes, char *lens,
     253              mg_u_long *count = NULL) {
    251254    register int __i;
    252255    register int __clen = lens[x];
    253     register unsigned long __code = codes[x];
     256    register mg_u_long __code = codes[x];
    254257    for (__i=__clen-1; __i>=0; --__i) {
    255258      encodeBit((__code >> __i) & 1);
     
    260263  }
    261264
    262   static inline unsigned long unary_length(unsigned long x) {
    263     check_positive("unary", x);
     265  static inline mg_u_long unary_length(mg_u_long x) {
     266    check_positive((char*)"unary", x);
    264267    return x;
    265268  }
    266269
    267   static inline int binary_length(unsigned long x, unsigned long b) {
    268     register unsigned long _B_x = (x);
    269     register unsigned long _B_b = (b);
     270  static inline int binary_length(mg_u_long x, mg_u_long b) {
     271    register mg_u_long _B_x = (x);
     272    register mg_u_long _B_b = (b);
    270273    register int _B_nbits, _B_logofb, _B_thresh;
    271274   
    272     check_positive("binary", _B_x);
     275    check_positive((char*)"binary", _B_x);
    273276    _B_logofb = ceil_log2(_B_b);
    274277    _B_thresh = (1<<_B_logofb) - _B_b;
     
    278281  }
    279282
    280   static inline unsigned long bblock_length(unsigned long x, unsigned long b) {
    281     register unsigned long _B_bcount, count, _B_xx = (x);
    282     register unsigned long _B_bb = (b);
     283  static inline mg_u_long bblock_length(mg_u_long x, mg_u_long b) {
     284    register mg_u_long _B_bcount, count, _B_xx = (x);
     285    register mg_u_long _B_bb = (b);
    283286    register int _B_xdivb = 0;
    284287   
    285     check_positive("bblock", _B_xx);
     288    check_positive((char*)"bblock", _B_xx);
    286289    --_B_xx;
    287290    while (_B_xx >= _B_bb) {
     
    295298  }
    296299 
    297   static inline unsigned long elias_length(unsigned long x, unsigned long b,
     300  static inline mg_u_long elias_length(mg_u_long x, mg_u_long b,
    298301                       double s) {
    299     register unsigned long _B_xx = x;
    300     register unsigned long _B_b = b;
     302    register mg_u_long _B_xx = x;
     303    register mg_u_long _B_b = b;
    301304    register double _B_s = s;
    302305    register int _B_lower=1, _B_upper=1;
    303306    register int _B_k=0, _B_ecount;
    304307    register double _B_pow=1.0;
    305     register unsigned long count;
    306     check_positive("gamma", _B_xx);
     308    register mg_u_long count;
     309    check_positive((char*)"gamma", _B_xx);
    307310   
    308311    while ((int)(_B_xx)>_B_upper) {
     
    318321  }
    319322 
    320   static inline unsigned long gamma_length(unsigned long x) {
    321     register unsigned long _B_xx = x;
     323  static inline mg_u_long gamma_length(mg_u_long x) {
     324    register mg_u_long _B_xx = x;
    322325    register int _B_logofb;
    323     check_positive("gamma", _B_xx);
     326    check_positive((char*)"gamma", _B_xx);
    324327    _B_logofb = floor_log2(_B_xx);
    325328    return _B_logofb*2+1;
    326329  }
    327330
    328   static inline unsigned long delta_length(unsigned long x) {
    329     register unsigned long _B_xxx = x;
     331  static inline mg_u_long delta_length(mg_u_long x) {
     332    register mg_u_long _B_xxx = x;
    330333    register int _B_logx, _B_dcount;
    331     register unsigned long count;
     334    register mg_u_long count;
    332335    _B_logx = floor_log2 (_B_xxx);
    333336    count = gamma_length(_B_logx+1);
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_mem.cpp

    r16583 r25147  
    2727
    2828
    29 void mem_bitio_buffer::seek(unsigned long toPos) {
    30   register long _newPos;
     29void mem_bitio_buffer::seek(mg_u_long toPos) {
     30  register mg_s_long _newPos;
    3131  do {
    3232    _newPos = toPos;
     
    3838}
    3939
    40 long mem_bitio_buffer::addff(long b) {
     40mg_s_long mem_bitio_buffer::addff(mg_s_long b) {
    4141  do {
    4242    if (btg == 0) {
     
    5555}
    5656
    57 long mem_bitio_buffer::add00(long b) {
     57mg_s_long mem_bitio_buffer::add00(mg_s_long b) {
    5858  do {
    5959    if (btg == 0) {
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_mem.h

    r16583 r25147  
    3535
    3636#include "bitio_m_abstract.h"
     37#include "mglong.h"
    3738
    3839
     
    4849  mem_bitio_buffer ();
    4950  mem_bitio_buffer (unsigned char *buffer, int size);
    50   void seek (unsigned long topos);
     51  void seek (mg_u_long topos);
    5152  void error ();
    52   long add00 (long b);
    53   long addff (long b);
     53  mg_s_long add00 (mg_s_long b);
     54  mg_s_long addff (mg_s_long b);
    5455  int  bit ();
    5556  void done ();
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_mems.cpp

    r16583 r25147  
    1212}
    1313
    14 mems_bitio_buffer::mems_bitio_buffer(unsigned char *readbuffer, long _pos)
     14mems_bitio_buffer::mems_bitio_buffer(unsigned char *readbuffer, mg_s_long _pos)
    1515{
    1616  base = readbuffer;
     
    3131
    3232
    33 void mems_bitio_buffer::seek(unsigned long toPos)
     33void mems_bitio_buffer::seek(mg_u_long toPos)
    3434{
    3535  pos = toPos;
    3636}
    3737
    38 unsigned long mems_bitio_buffer::position()
     38mg_u_long mems_bitio_buffer::position()
    3939{
    4040  return pos;
    4141}
    4242
    43 long mems_bitio_buffer::addff(long b)
     43mg_s_long mems_bitio_buffer::addff(mg_s_long b)
    4444{
    4545  do
     
    5353}
    5454
    55 long mems_bitio_buffer::add00(long b)
     55mg_s_long mems_bitio_buffer::add00(mg_s_long b)
    5656{
    5757  return addff(b);
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_mems.h

    r16583 r25147  
    3434
    3535#include "bitio_m_abstract.h"
    36 
     36#include "mglong.h"
    3737
    3838class mems_bitio_buffer : public bitio_buffer {
    3939protected:
    4040  unsigned char *base;
    41   unsigned long  pos;
     41  mg_u_long  pos;
    4242 
    4343public:
    4444  mems_bitio_buffer();
    45   mems_bitio_buffer(unsigned char *readbuffer, long _pos);
    46   void seek(unsigned long topos);
     45  mems_bitio_buffer(unsigned char *readbuffer, mg_s_long _pos);
     46  void seek(mg_u_long topos);
    4747  void error();
    48   long add00(long b);
    49   long addff(long b);
     48  mg_s_long add00(mg_s_long b);
     49  mg_s_long addff(mg_s_long b);
    5050  int  bit();
    5151  //  int  bitOffset();
    5252  void done();
    5353
    54   unsigned long position();
     54  mg_u_long position();
    5555
    5656  void encodeStart();
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_random.cpp

    r16583 r25147  
    99#include "bitio_m_random.h"
    1010
    11 random_bitio_buffer::random_bitio_buffer(FILE *f, unsigned long length)
     11random_bitio_buffer::random_bitio_buffer(FILE *f, mg_u_long length)
    1212{
    1313  buffer = NULL;
     
    1919}
    2020
    21 void random_bitio_buffer::attachFile (FILE *f, unsigned long length) {
     21void random_bitio_buffer::attachFile (FILE *f, mg_u_long length) {
    2222  // delete the old buffer
    2323  if (buffer != NULL) {
     
    4747  if (file != NULL) {
    4848    fseek(file, 0, 0);
    49     fread(buffer, 1, len, file);
     49    size_t numbytes = fread(buffer, 1, len, file);
     50   
     51    if (len != numbytes){
     52#ifdef DEBUG
     53      fprintf(stderr, "[mgpp/lib/bitio_m_random.cpp L52] number of bytes read by fread does not match the requested amount\n");
     54#endif
     55    }
    5056  }
    5157}
     
    8894      base += len;
    8995      fseek(file, base, 0);
    90       fread(buffer, 1, len, file);
     96      size_t numbytes = fread(buffer, 1, len, file);
     97      if (numbytes != len)
     98    {
     99#ifdef DEBUG
     100      fprintf(stderr, "[mgpp/lib/bitio_m_random.cpp L97] number of bytes read by fread does not match the requested amount\n");
     101#endif
     102    }
    91103      pos = 0;
    92104      used = 0;
     
    136148}
    137149
    138 unsigned long random_bitio_buffer::tell()
     150mg_u_long random_bitio_buffer::tell()
    139151{
    140152  return ((base << 3) + pos);
    141153}
    142154
    143 void random_bitio_buffer::seek(unsigned long toPos)
     155void random_bitio_buffer::seek(mg_u_long toPos)
    144156{
    145157  if (((toPos >> 3) >= base) && (((toPos+7) >> 3) < (base + len)))
     
    153165      base = (toPos >> (shift + 3)) << shift;
    154166      fseek(file, base, 0);
    155       fread(buffer, 1, len, file);
     167      size_t numbytes = fread(buffer, 1, len, file);
     168      if (numbytes != len)
     169    {
     170#ifdef DEBUG
     171      fprintf(stderr, "[mgpp/lib/bitio_m_random.cpp L166] number of bytes read by fread does not match the requested amount\n");
     172#endif
     173    }
    156174      pos = toPos & 0x07;
    157175      pos = toPos & ((8 << shift) - 1);
     
    171189}
    172190
    173 long random_bitio_buffer::addff(long b)
     191mg_s_long random_bitio_buffer::addff(mg_s_long b)
    174192{
    175193  return b + b + bit();
    176194}
    177195
    178 long random_bitio_buffer::add00(long b)
     196mg_s_long random_bitio_buffer::add00(mg_s_long b)
    179197{
    180198  return addff(b);
     
    198216      (((toPos + 7) >> 3) < (mg_ullong) (base + len)))
    199217    {
    200       pos = (long) (toPos - (mg_ullong) (base << 3));
     218      pos = (mg_s_long) (toPos - (mg_ullong) (base << 3));
    201219    }
    202220  else
    203221    {
    204222      flush();
    205       base = (long) ((toPos >> (shift + 3)) << shift);
    206 
    207       fseek(file, base, 0);
    208       fread(buffer, 1, len, file);
    209       pos = (long) (toPos & ((8 << shift) - 1));
     223      base = (mg_s_long) ((toPos >> (shift + 3)) << shift);
     224
     225      fseek(file, base, 0);
     226      size_t numbytes = fread(buffer, 1, len, file);
     227      if (numbytes != len)
     228    {
     229#ifdef DEBUG
     230      fprintf(stderr, "[mgpp/lib/bitio_m_random.cpp L223] number of bytes read by fread does not match the requested amount\n");
     231#endif
     232    }
     233      pos = (mg_s_long) (toPos & ((8 << shift) - 1));
    210234    }
    211235}
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_random.h

    r16583 r25147  
    4242  FILE *file;
    4343  unsigned char *buffer;
    44   unsigned long  base;
    45   unsigned long  used;
    46   unsigned long  pos;
    47   unsigned long  len;
    48   unsigned long  shift;
     44  mg_u_long  base;
     45  mg_u_long  used;
     46  mg_u_long  pos;
     47  mg_u_long  len;
     48  mg_u_long  shift;
    4949  void writeRead();
    5050
    5151  random_bitio_buffer(FILE *f = 0,
    52               unsigned long length = 8*1024);
     52              mg_u_long length = 8*1024);
    5353  virtual ~random_bitio_buffer();
    5454 
    55   void attachFile (FILE *f, unsigned long length);
     55  void attachFile (FILE *f, mg_u_long length);
    5656
    5757  random_bitio_buffer &operator= (const random_bitio_buffer &_rbb);
     
    6060  void encodeBit(int b);
    6161  void flush();
    62   unsigned long tell();
     62  mg_u_long tell();
    6363
    64   void seek(unsigned long topos);
     64  void seek(mg_u_long topos);
    6565  void error();
    66   long add00(long b);
    67   long addff(long b);
     66  mg_s_long add00(mg_s_long b);
     67  mg_s_long addff(mg_s_long b);
    6868  int  bit();
    6969  int  bitOffset();
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_stdio.cpp

    r16583 r25147  
    2424}
    2525
    26 void stdio_bitio_buffer::seek (unsigned long byte, unsigned char bit) {
     26void stdio_bitio_buffer::seek (mg_u_long byte, unsigned char bit) {
    2727  if (fseek (file, byte, SEEK_SET) != 0) return;
    2828  buffer = getc(file);
     
    3131}
    3232
    33 void stdio_bitio_buffer::seek(unsigned long topos) {
     33void stdio_bitio_buffer::seek(mg_u_long topos) {
    3434  if (fseek(file, topos >> 3, SEEK_SET) != 0) return;
    3535  buffer = getc(file);
     
    3838}
    3939
    40 long stdio_bitio_buffer::addff(long b)
     40mg_s_long stdio_bitio_buffer::addff(mg_s_long b)
    4141{
    4242  if (!btg)
     
    5959}
    6060
    61 long stdio_bitio_buffer::add00(long b)
     61mg_s_long stdio_bitio_buffer::add00(mg_s_long b)
    6262{
    6363  if (!btg)
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/bitio_m_stdio.h

    r16583 r25147  
    3333
    3434#include "bitio_m_abstract.h"
    35 
     35#include "mglong.h"
    3636
    3737class stdio_bitio_buffer : public bitio_buffer {
     
    4040  unsigned char buffer;
    4141  unsigned char btg;
    42   unsigned long bytesWritten;
     42  mg_u_long bytesWritten;
    4343 
    4444public:
     
    4848
    4949  unsigned char GetBtg () { return btg; }
    50   unsigned long GetBytesWritten () { return bytesWritten; }
     50  mg_u_long GetBytesWritten () { return bytesWritten; }
    5151 
    52   void seek (unsigned long byte, unsigned char bit);
    53   void seek (unsigned long topos);
     52  void seek (mg_u_long byte, unsigned char bit);
     53  void seek (mg_u_long topos);
    5454  void error();
    55   long add00(long b);
    56   long addff(long b);
     55  mg_s_long add00(mg_s_long b);
     56  mg_s_long addff(mg_s_long b);
    5757  int  bit();
    5858  int  bitOffset() { return btg; }
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/gmalloc.c

    r16583 r25147  
    401401{
    402402  __ptr_t result;
    403   unsigned long int adj;
     403  mg_u_long adj;
    404404
    405405  result = (*__morecore) (size);
    406   adj = (unsigned long int) ((unsigned long int) ((char *) result -
     406  adj = (mg_u_long) ((mg_u_long) ((char *) result -
    407407                          (char *) NULL)) % BLOCKSIZE;
    408408  if (adj != 0)
     
    549549      block = BLOCK (result);
    550550      if (--_heapinfo[block].busy.info.frag.nfree != 0)
    551         _heapinfo[block].busy.info.frag.first = (unsigned long int)
    552           ((unsigned long int) ((char *) next->next - (char *) NULL)
     551        _heapinfo[block].busy.info.frag.first = (mg_u_long)
     552          ((mg_u_long) ((char *) next->next - (char *) NULL)
    553553           % BLOCKSIZE) >> log;
    554554
     
    872872      prev = (struct list *) ptr;
    873873      _heapinfo[block].busy.info.frag.nfree = 1;
    874       _heapinfo[block].busy.info.frag.first = (unsigned long int)
    875         ((unsigned long int) ((char *) ptr - (char *) NULL)
     874      _heapinfo[block].busy.info.frag.first = (mg_u_long)
     875        ((mg_u_long) ((char *) ptr - (char *) NULL)
    876876         % BLOCKSIZE >> type);
    877877      prev->next = _fraghead[type].next;
     
    12841284{
    12851285  __ptr_t result;
    1286   unsigned long int adj;
     1286  mg_u_long adj;
    12871287
    12881288  size = ((size + alignment - 1) / alignment) * alignment;
     
    12911291  if (result == NULL)
    12921292    return NULL;
    1293   adj = (unsigned long int) ((unsigned long int) ((char *) result -
     1293  adj = (mg_u_long) ((mg_u_long) ((char *) result -
    12941294                          (char *) NULL)) % alignment;
    12951295  if (adj != 0)
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/huffman.cpp

    r16583 r25147  
    3030 */
    3131huff_data *
    32 Generate_Huffman_Data (int num, long *freqs, huff_data * data,
    33                u_long * mem)
     32Generate_Huffman_Data (int num, mg_s_long *freqs, huff_data * data,
     33               mg_u_long * mem)
    3434{
    3535  int HNum, i, count;
    36   unsigned long *heap;
     36  mg_u_long *heap;
    3737  huff_data *hd = data;
    3838  if (!hd)
     
    4141    goto error0;
    4242    }
    43   if (!(heap = new unsigned long[num * 2]))
     43  if (!(heap = new mg_u_long[num * 2]))
    4444    goto error1;
    4545  if (!(hd->clens = new char[num]))
     
    7373      if (heap[heap[curr - 1]] > heap[heap[child - 1]])
    7474        {
    75           register u_long temp;
     75          register mg_u_long temp;
    7676          temp = heap[child - 1];
    7777          heap[child - 1] = heap[curr - 1];
     
    141141
    142142  /* Calculate the code lens */
    143   heap[0] = -1UL;
     143  heap[0] = -1;
    144144  heap[1] = 0;
    145145  for (i = 2; i < num * 2; ++i)
     
    154154  for (i = 0; i < num; ++i)
    155155    {
    156       register u_long codelen = heap[i + num];
     156      register mg_u_long codelen = heap[i + num];
    157157      hd->clens[i] = (char) codelen;
    158158      if (!codelen)
     
    190190}
    191191
    192 unsigned long *
    193 Generate_Huffman_Codes (huff_data * data, u_long * mem)
     192mg_u_long *
     193Generate_Huffman_Codes (huff_data * data, mg_u_long * mem)
    194194{
    195195  int i;
    196   unsigned long *codes;
    197   unsigned long mc[MAX_HUFFCODE_LEN + 1];
     196  mg_u_long *codes;
     197  mg_u_long mc[MAX_HUFFCODE_LEN + 1];
    198198
    199199  if (!data)
    200200    return (NULL);
    201   if (!(codes = new unsigned long[data->num_codes]))
     201  if (!(codes = new mg_u_long[data->num_codes]))
    202202    return (NULL);
    203203  if (mem)
     
    212212
    213213
    214 unsigned long **
    215 Generate_Huffman_Vals (huff_data * data, u_long * mem)
     214mg_u_long **
     215Generate_Huffman_Vals (huff_data * data, mg_u_long * mem)
    216216{
    217217  int i;
    218   unsigned long *fcode[MAX_HUFFCODE_LEN + 1];
    219   unsigned long **values;
    220   unsigned long *vals;
     218  mg_u_long *fcode[MAX_HUFFCODE_LEN + 1];
     219  mg_u_long **values;
     220  mg_u_long *vals;
    221221
    222222  if (!data)
    223223    return (NULL);
    224   if (!(vals = new unsigned long[data->num_codes]))
     224  if (!(vals = new mg_u_long[data->num_codes]))
    225225    return (NULL);
    226   if (!(values = new unsigned long *[MAX_HUFFCODE_LEN + 1]))
     226  if (!(values = new mg_u_long *[MAX_HUFFCODE_LEN + 1]))
    227227    {
    228228      delete []vals;
     
    230230    }
    231231
    232   memset (values, '\0', (MAX_HUFFCODE_LEN + 1) * sizeof (unsigned long *));
     232  memset (values, '\0', (MAX_HUFFCODE_LEN + 1) * sizeof (mg_u_long *));
    233233
    234234  if (mem)
    235235    *mem += data->num_codes * sizeof (*vals) +
    236       (MAX_HUFFCODE_LEN + 1) * sizeof (unsigned long *);
     236      (MAX_HUFFCODE_LEN + 1) * sizeof (mg_u_long *);
    237237
    238238  fcode[0] = values[0] = &vals[0];
     
    249249
    250250double
    251 Calculate_Huffman_Size (int num, long *freqs, long *counts)
     251Calculate_Huffman_Size (int num, mg_s_long *freqs, mg_s_long *counts)
    252252{
    253253  double size = 0;
     
    318318
    319319
    320 int Read_Huffman_Data (FILE * f, huff_data * hd, u_long * mem, u_long * disk) {
     320int Read_Huffman_Data (FILE * f, huff_data * hd, mg_u_long * mem, mg_u_long * disk) {
    321321  if (fread (&hd->num_codes, sizeof (hd->num_codes), 1, f) != 1)
    322322    return -1;
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/huffman.h

    r16583 r25147  
    3535  int maxcodelen;
    3636  int lencount[MAX_HUFFCODE_LEN + 1];
    37   unsigned long min_code[MAX_HUFFCODE_LEN + 1];
     37  mg_u_long min_code[MAX_HUFFCODE_LEN + 1];
    3838  char *clens;
    3939};
    4040
    4141
    42 huff_data *Generate_Huffman_Data (int num, long *freqs, huff_data * data,
    43                   u_long * mem);
     42huff_data *Generate_Huffman_Data (int num, mg_s_long *freqs, huff_data * data,
     43                  mg_u_long * mem);
    4444
    45 unsigned long *Generate_Huffman_Codes (huff_data * data, u_long * mem);
     45mg_u_long *Generate_Huffman_Codes (huff_data * data, mg_u_long * mem);
    4646
    47 unsigned long **Generate_Huffman_Vals (huff_data * data, u_long * mem);
     47mg_u_long **Generate_Huffman_Vals (huff_data * data, mg_u_long * mem);
    4848
    4949int Write_Huffman_Data (FILE * f, huff_data * hd);
    5050
    51 int Read_Huffman_Data (FILE * f, huff_data * hd, u_long * mem, u_long * disk);
     51int Read_Huffman_Data (FILE * f, huff_data * hd, mg_u_long * mem, mg_u_long * disk);
    5252
    5353/* Calculate the number of bits required to code the data with the
    5454   specified frequencies. Normally freqs and counts should point to
    5555   the same array. */
    56 double Calculate_Huffman_Size (int num, long *freqs, long *counts);
     56double Calculate_Huffman_Size (int num, mg_s_long *freqs, mg_s_long *counts);
    5757
    5858
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/local_strings.cpp

    r16583 r25147  
    5252  char *str_ptr = str;
    5353  char ch = '\0';
    54   long scale = 1;
     54  mg_s_long scale = 1;
    5555
    5656  /* find any scale letter immediately after digits */
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/local_strings.h

    r16583 r25147  
    5454      copy = fgetc(dict);
    5555      suff = fgetc(dict);
    56       fread(data + copy + 1, sizeof(u_char), suff, dict);
     56      size_t numbytes = fread(data + copy + 1, sizeof(u_char), suff, dict);
     57      if(numbytes != suff)
     58    {
     59#ifdef DEBUG
     60      fprintf(stderr, "[mgpp/lib/local_strings.h L59] number of bytes read by fread does not match the requested amount\n");
     61#endif
     62    }
    5763      *data = copy + suff;
    5864    }
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/longlong.h

    r16583 r25147  
    7474#else
    7575
     76#include <stdint.h>
    7677/* Not using GCC, so fall back on plain "long" (32-bit) types */
    77 typedef unsigned long int mg_ullong;
    78 typedef long int mg_llong;
     78typedef uint32_t mg_ullong;
     79typedef int32_t mg_llong;
    7980
    8081#define ULL_FS "lu"
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/lovinstem.cpp

    r16583 r25147  
    497497static Recode_Rules Rules[] =
    498498{
    499   "uad", "uas", 2, NULL, 0,
    500   "vad", "vas", 2, NULL, 0,
    501   "cid", "cis", 2, NULL, 0,
    502   "lid", "lis", 2, NULL, 0,
    503   "erid", "eris", 3, NULL, 0,
    504   "pand", "pans", 3, NULL, 0,
    505   "end", "ens", 2, s, 0,
    506   "end", "ens", 2, m, 0,
    507   "ond", "ons", 2, NULL, 0,
    508   "lud", "lus", 2, NULL, 0,
    509   "rud", "rus", 2, NULL, 1,
    510 
    511   "ul", "l", 1, aio, 1,
    512 
    513   "istr", "ister", 3, NULL, 0,
    514   "metr", "meter", 3, NULL, 0,
    515   "her", "hes", 2, pt, 1,
    516 
    517   "urs", "ur", 2, NULL, 1,
    518 
    519   "uct", "uc", 2, NULL, 0,
    520   "umpt", "um", 3, NULL, 0,
    521   "rpt", "rb", 2, NULL, 0,
    522   "mit", "mis", 2, NULL, 0,
    523   "ert", "ers", 2, NULL, 0,
    524   "et", "es", 1, n, 0,
    525   "yt", "ys", 1, NULL, 1,
    526 
    527   "iev", "ief", 2, NULL, 0,
    528   "olv", "olut", 2, NULL, 1,
    529 
    530   "bex", "bic", 2, NULL, 0,
    531   "dex", "dic", 2, NULL, 0,
    532   "pex", "pic", 2, NULL, 0,
    533   "tex", "tic", 2, NULL, 0,
    534   "ax", "ac", 1, NULL, 0,
    535   "ex", "ec", 1, NULL, 0,
    536   "ix", "ic", 1, NULL, 0,
    537   "lux", "luc", 2, NULL, 1,
    538 
    539   "yz", "ys", 1, NULL, 1
     499  {(char*)"uad", (char*)"uas", 2, NULL, 0},
     500  {(char*)"vad", (char*)"vas", 2, NULL, 0},
     501  {(char*)"cid", (char*)"cis", 2, NULL, 0},
     502  {(char*)"lid", (char*)"lis", 2, NULL, 0},
     503  {(char*)"erid", (char*)"eris", 3, NULL, 0},
     504  {(char*)"pand", (char*)"pans", 3, NULL, 0},
     505  {(char*)"end", (char*)"ens", 2, s, 0},
     506  {(char*)"end", (char*)"ens", 2, m, 0},
     507  {(char*)"ond", (char*)"ons", 2, NULL, 0},
     508  {(char*)"lud", (char*)"lus", 2, NULL, 0},
     509  {(char*)"rud", (char*)"rus", 2, NULL, 1},
     510
     511  {(char*)"ul", (char*)"l", 1, aio, 1},
     512
     513  {(char*)"istr", (char*)"ister", 3, NULL, 0},
     514  {(char*)"metr", (char*)"meter", 3, NULL, 0},
     515  {(char*)"her", (char*)"hes", 2, pt, 1},
     516
     517  {(char*)"urs", (char*)"ur", 2, NULL, 1},
     518
     519  {(char*)"uct", (char*)"uc", 2, NULL, 0},
     520  {(char*)"umpt", (char*)"um", 3, NULL, 0},
     521  {(char*)"rpt", (char*)"rb", 2, NULL, 0},
     522  {(char*)"mit", (char*)"mis", 2, NULL, 0},
     523  {(char*)"ert", (char*)"ers", 2, NULL, 0},
     524  {(char*)"et", (char*)"es", 1, n, 0},
     525  {(char*)"yt", (char*)"ys", 1, NULL, 1},
     526
     527  {(char*)"iev", (char*)"ief", 2, NULL, 0},
     528  {(char*)"olv", (char*)"olut", 2, NULL, 1},
     529
     530  {(char*)"bex", (char*)"bic", 2, NULL, 0},
     531  {(char*)"dex", (char*)"dic", 2, NULL, 0},
     532  {(char*)"pex", (char*)"pic", 2, NULL, 0},
     533  {(char*)"tex", (char*)"tic", 2, NULL, 0},
     534  {(char*)"ax", (char*)"ac", 1, NULL, 0},
     535  {(char*)"ex", (char*)"ec", 1, NULL, 0},
     536  {(char*)"ix", (char*)"ic", 1, NULL, 0},
     537  {(char*)"lux", (char*)"luc", 2, NULL, 1},
     538
     539  {(char*)"yz", (char*)"ys", 1, NULL, 1}
    540540};
    541541
     
    560560static Last_Char_Node pr[] =
    561561{
    562   'd', NULL, NULL, Rules,
    563   'l', pr, pr + 2, Rules + 11,
    564   'r', NULL, NULL, Rules + 12,
    565   's', pr + 1, pr + 6, Rules + 15,
    566   't', NULL, pr + 5, Rules + 16,
    567   'v', NULL, NULL, Rules + 23,
    568   'x', pr + 4, pr + 7, Rules + 25,
    569   'z', NULL, NULL, Rules + 33,
     562  {'d', NULL, NULL, Rules},
     563  {'l', pr, pr + 2, Rules + 11},
     564  {'r', NULL, NULL, Rules + 12},
     565  {'s', pr + 1, pr + 6, Rules + 15},
     566  {'t', NULL, pr + 5, Rules + 16},
     567  {'v', NULL, NULL, Rules + 23},
     568  {'x', pr + 4, pr + 7, Rules + 25},
     569  {'z', NULL, NULL, Rules + 33},
    570570};
    571571
     
    655655static Ending_List List[] =
    656656{
    657   "a", NULL, 0, 0,
    658 
    659   "ae", NULL, 0, 0,
    660   "al", BB, -1, 2,
    661   "ar", X, 0, 0,
    662   "as", B, -1, 0,
    663 
    664   "acy", NULL, 0, 1,
    665   "age", B, 0, 0,
    666   "aic", NULL, -2, 1,
    667   "als", BB, 0, 0,
    668   "ant", B, -2, 2,
    669   "ars", O, 0, 0,
    670   "ary", F, -1, 2,
    671   "ata", NULL, 0, 0,
    672   "ate", NULL, -1, 0,
    673 
    674   "able", NULL, 0, 1,
    675   "ably", NULL, 0, 0,
    676   "ages", B, -2, 2,
    677   "ally", B, 0, 0,
    678   "ance", B, -1, 1,
    679   "ancy", B, 0, 0,
    680   "ants", B, -4, 4,
    681   "aric", NULL, 0, 0,
    682   "arly", K, -1, 1,
    683   "ated", I, 0, 0,
    684   "ates", NULL, -2, 2,
    685   "atic", B, 0, 0,
    686   "ator", NULL, -1, 0,
    687 
    688   "acies", NULL, 0, 0,
    689   "acity", NULL, -1, 1,
    690   "aging", B, 0, 0,
    691   "aical", NULL, -2, 2,
    692   "alist", NULL, 0, 0,
    693   "alism", B, -1, 0,
    694   "ality", NULL, -3, 3,
    695   "alize", NULL, 0, 1,
    696   "allic", BB, 0, 0,
    697   "anced", B, -2, 2,
    698   "ances", B, 0, 0,
    699   "antic", C, -1, 0,
    700   "arial", NULL, -6, 6,
    701   "aries", NULL, 0, 1,
    702   "arily", NULL, 0, 0,
    703   "arity", B, -2, 2,
    704   "arize", NULL, 0, 0,
    705   "aroid", NULL, -1, 0,
    706   "ately", NULL, -3, 3,
    707   "ating", I, 0, 1,
    708   "ation", B, 0, 0,
    709   "ative", NULL, -2, 2,
    710   "ators", NULL, 0, 0,
    711   "atory", NULL, -1, 1,
    712   "ature", E, 0, 0,
    713 
    714   "aceous", NULL, 0, 1,
    715   "acious", B, 0, 0,
    716   "action", G, -2, 2,
    717   "alness", NULL, 0, 0,
    718   "ancial", NULL, -1, 1,
    719   "ancies", NULL, 0, 0,
    720   "ancing", B, -4, 4,
    721   "ariser", NULL, 0, 0,
    722   "arized", NULL, -1, 1,
    723   "arizer", NULL, 0, 0,
    724   "atable", NULL, -2, 2,
    725   "ations", B, 0, 0,
    726   "atives", NULL, -1, 0,
    727 
    728   "ability", NULL, 0, 1,
    729   "aically", NULL, 0, 0,
    730   "alistic", B, -2, 2,
    731   "alities", NULL, 0, 0,
    732   "ariness", E, -1, 0,
    733   "aristic", NULL, -3, 3,
    734   "arizing", NULL, 0, 1,
    735   "ateness", NULL, 0, 0,
    736   "atingly", NULL, -2, 2,
    737   "ational", B, 0, 0,
    738   "atively", NULL, -1, 1,
    739   "ativism", NULL, 0, 0,
    740 
    741   "ableness", NULL, 0, 1,
    742   "arizable", NULL, 0, 0,
    743 
    744   "allically", C, 0, 0,
    745   "antaneous", NULL, -1, 1,
    746   "antiality", NULL, 0, 0,
    747   "arisation", NULL, -2, 2,
    748   "arization", NULL, 0, 0,
    749   "ationally", B, -1, 1,
    750   "ativeness", NULL, 0, 0,
    751 
    752   "antialness", NULL, 0, 0,
    753   "arisations", NULL, -1, 1,
    754   "arizations", NULL, 0, 0,
    755 
    756   "alistically", B, 0, 1,
    757   "arizability", NULL, 0, 0,
    758 
    759   "e", NULL, 0, 0,
    760 
    761   "ed", E, 0, 0,
    762   "en", F, -1, 1,
    763   "es", E, 0, 0,
    764 
    765   "eal", Y, 0, 0,
    766   "ear", Y, -1, 1,
    767   "ely", E, 0, 0,
    768   "ene", E, -2, 2,
    769   "ent", C, 0, 0,
    770   "ery", E, -1, 1,
    771   "ese", NULL, 0, 0,
    772 
    773   "ealy", Y, 0, 1,
    774   "edly", E, 0, 0,
    775   "eful", NULL, -2, 1,
    776   "eity", NULL, 0, 0,
    777   "ence", NULL, -2, 2,
    778   "ency", NULL, 0, 0,
    779   "ened", E, -1, 2,
    780   "enly", E, 0, 0,
    781   "eous", NULL, -1, 0,
    782 
    783   "early", Y, 0, 1,
    784   "ehood", NULL, 0, 0,
    785   "eless", NULL, -2, 2,
    786   "elity", NULL, 0, 0,
    787   "ement", NULL, -1, 0,
    788   "enced", NULL, -3, 3,
    789   "ences", NULL, 0, 1,
    790   "eness", E, 0, 0,
    791   "ening", E, -2, 2,
    792   "ental", NULL, 0, 0,
    793   "ented", C, -1, 1,
    794   "ently", NULL, 0, 0,
    795 
    796   "eature", Z, 0, 0,
    797   "efully", NULL, -1, 1,
    798   "encies", NULL, 0, 0,
    799   "encing", NULL, -2, 2,
    800   "ential", NULL, 0, 0,
    801   "enting", C, -1, 1,
    802   "entist", NULL, 0, 1,
    803   "eously", NULL, 0, 0,
    804 
    805   "elihood", E, 0, 1,
    806   "encible", NULL, 0, 0,
    807   "entally", NULL, -2, 2,
    808   "entials", NULL, 0, 0,
    809   "entiate", NULL, -1, 1,
    810   "entness", NULL, 0, 0,
    811 
    812   "entation", NULL, 0, 0,
    813   "entially", NULL, -1, 1,
    814   "eousness", NULL, 0, 0,
    815 
    816   "eableness", E, 0, 1,
    817   "entations", NULL, 0, 0,
    818   "entiality", NULL, -2, 2,
    819   "entialize", NULL, 0, 0,
    820   "entiation", NULL, -1, 0,
    821 
    822   "entialness", NULL, 0, 0,
    823 
    824   "ful", NULL, 0, 0,
    825 
    826   "fully", NULL, 0, 0,
    827 
    828   "fulness", NULL, 0, 0,
    829 
    830   "hood", NULL, 0, 0,
    831 
    832   "i", NULL, 0, 0,
    833 
    834   "ia", NULL, 0, 0,
    835   "ic", NULL, -1, 1,
    836   "is", NULL, 0, 0,
    837 
    838   "ial", NULL, 0, 0,
    839   "ian", NULL, -1, 1,
    840   "ics", NULL, 0, 1,
    841   "ide", L, 0, 0,
    842   "ied", NULL, -3, 3,
    843   "ier", NULL, 0, 0,
    844   "ies", P, -1, 0,
    845   "ily", NULL, -1, 1,
    846   "ine", M, 0, 0,
    847   "ing", N, -5, 5,
    848   "ion", Q, 0, 0,
    849   "ish", C, -1, 1,
    850   "ism", B, 0, 1,
    851   "ist", NULL, 0, 0,
    852   "ite", AA, -3, 3,
    853   "ity", NULL, 0, 0,
    854   "ium", NULL, -1, 0,
    855   "ive", NULL, -1, 1,
    856   "ize", F, 0, 0,
    857 
    858   "ials", NULL, 0, 0,
    859   "ians", NULL, -1, 0,
    860   "ible", NULL, -1, 1,
    861   "ibly", NULL, 0, 0,
    862   "ical", NULL, -2, 2,
    863   "ides", L, 0, 0,
    864   "iers", NULL, -1, 1,
    865   "iful", NULL, 0, 0,
    866   "ines", M, -4, 4,
    867   "ings", N, 0, 0,
    868   "ions", B, -1, 1,
    869   "ious", NULL, 0, 0,
    870   "isms", B, -2, 2,
    871   "ists", NULL, 0, 0,
    872   "itic", H, -1, 1,
    873   "ized", F, 0, 1,
    874   "izer", F, 0, 0,
    875 
    876   "ially", NULL, 0, 0,
    877   "icant", NULL, -1, 1,
    878   "ician", NULL, 0, 0,
    879   "icide", NULL, -2, 2,
    880   "icism", NULL, 0, 0,
    881   "icist", NULL, -1, 0,
    882   "icity", NULL, -3, 3,
    883   "idine", I, 0, 1,
    884   "iedly", NULL, 0, 0,
    885   "ihood", NULL, -2, 2,
    886   "inate", NULL, 0, 0,
    887   "iness", NULL, -1, 0,
    888   "ingly", B, -6, 6,
    889   "inism", J, 0, 1,
    890   "inity", CC, 0, 0,
    891   "ional", NULL, -2, 2,
    892   "ioned", NULL, 0, 0,
    893   "ished", NULL, -1, 0,
    894   "istic", NULL, -3, 3,
    895   "ities", NULL, 0, 1,
    896   "itous", NULL, 0, 0,
    897   "ively", NULL, -2, 2,
    898   "ivity", NULL, 0, 0,
    899   "izers", F, -1, 1,
    900   "izing", F, 0, 0,
    901 
    902   "ialist", NULL, 0, 0,
    903   "iality", NULL, -1, 1,
    904   "ialize", NULL, 0, 0,
    905   "ically", NULL, -2, 2,
    906   "icance", NULL, 0, 0,
    907   "icians", NULL, -1, 1,
    908   "icists", NULL, 0, 0,
    909   "ifully", NULL, -4, 4,
    910   "ionals", NULL, 0, 0,
    911   "ionate", D, -1, 1,
    912   "ioning", NULL, 0, 0,
    913   "ionist", NULL, -2, 2,
    914   "iously", NULL, 0, 0,
    915   "istics", NULL, -1, 1,
    916   "izable", E, 0, 0,
    917 
    918   "ibility", NULL, 0, 0,
    919   "icalism", NULL, -1, 1,
    920   "icalist", NULL, 0, 1,
    921   "icality", NULL, 0, 0,
    922   "icalize", NULL, -3, 3,
    923   "ication", G, 0, 0,
    924   "icianry", NULL, -1, 0,
    925   "ination", NULL, -1, 1,
    926   "ingness", NULL, 0, 0,
    927   "ionally", NULL, -5, 5,
    928   "isation", NULL, 0, 0,
    929   "ishness", NULL, -1, 1,
    930   "istical", NULL, 0, 1,
    931   "iteness", NULL, 0, 0,
    932   "iveness", NULL, -3, 3,
    933   "ivistic", NULL, 0, 0,
    934   "ivities", NULL, -1, 0,
    935   "ization", F, -1, 1,
    936   "izement", NULL, 0, 0,
    937 
    938   "ibleness", NULL, 0, 0,
    939   "icalness", NULL, -1, 1,
    940   "ionalism", NULL, 0, 0,
    941   "ionality", NULL, -2, 2,
    942   "ionalize", NULL, 0, 0,
    943   "iousness", NULL, -1, 1,
    944   "izations", NULL, 0, 0,
    945 
    946   "ionalness", NULL, 0, 1,
    947   "istically", NULL, 0, 0,
    948   "itousness", NULL, -2, 2,
    949   "izability", NULL, 0, 0,
    950   "izational", NULL, -1, 0,
    951 
    952   "izationally", B, 0, 0,
    953 
    954   "ly", B, 0, 0,
    955 
    956   "less", NULL, 0, 1,
    957   "lily", NULL, 0, 0,
    958 
    959   "lessly", NULL, 0, 0,
    960 
    961   "lessness", NULL, 0, 0,
    962 
    963   "ness", NULL, 0, 0,
    964 
    965   "nesses", NULL, 0, 0,
    966 
    967   "o", NULL, 0, 0,
    968 
    969   "on", S, 0, 1,
    970   "or", T, 0, 0,
    971 
    972   "oid", NULL, 0, 0,
    973   "one", R, -1, 1,
    974   "ous", NULL, 0, 0,
    975 
    976   "ogen", NULL, 0, 0,
    977 
    978   "oidal", NULL, 0, 0,
    979   "oides", NULL, -1, 2,
    980   "otide", NULL, 0, 0,
    981   "ously", NULL, -1, 0,
    982 
    983   "oidism", NULL, 0, 0,
    984 
    985   "oidally", NULL, 0, 1,
    986   "ousness", NULL, 0, 0,
    987 
    988   "s", W, 0, 0,
    989 
    990   "s'", NULL, 0, 0,
    991 
    992   "um", U, 0, 1,
    993   "us", V, 0, 0,
    994 
    995   "ward", NULL, 0, 1,
    996   "wise", NULL, 0, 0,
    997 
    998   "y", B, 0, 0,
    999 
    1000   "yl", R, 0, 0,
    1001 
    1002   "ying", B, 0, 1,
    1003   "yish", NULL, 0, 0,
    1004 
    1005   "'s", NULL, 0, 0,
     657  {(char*)"a", NULL, 0, 0},
     658
     659  {(char*)"ae", NULL, 0, 0},
     660  {(char*)"al", BB, -1, 2},
     661  {(char*)"ar", X, 0, 0},
     662  {(char*)"as", B, -1, 0},
     663
     664  {(char*)"acy", NULL, 0, 1},
     665  {(char*)"age", B, 0, 0},
     666  {(char*)"aic", NULL, -2, 1},
     667  {(char*)"als", BB, 0, 0},
     668  {(char*)"ant", B, -2, 2},
     669  {(char*)"ars", O, 0, 0},
     670  {(char*)"ary", F, -1, 2},
     671  {(char*)"ata", NULL, 0, 0},
     672  {(char*)"ate", NULL, -1, 0},
     673
     674  {(char*)"able", NULL, 0, 1},
     675  {(char*)"ably", NULL, 0, 0},
     676  {(char*)"ages", B, -2, 2},
     677  {(char*)"ally", B, 0, 0},
     678  {(char*)"ance", B, -1, 1},
     679  {(char*)"ancy", B, 0, 0},
     680  {(char*)"ants", B, -4, 4},
     681  {(char*)"aric", NULL, 0, 0},
     682  {(char*)"arly", K, -1, 1},
     683  {(char*)"ated", I, 0, 0},
     684  {(char*)"ates", NULL, -2, 2},
     685  {(char*)"atic", B, 0, 0},
     686  {(char*)"ator", NULL, -1, 0},
     687
     688  {(char*)"acies", NULL, 0, 0},
     689  {(char*)"acity", NULL, -1, 1},
     690  {(char*)"aging", B, 0, 0},
     691  {(char*)"aical", NULL, -2, 2},
     692  {(char*)"alist", NULL, 0, 0},
     693  {(char*)"alism", B, -1, 0},
     694  {(char*)"ality", NULL, -3, 3},
     695  {(char*)"alize", NULL, 0, 1},
     696  {(char*)"allic", BB, 0, 0},
     697  {(char*)"anced", B, -2, 2},
     698  {(char*)"ances", B, 0, 0},
     699  {(char*)"antic", C, -1, 0},
     700  {(char*)"arial", NULL, -6, 6},
     701  {(char*)"aries", NULL, 0, 1},
     702  {(char*)"arily", NULL, 0, 0},
     703  {(char*)"arity", B, -2, 2},
     704  {(char*)"arize", NULL, 0, 0},
     705  {(char*)"aroid", NULL, -1, 0},
     706  {(char*)"ately", NULL, -3, 3},
     707  {(char*)"ating", I, 0, 1},
     708  {(char*)"ation", B, 0, 0},
     709  {(char*)"ative", NULL, -2, 2},
     710  {(char*)"ators", NULL, 0, 0},
     711  {(char*)"atory", NULL, -1, 1},
     712  {(char*)"ature", E, 0, 0},
     713
     714  {(char*)"aceous", NULL, 0, 1},
     715  {(char*)"acious", B, 0, 0},
     716  {(char*)"action", G, -2, 2},
     717  {(char*)"alness", NULL, 0, 0},
     718  {(char*)"ancial", NULL, -1, 1},
     719  {(char*)"ancies", NULL, 0, 0},
     720  {(char*)"ancing", B, -4, 4},
     721  {(char*)"ariser", NULL, 0, 0},
     722  {(char*)"arized", NULL, -1, 1},
     723  {(char*)"arizer", NULL, 0, 0},
     724  {(char*)"atable", NULL, -2, 2},
     725  {(char*)"ations", B, 0, 0},
     726  {(char*)"atives", NULL, -1, 0},
     727
     728  {(char*)"ability", NULL, 0, 1},
     729  {(char*)"aically", NULL, 0, 0},
     730  {(char*)"alistic", B, -2, 2},
     731  {(char*)"alities", NULL, 0, 0},
     732  {(char*)"ariness", E, -1, 0},
     733  {(char*)"aristic", NULL, -3, 3},
     734  {(char*)"arizing", NULL, 0, 1},
     735  {(char*)"ateness", NULL, 0, 0},
     736  {(char*)"atingly", NULL, -2, 2},
     737  {(char*)"ational", B, 0, 0},
     738  {(char*)"atively", NULL, -1, 1},
     739  {(char*)"ativism", NULL, 0, 0},
     740
     741  {(char*)"ableness", NULL, 0, 1},
     742  {(char*)"arizable", NULL, 0, 0},
     743
     744  {(char*)"allically", C, 0, 0},
     745  {(char*)"antaneous", NULL, -1, 1},
     746  {(char*)"antiality", NULL, 0, 0},
     747  {(char*)"arisation", NULL, -2, 2},
     748  {(char*)"arization", NULL, 0, 0},
     749  {(char*)"ationally", B, -1, 1},
     750  {(char*)"ativeness", NULL, 0, 0},
     751
     752  {(char*)"antialness", NULL, 0, 0},
     753  {(char*)"arisations", NULL, -1, 1},
     754  {(char*)"arizations", NULL, 0, 0},
     755
     756  {(char*)"alistically", B, 0, 1},
     757  {(char*)"arizability", NULL, 0, 0},
     758
     759  {(char*)"e", NULL, 0, 0},
     760
     761  {(char*)"ed", E, 0, 0},
     762  {(char*)"en", F, -1, 1},
     763  {(char*)"es", E, 0, 0},
     764
     765  {(char*)"eal", Y, 0, 0},
     766  {(char*)"ear", Y, -1, 1},
     767  {(char*)"ely", E, 0, 0},
     768  {(char*)"ene", E, -2, 2},
     769  {(char*)"ent", C, 0, 0},
     770  {(char*)"ery", E, -1, 1},
     771  {(char*)"ese", NULL, 0, 0},
     772
     773  {(char*)"ealy", Y, 0, 1},
     774  {(char*)"edly", E, 0, 0},
     775  {(char*)"eful", NULL, -2, 1},
     776  {(char*)"eity", NULL, 0, 0},
     777  {(char*)"ence", NULL, -2, 2},
     778  {(char*)"ency", NULL, 0, 0},
     779  {(char*)"ened", E, -1, 2},
     780  {(char*)"enly", E, 0, 0},
     781  {(char*)"eous", NULL, -1, 0},
     782
     783  {(char*)"early", Y, 0, 1},
     784  {(char*)"ehood", NULL, 0, 0},
     785  {(char*)"eless", NULL, -2, 2},
     786  {(char*)"elity", NULL, 0, 0},
     787  {(char*)"ement", NULL, -1, 0},
     788  {(char*)"enced", NULL, -3, 3},
     789  {(char*)"ences", NULL, 0, 1},
     790  {(char*)"eness", E, 0, 0},
     791  {(char*)"ening", E, -2, 2},
     792  {(char*)"ental", NULL, 0, 0},
     793  {(char*)"ented", C, -1, 1},
     794  {(char*)"ently", NULL, 0, 0},
     795
     796  {(char*)"eature", Z, 0, 0},
     797  {(char*)"efully", NULL, -1, 1},
     798  {(char*)"encies", NULL, 0, 0},
     799  {(char*)"encing", NULL, -2, 2},
     800  {(char*)"ential", NULL, 0, 0},
     801  {(char*)"enting", C, -1, 1},
     802  {(char*)"entist", NULL, 0, 1},
     803  {(char*)"eously", NULL, 0, 0},
     804
     805  {(char*)"elihood", E, 0, 1},
     806  {(char*)"encible", NULL, 0, 0},
     807  {(char*)"entally", NULL, -2, 2},
     808  {(char*)"entials", NULL, 0, 0},
     809  {(char*)"entiate", NULL, -1, 1},
     810  {(char*)"entness", NULL, 0, 0},
     811
     812  {(char*)"entation", NULL, 0, 0},
     813  {(char*)"entially", NULL, -1, 1},
     814  {(char*)"eousness", NULL, 0, 0},
     815
     816  {(char*)"eableness", E, 0, 1},
     817  {(char*)"entations", NULL, 0, 0},
     818  {(char*)"entiality", NULL, -2, 2},
     819  {(char*)"entialize", NULL, 0, 0},
     820  {(char*)"entiation", NULL, -1, 0},
     821
     822  {(char*)"entialness", NULL, 0, 0},
     823
     824  {(char*)"ful", NULL, 0, 0},
     825
     826  {(char*)"fully", NULL, 0, 0},
     827
     828  {(char*)"fulness", NULL, 0, 0},
     829
     830  {(char*)"hood", NULL, 0, 0},
     831
     832  {(char*)"i", NULL, 0, 0},
     833
     834  {(char*)"ia", NULL, 0, 0},
     835  {(char*)"ic", NULL, -1, 1},
     836  {(char*)"is", NULL, 0, 0},
     837
     838  {(char*)"ial", NULL, 0, 0},
     839  {(char*)"ian", NULL, -1, 1},
     840  {(char*)"ics", NULL, 0, 1},
     841  {(char*)"ide", L, 0, 0},
     842  {(char*)"ied", NULL, -3, 3},
     843  {(char*)"ier", NULL, 0, 0},
     844  {(char*)"ies", P, -1, 0},
     845  {(char*)"ily", NULL, -1, 1},
     846  {(char*)"ine", M, 0, 0},
     847  {(char*)"ing", N, -5, 5},
     848  {(char*)"ion", Q, 0, 0},
     849  {(char*)"ish", C, -1, 1},
     850  {(char*)"ism", B, 0, 1},
     851  {(char*)"ist", NULL, 0, 0},
     852  {(char*)"ite", AA, -3, 3},
     853  {(char*)"ity", NULL, 0, 0},
     854  {(char*)"ium", NULL, -1, 0},
     855  {(char*)"ive", NULL, -1, 1},
     856  {(char*)"ize", F, 0, 0},
     857
     858  {(char*)"ials", NULL, 0, 0},
     859  {(char*)"ians", NULL, -1, 0},
     860  {(char*)"ible", NULL, -1, 1},
     861  {(char*)"ibly", NULL, 0, 0},
     862  {(char*)"ical", NULL, -2, 2},
     863  {(char*)"ides", L, 0, 0},
     864  {(char*)"iers", NULL, -1, 1},
     865  {(char*)"iful", NULL, 0, 0},
     866  {(char*)"ines", M, -4, 4},
     867  {(char*)"ings", N, 0, 0},
     868  {(char*)"ions", B, -1, 1},
     869  {(char*)"ious", NULL, 0, 0},
     870  {(char*)"isms", B, -2, 2},
     871  {(char*)"ists", NULL, 0, 0},
     872  {(char*)"itic", H, -1, 1},
     873  {(char*)"ized", F, 0, 1},
     874  {(char*)"izer", F, 0, 0},
     875
     876  {(char*)"ially", NULL, 0, 0},
     877  {(char*)"icant", NULL, -1, 1},
     878  {(char*)"ician", NULL, 0, 0},
     879  {(char*)"icide", NULL, -2, 2},
     880  {(char*)"icism", NULL, 0, 0},
     881  {(char*)"icist", NULL, -1, 0},
     882  {(char*)"icity", NULL, -3, 3},
     883  {(char*)"idine", I, 0, 1},
     884  {(char*)"iedly", NULL, 0, 0},
     885  {(char*)"ihood", NULL, -2, 2},
     886  {(char*)"inate", NULL, 0, 0},
     887  {(char*)"iness", NULL, -1, 0},
     888  {(char*)"ingly", B, -6, 6},
     889  {(char*)"inism", J, 0, 1},
     890  {(char*)"inity", CC, 0, 0},
     891  {(char*)"ional", NULL, -2, 2},
     892  {(char*)"ioned", NULL, 0, 0},
     893  {(char*)"ished", NULL, -1, 0},
     894  {(char*)"istic", NULL, -3, 3},
     895  {(char*)"ities", NULL, 0, 1},
     896  {(char*)"itous", NULL, 0, 0},
     897  {(char*)"ively", NULL, -2, 2},
     898  {(char*)"ivity", NULL, 0, 0},
     899  {(char*)"izers", F, -1, 1},
     900  {(char*)"izing", F, 0, 0},
     901
     902  {(char*)"ialist", NULL, 0, 0},
     903  {(char*)"iality", NULL, -1, 1},
     904  {(char*)"ialize", NULL, 0, 0},
     905  {(char*)"ically", NULL, -2, 2},
     906  {(char*)"icance", NULL, 0, 0},
     907  {(char*)"icians", NULL, -1, 1},
     908  {(char*)"icists", NULL, 0, 0},
     909  {(char*)"ifully", NULL, -4, 4},
     910  {(char*)"ionals", NULL, 0, 0},
     911  {(char*)"ionate", D, -1, 1},
     912  {(char*)"ioning", NULL, 0, 0},
     913  {(char*)"ionist", NULL, -2, 2},
     914  {(char*)"iously", NULL, 0, 0},
     915  {(char*)"istics", NULL, -1, 1},
     916  {(char*)"izable", E, 0, 0},
     917
     918  {(char*)"ibility", NULL, 0, 0},
     919  {(char*)"icalism", NULL, -1, 1},
     920  {(char*)"icalist", NULL, 0, 1},
     921  {(char*)"icality", NULL, 0, 0},
     922  {(char*)"icalize", NULL, -3, 3},
     923  {(char*)"ication", G, 0, 0},
     924  {(char*)"icianry", NULL, -1, 0},
     925  {(char*)"ination", NULL, -1, 1},
     926  {(char*)"ingness", NULL, 0, 0},
     927  {(char*)"ionally", NULL, -5, 5},
     928  {(char*)"isation", NULL, 0, 0},
     929  {(char*)"ishness", NULL, -1, 1},
     930  {(char*)"istical", NULL, 0, 1},
     931  {(char*)"iteness", NULL, 0, 0},
     932  {(char*)"iveness", NULL, -3, 3},
     933  {(char*)"ivistic", NULL, 0, 0},
     934  {(char*)"ivities", NULL, -1, 0},
     935  {(char*)"ization", F, -1, 1},
     936  {(char*)"izement", NULL, 0, 0},
     937
     938  {(char*)"ibleness", NULL, 0, 0},
     939  {(char*)"icalness", NULL, -1, 1},
     940  {(char*)"ionalism", NULL, 0, 0},
     941  {(char*)"ionality", NULL, -2, 2},
     942  {(char*)"ionalize", NULL, 0, 0},
     943  {(char*)"iousness", NULL, -1, 1},
     944  {(char*)"izations", NULL, 0, 0},
     945
     946  {(char*)"ionalness", NULL, 0, 1},
     947  {(char*)"istically", NULL, 0, 0},
     948  {(char*)"itousness", NULL, -2, 2},
     949  {(char*)"izability", NULL, 0, 0},
     950  {(char*)"izational", NULL, -1, 0},
     951
     952  {(char*)"izationally", B, 0, 0},
     953
     954  {(char*)"ly", B, 0, 0},
     955
     956  {(char*)"less", NULL, 0, 1},
     957  {(char*)"lily", NULL, 0, 0},
     958
     959  {(char*)"lessly", NULL, 0, 0},
     960
     961  {(char*)"lessness", NULL, 0, 0},
     962
     963  {(char*)"ness", NULL, 0, 0},
     964
     965  {(char*)"nesses", NULL, 0, 0},
     966
     967  {(char*)"o", NULL, 0, 0},
     968
     969  {(char*)"on", S, 0, 1},
     970  {(char*)"or", T, 0, 0},
     971
     972  {(char*)"oid", NULL, 0, 0},
     973  {(char*)"one", R, -1, 1},
     974  {(char*)"ous", NULL, 0, 0},
     975
     976  {(char*)"ogen", NULL, 0, 0},
     977
     978  {(char*)"oidal", NULL, 0, 0},
     979  {(char*)"oides", NULL, -1, 2},
     980  {(char*)"otide", NULL, 0, 0},
     981  {(char*)"ously", NULL, -1, 0},
     982
     983  {(char*)"oidism", NULL, 0, 0},
     984
     985  {(char*)"oidally", NULL, 0, 1},
     986  {(char*)"ousness", NULL, 0, 0},
     987
     988  {(char*)"s", W, 0, 0},
     989
     990  {(char*)"s'", NULL, 0, 0},
     991
     992  {(char*)"um", U, 0, 1},
     993  {(char*)"us", V, 0, 0},
     994
     995  {(char*)"ward", NULL, 0, 1},
     996  {(char*)"wise", NULL, 0, 0},
     997
     998  {(char*)"y", B, 0, 0},
     999
     1000  {(char*)"yl", R, 0, 0},
     1001
     1002  {(char*)"ying", B, 0, 1},
     1003  {(char*)"yish", NULL, 0, 0},
     1004
     1005  {(char*)"'s", NULL, 0, 0},
    10061006};
    10071007
     
    10171017static First_Char_Node First[] =
    10181018{
    1019   '\'', NULL, NULL,
     1019  {'\'', NULL, NULL,
    10201020  {NULL,
    10211021   List + 293, NULL, NULL, NULL, NULL,
    1022    NULL, NULL, NULL, NULL, NULL},
    1023 
    1024   'a', First, NULL,
     1022   NULL, NULL, NULL, NULL, NULL}},
     1023
     1024  {'a', First, NULL,
    10251025  {List,
    10261026   List + 2, List + 9, List + 20, List + 39, List + 58,
    1027    List + 70, List + 77, List + 82, List + 87, List + 89},
    1028 
    1029   'e', First + 1, First + 4,
     1027   List + 70, List + 77, List + 82, List + 87, List + 89}},
     1028
     1029  {'e', First + 1, First + 4,
    10301030  {List + 91,
    10311031   List + 93, List + 98, List + 106, List + 116, List + 126,
    1032    List + 133, List + 138, List + 142, List + 145, NULL},
    1033 
    1034   'f', NULL, NULL,
     1032   List + 133, List + 138, List + 142, List + 145, NULL}},
     1033
     1034  {'f', NULL, NULL,
    10351035  {NULL,
    10361036   NULL, List + 146, NULL, List + 147, NULL,
    1037    List + 148, NULL, NULL, NULL, NULL},
    1038 
    1039   'h', First + 3, First + 5,
     1037   List + 148, NULL, NULL, NULL, NULL}},
     1038
     1039  {'h', First + 3, First + 5,
    10401040  {NULL,
    10411041   NULL, NULL, List + 149, NULL, NULL,
    1042    NULL, NULL, NULL, NULL, NULL},
    1043 
    1044   'i', NULL, NULL,
     1042   NULL, NULL, NULL, NULL, NULL}},
     1043
     1044  {'i', NULL, NULL,
    10451045  {List + 150,
    10461046   List + 152, List + 163, List + 181, List + 202, List + 222,
    1047    List + 239, List + 252, List + 258, NULL, List + 261},
    1048 
    1049   'l', First + 2, First + 10,
     1047   List + 239, List + 252, List + 258, NULL, List + 261}},
     1048
     1049  {'l', First + 2, First + 10,
    10501050  {NULL,
    10511051   List + 262, NULL, List + 263, NULL, List + 265,
    1052    NULL, List + 266, NULL, NULL, NULL},
    1053 
    1054   'n', NULL, NULL,
     1052   NULL, List + 266, NULL, NULL, NULL}},
     1053
     1054  {'n', NULL, NULL,
    10551055  {NULL,
    10561056   NULL, NULL, List + 267, NULL, List + 268,
    1057    NULL, NULL, NULL, NULL, NULL},
    1058 
    1059   'o', First + 7, First + 9,
     1057   NULL, NULL, NULL, NULL, NULL}},
     1058
     1059  {'o', First + 7, First + 9,
    10601060  {List + 269,
    10611061   List + 270, List + 273, List + 275, List + 277, List + 280,
    1062    List + 281, NULL, NULL, NULL, NULL},
    1063 
    1064   's', NULL, NULL,
     1062   List + 281, NULL, NULL, NULL, NULL}},
     1063
     1064  {'s', NULL, NULL,
    10651065  {List + 283,
    10661066   List + 284, NULL, NULL, NULL, NULL,
    1067    NULL, NULL, NULL, NULL, NULL},
    1068 
    1069   'u', First + 8, First + 12,
     1067   NULL, NULL, NULL, NULL, NULL}},
     1068
     1069  {'u', First + 8, First + 12,
    10701070  {NULL,
    10711071   List + 285, NULL, NULL, NULL, NULL,
    1072    NULL, NULL, NULL, NULL, NULL},
    1073 
    1074   'w', NULL, NULL,
     1072   NULL, NULL, NULL, NULL, NULL}},
     1073
     1074  {'w', NULL, NULL,
    10751075  {NULL,
    10761076   NULL, NULL, List + 287, NULL, NULL,
    1077    NULL, NULL, NULL, NULL, NULL},
    1078 
    1079   'y', First + 11, NULL,
     1077   NULL, NULL, NULL, NULL, NULL}},
     1078
     1079  {'y', First + 11, NULL,
    10801080  {List + 289,
    10811081   List + 290, NULL, List + 291, NULL, NULL,
    1082    NULL, NULL, NULL, NULL, NULL},
     1082   NULL, NULL, NULL, NULL, NULL}},
    10831083};
    10841084
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/messages.cpp

    r16583 r25147  
    2525#include "messages.h"
    2626
    27 char *msg_prefix = "";
     27char *msg_prefix = (char*)"";
    2828
    2929
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/netorder.h

    r22257 r25147  
    1616#define HTOND(d)                                                              \
    1717        do {                                                                  \
    18              unsigned long tmph, tmpl;                                        \
     18             mg_u_long tmph, tmpl;                                        \
    1919         memcpy ((void *) &tmph, (const void *) &d, sizeof(double) >> 1); \
    20          memcpy ((void *) &tmpl, (const void *) ((unsigned int) &d + (sizeof(double) >> 1)), sizeof (double) >> 1);   \
     20         memcpy ((void *) &tmpl, (const void *) ((unsigned char*) &d + (sizeof(double) >> 1)), sizeof (double) >> 1);   \
    2121         tmph = htonl (tmph);                                             \
    2222         tmpl = htonl (tmpl);                                             \
    2323         memcpy ( (void *) &d, (const void *) &tmpl, sizeof (double) >> 1);                           \
    24          memcpy ((void *) ((unsigned int) &d + (sizeof(double) >> 1)), (const void *) &tmph, sizeof (double) >> 1);   \
     24         memcpy ((void *) ((unsigned char*) &d + (sizeof(double) >> 1)), (const void *) &tmph, sizeof (double) >> 1);   \
    2525    }while(0)
    2626#define NTOHD(d)                                                              \
    2727        do {                                                                  \
    28              unsigned long tmph, tmpl;                                        \
     28             mg_u_long tmph, tmpl;                                        \
    2929         memcpy ((void *) &tmph, (const void *) &d, sizeof(double) >> 1); \
    30          memcpy ((void *) &tmpl, (const void *) ((int) &d + (sizeof(double) >> 1)), sizeof (double) >> 1);   \
     30         memcpy ((void *) &tmpl, (const void *) ((unsigned char*) &d + (sizeof(double) >> 1)), sizeof (double) >> 1);   \
    3131         tmph = ntohl (tmph);                                             \
    3232         tmpl = ntohl (tmpl);                                             \
    3333         memcpy((void *) &d, (const void *) &tmpl, sizeof (double) >> 1); \
    34          memcpy ((void *) ((int) &d + (sizeof(double) >> 1)), (const void *) &tmph, sizeof (double) >> 1);   \
     34         memcpy ((void *) ((unsigned char*) &d + (sizeof(double) >> 1)), (const void *) &tmph, sizeof (double) >> 1);   \
    3535        }while(0)
    3636#define HTOND2(hd, nd)                                                        \
    3737        do {                                                                  \
    38              unsigned long tmph, tmpl;                                        \
     38             mg_u_long tmph, tmpl;                                        \
    3939         memcpy ((void *) &tmph, (const void *) &hd, sizeof(double) >> 1);\
    4040         memcpy ((void *) &tmpl, (const void *) ((unsigned int) &hd + (sizeof(double) >> 1)), sizeof (double) >> 1);  \
     
    4646#define NTOHD2(nd, hd)                                                        \
    4747        do {                                                                  \
    48              unsigned long tmph, tmpl;                                        \
     48             mg_u_long tmph, tmpl;                                        \
    4949         memcpy ((void *) &nd, (void *) &tmph, sizeof(double) >> 1);      \
    5050         memcpy ((void *) &tmpl, (const void *) &nd + (sizeof(double) >> 1), sizeof (double) >> 1);  \
     
    5858#define HTONF(f)                                                              \
    5959        do {                                                                  \
    60              unsigned long tmp;                                               \
     60             mg_u_long tmp;                                               \
    6161             memcpy ((void *) &tmp, (const void *) &(f), sizeof (float));     \
    6262             HTONUL (tmp);                                                    \
     
    6565#define NTOHF(f)                                                              \
    6666        do {                                                                  \
    67              unsigned long tmp;                                               \
     67             mg_u_long tmp;                                               \
    6868             memcpy ((void *) &tmp, (const void *) &(f), sizeof (float));     \
    6969         NTOHUL (tmp);                                                    \
     
    7272#define HTONF2(hf, nf)                                                        \
    7373        do {                                                                  \
    74              unsigned long tmp;                                               \
     74             mg_u_long tmp;                                               \
    7575             memcpy ((void *) &tmp, (const void *) &(hf), sizeof (float));    \
    7676             HTONUL (tmp);                                                    \
     
    7979#define NTOHF2(nf, hf)                                                        \
    8080        do {                                                                  \
    81              unsigned long tmp;                                               \
     81             mg_u_long tmp;                                               \
    8282             memcpy ((void *) &tmp, (const void *) &(nf), sizeof (float));    \
    8383         NTOHUL (tmp);                                                    \
     
    114114
    115115/* pointers */
    116 #define HTONP(p)          ((p) = (void *) htonl ((unsigned long) p))
    117 #define NTOHP(p)          ((p) = (void *) ntohl ((unsigned long) p))
    118 #define HTONP2(hp, np)    ((np) = (void *) htonl ((unsigned long) hp))
    119 #define NTOHP2(np, hp)    ((hp) = (void *) ntohl ((unsigned long) np))
     116#define HTONP(p)          ((p) = (void *) htonl ((mg_u_long) p))
     117#define NTOHP(p)          ((p) = (void *) ntohl ((mg_u_long) p))
     118#define HTONP2(hp, np)    ((np) = (void *) htonl ((mg_u_long) hp))
     119#define NTOHP2(np, hp)    ((hp) = (void *) ntohl ((mg_u_long) np))
    120120
    121121/* unsigned long */
     
    126126
    127127/* signed long */
    128 #define HTONSL(l)         ((l) = (long) htonl ((unsigned long) (l)))
    129 #define NTOHSL(l)         ((l) = (long) ntohl ((unsigned long) (l)))
    130 #define HTONSL2(hl, nl)   ((nl) = (long) htonl ((unsigned long) (hl)))
    131 #define NTOHSL2(nl, hl)   ((hl) = (long) ntohl ((unsigned long) (nl)))
     128#define HTONSL(l)         ((l) = (mg_s_long) htonl ((mg_u_long) (l)))
     129#define NTOHSL(l)         ((l) = (mg_s_long) ntohl ((mg_u_long) (l)))
     130#define HTONSL2(hl, nl)   ((nl) = (mg_s_long) htonl ((mg_u_long) (hl)))
     131#define NTOHSL2(nl, hl)   ((hl) = (mg_s_long) ntohl ((mg_u_long) (nl)))
    132132
    133133/* unsigned int */
    134 #define HTONUI(i)         ((i) = (unsigned int) htonl ((unsigned long) (i)))
    135 #define NTOHUI(i)         ((i) = (unsigned int) ntohl ((unsigned long) (i)))
    136 #define HTONUI2(hi, ni)   ((ni) = (unsigned int) htonl ((unsigned long) (hi)))
    137 #define NTOHUI2(ni, hi)   ((hi) = (unsigned int) ntohl ((unsigned long) (ni)))
     134#define HTONUI(i)         ((i) = (unsigned int) htonl ((mg_u_long) (i)))
     135#define NTOHUI(i)         ((i) = (unsigned int) ntohl ((mg_u_long) (i)))
     136#define HTONUI2(hi, ni)   ((ni) = (unsigned int) htonl ((mg_u_long) (hi)))
     137#define NTOHUI2(ni, hi)   ((hi) = (unsigned int) ntohl ((mg_u_long) (ni)))
    138138
    139139/* signed int */
    140 #define HTONSI(i)         ((i) = (int) htonl ((unsigned long) (i)))
    141 #define NTOHSI(i)         ((i) = (int) ntohl ((unsigned long) (i)))
    142 #define HTONSI2(hi, ni)   ((ni) = (int) htonl ((unsigned long) (hi)))
    143 #define NTOHSI2(ni, hi)   ((hi) = (int) ntohl ((unsigned long) (ni)))
     140#define HTONSI(i)         ((i) = (int) htonl ((mg_u_long) (i)))
     141#define NTOHSI(i)         ((i) = (int) ntohl ((mg_u_long) (i)))
     142#define HTONSI2(hi, ni)   ((ni) = (int) htonl ((mg_u_long) (hi)))
     143#define NTOHSI2(ni, hi)   ((hi) = (int) ntohl ((mg_u_long) (ni)))
    144144
    145145/* unsigned short */
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/non_ansi.h

    r16583 r25147  
    33
    44#include "config.h"
     5#include "mglong.h"
    56# if !defined(__STDC__)
    67
     
    1112
    1213int fileno(FILE *);
    13 int ftruncate(int, long);
     14int ftruncate(int, mg_s_long);
    1415int pclose(FILE *);
    1516FILE *popen(const char *command, const char *type);
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/perf_hash.cpp

    r16583 r25147  
    4444/* Random Number stuff */
    4545
    46 long irandm (long is[2]);  /* from random.c */
    47 
    48 static long seed[] = {0, 0};
     46mg_s_long irandm (mg_s_long is[2]);  /* from random.c */
     47
     48static mg_s_long seed[] = {0, 0};
    4949#define RANDOM() irandm(seed)
    5050#define SEED_RANDOM(the_seed) do{ seed[0] = the_seed; }while(0)
     
    107107
    108108#ifndef STRUCT
    109 static long **tb0, **tb1, **tb2;
     109static mg_s_long **tb0, **tb1, **tb2;
    110110#else
    111111struct tb_entry **tb;
     
    700700    {
    701701      if (tb0)
    702     if (!(tb0[i] = Xmalloc (sizeof (long) * MAX_L)))
     702    if (!(tb0[i] = Xmalloc (sizeof (mg_s_long) * MAX_L)))
    703703        ok = 0;
    704704      if (tb1)
    705     if (!(tb1[i] = Xmalloc (sizeof (long) * MAX_L)))
     705    if (!(tb1[i] = Xmalloc (sizeof (mg_s_long) * MAX_L)))
    706706        ok = 0;
    707707      if (tb2)
    708     if (!(tb2[i] = Xmalloc (sizeof (long) * MAX_L)))
     708    if (!(tb2[i] = Xmalloc (sizeof (mg_s_long) * MAX_L)))
    709709        ok = 0;
    710710    }
     
    744744
    745745  if (r <= 0)
    746     SEED_RANDOM ((long) time ((time_t *) NULL));
     746    SEED_RANDOM ((mg_s_long) time ((time_t *) NULL));
    747747  else
    748748    SEED_RANDOM (r);
     
    902902    {
    903903      if (phd->tb0)
    904     if (!(phd->tb0[i] = Xmalloc (sizeof (long) * phd->MAX_L)))
     904    if (!(phd->tb0[i] = Xmalloc (sizeof (mg_s_long) * phd->MAX_L)))
    905905        ok = 0;
    906906      if (phd->tb1)
    907     if (!(phd->tb1[i] = Xmalloc (sizeof (long) * phd->MAX_L)))
     907    if (!(phd->tb1[i] = Xmalloc (sizeof (mg_s_long) * phd->MAX_L)))
    908908        ok = 0;
    909909      if (phd->tb2)
    910     if (!(phd->tb2[i] = Xmalloc (sizeof (long) * phd->MAX_L)))
     910    if (!(phd->tb2[i] = Xmalloc (sizeof (mg_s_long) * phd->MAX_L)))
    911911        ok = 0;
    912912    }
     
    946946      int j;
    947947
    948       tot += fread ((char *) phd->tb0[i], sizeof (long), phd->MAX_L, f) *
     948      tot += fread ((char *) phd->tb0[i], sizeof (mg_s_long), phd->MAX_L, f) *
    949949        sizeof (int);
    950       tot += fread ((char *) phd->tb1[i], sizeof (long), phd->MAX_L, f) *
     950      tot += fread ((char *) phd->tb1[i], sizeof (mg_s_long), phd->MAX_L, f) *
    951951        sizeof (int);
    952       tot += fread ((char *) phd->tb2[i], sizeof (long), phd->MAX_L, f) *
     952      tot += fread ((char *) phd->tb2[i], sizeof (mg_s_long), phd->MAX_L, f) *
    953953        sizeof (int);
    954954
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/perf_hash.h

    r16583 r25147  
    2525struct tb_entry
    2626  {
    27     long tb0, tb1, tb2;
     27    mg_s_long tb0, tb1, tb2;
    2828  };
    2929
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/random.cpp

    r16583 r25147  
    3333 *  The table mt[0:127] is defined by mt[i] = 69069 ** (128-i)
    3434 */
    35 
    36 #define MASK ((long) 593970775)
     35#include "random.h"
     36
     37#define MASK ((mg_s_long) 593970775)
    3738/*  or in hex, 23674657 */
    3839
     
    4041/*  i.e. 2 to power -31 */
    4142
    42 static long mt [128] =   {
     43static mg_s_long mt [128] =   {
    4344      902906369,
    4445     2030498053,
     
    172173
    173174double
    174 random (long is [2])
     175random (mg_s_long is [2])
    175176{
    176     long it, leh, nit;
     177    mg_s_long it, leh, nit;
    177178
    178179    it = is [0];
     
    187188    is [0] = it;    is [1] = leh;
    188189    if (leh < 0) leh = ~leh;
    189     return (SCALE * ((long) (leh | 1)));
     190    return (SCALE * ((mg_s_long) (leh | 1)));
    190191}
    191192
    192193
    193194
    194 long
    195 irandm (long is [2])
     195mg_s_long
     196irandm (mg_s_long is [2])
    196197{
    197     long it, leh, nit;
     198    mg_s_long it, leh, nit;
    198199
    199200    it = is [0];
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/random.h

    r16583 r25147  
    3636 *  The table mt[0:127] is defined by mt[i] = 69069 ** (128-i)
    3737 */
     38#include "mglong.h"
    3839
    39 double random (long is [2]);
    40 long irandm (long is [2]);
     40double random (mg_s_long is [2]);
     41mg_s_long irandm (mg_s_long is [2]);
    4142
    4243#endif
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/sysfuncs.h

    r16583 r25147  
    377377#endif
    378378
    379 /* [RPAP - Feb 97: WIN32 Port] */
    380 #ifndef u_long
    381 # define u_long unsigned long
    382 #endif
     379#include "mglong.h"
     380
    383381#ifndef u_char
    384 # define u_char unsigned char
    385 #endif
    386 
     382# define u_char uint8_t
     383#endif
    387384
    388385#endif /* SYSFUNCS_H */
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/unitool.cpp

    r23424 r25147  
    1515 * column
    1616 */
    17 static unsigned long *unicode_cat_data=NULL;
     17static mg_u_long *unicode_cat_data=NULL;
    1818
    1919
     
    4040#define NUM_DECOMPOSE_INFO 1269
    4141static const unidecompose decompose_info[NUM_DECOMPOSE_INFO] = {
    42   {0xC0,0x41,0x300,0x0}, {0xC1,0x41,0x301,0x0}, {0xC2,0x41,0x302,0x0},
    43   {0xC3,0x41,0x303,0x0}, {0xC4,0x41,0x308,0x0}, {0xC5,0x41,0x30A,0x0},
    44   {0xC7,0x43,0x327,0x0}, {0xC8,0x45,0x300,0x0}, {0xC9,0x45,0x301,0x0},
    45   {0xCA,0x45,0x302,0x0}, {0xCB,0x45,0x308,0x0}, {0xCC,0x49,0x300,0x0},
    46   {0xCD,0x49,0x301,0x0}, {0xCE,0x49,0x302,0x0}, {0xCF,0x49,0x308,0x0},
    47   {0xD1,0x4E,0x303,0x0}, {0xD2,0x4F,0x300,0x0}, {0xD3,0x4F,0x301,0x0},
    48   {0xD4,0x4F,0x302,0x0}, {0xD5,0x4F,0x303,0x0}, {0xD6,0x4F,0x308,0x0},
    49   {0xD9,0x55,0x300,0x0}, {0xDA,0x55,0x301,0x0}, {0xDB,0x55,0x302,0x0},
    50   {0xDC,0x55,0x308,0x0}, {0xDD,0x59,0x301,0x0}, {0xE0,0x61,0x300,0x0},
    51   {0xE1,0x61,0x301,0x0}, {0xE2,0x61,0x302,0x0}, {0xE3,0x61,0x303,0x0},
    52   {0xE4,0x61,0x308,0x0}, {0xE5,0x61,0x30A,0x0}, {0xE7,0x63,0x327,0x0},
    53   {0xE8,0x65,0x300,0x0}, {0xE9,0x65,0x301,0x0}, {0xEA,0x65,0x302,0x0},
    54   {0xEB,0x65,0x308,0x0}, {0xEC,0x69,0x300,0x0}, {0xED,0x69,0x301,0x0},
    55   {0xEE,0x69,0x302,0x0}, {0xEF,0x69,0x308,0x0}, {0xF1,0x6E,0x303,0x0},
    56   {0xF2,0x6F,0x300,0x0}, {0xF3,0x6F,0x301,0x0}, {0xF4,0x6F,0x302,0x0},
    57   {0xF5,0x6F,0x303,0x0}, {0xF6,0x6F,0x308,0x0}, {0xF9,0x75,0x300,0x0},
    58   {0xFA,0x75,0x301,0x0}, {0xFB,0x75,0x302,0x0}, {0xFC,0x75,0x308,0x0},
    59   {0xFD,0x79,0x301,0x0}, {0xFF,0x79,0x308,0x0}, {0x100,0x41,0x304,0x0},
    60   {0x101,0x61,0x304,0x0}, {0x102,0x41,0x306,0x0}, {0x103,0x61,0x306,0x0},
    61   {0x104,0x41,0x328,0x0}, {0x105,0x61,0x328,0x0}, {0x106,0x43,0x301,0x0},
    62   {0x107,0x63,0x301,0x0}, {0x108,0x43,0x302,0x0}, {0x109,0x63,0x302,0x0},
    63   {0x10A,0x43,0x307,0x0}, {0x10B,0x63,0x307,0x0}, {0x10C,0x43,0x30C,0x0},
    64   {0x10D,0x63,0x30C,0x0}, {0x10E,0x44,0x30C,0x0}, {0x10F,0x64,0x30C,0x0},
    65   {0x112,0x45,0x304,0x0}, {0x113,0x65,0x304,0x0}, {0x114,0x45,0x306,0x0},
    66   {0x115,0x65,0x306,0x0}, {0x116,0x45,0x307,0x0}, {0x117,0x65,0x307,0x0},
    67   {0x118,0x45,0x328,0x0}, {0x119,0x65,0x328,0x0}, {0x11A,0x45,0x30C,0x0},
    68   {0x11B,0x65,0x30C,0x0}, {0x11C,0x47,0x302,0x0}, {0x11D,0x67,0x302,0x0},
    69   {0x11E,0x47,0x306,0x0}, {0x11F,0x67,0x306,0x0}, {0x120,0x47,0x307,0x0},
    70   {0x121,0x67,0x307,0x0}, {0x122,0x47,0x327,0x0}, {0x123,0x67,0x327,0x0},
    71   {0x124,0x48,0x302,0x0}, {0x125,0x68,0x302,0x0}, {0x128,0x49,0x303,0x0},
    72   {0x129,0x69,0x303,0x0}, {0x12A,0x49,0x304,0x0}, {0x12B,0x69,0x304,0x0},
    73   {0x12C,0x49,0x306,0x0}, {0x12D,0x69,0x306,0x0}, {0x12E,0x49,0x328,0x0},
    74   {0x12F,0x69,0x328,0x0}, {0x130,0x49,0x307,0x0}, {0x134,0x4A,0x302,0x0},
    75   {0x135,0x6A,0x302,0x0}, {0x136,0x4B,0x327,0x0}, {0x137,0x6B,0x327,0x0},
    76   {0x139,0x4C,0x301,0x0}, {0x13A,0x6C,0x301,0x0}, {0x13B,0x4C,0x327,0x0},
    77   {0x13C,0x6C,0x327,0x0}, {0x13D,0x4C,0x30C,0x0}, {0x13E,0x6C,0x30C,0x0},
    78   {0x143,0x4E,0x301,0x0}, {0x144,0x6E,0x301,0x0}, {0x145,0x4E,0x327,0x0},
    79   {0x146,0x6E,0x327,0x0}, {0x147,0x4E,0x30C,0x0}, {0x148,0x6E,0x30C,0x0},
    80   {0x14C,0x4F,0x304,0x0}, {0x14D,0x6F,0x304,0x0}, {0x14E,0x4F,0x306,0x0},
    81   {0x14F,0x6F,0x306,0x0}, {0x150,0x4F,0x30B,0x0}, {0x151,0x6F,0x30B,0x0},
    82   {0x154,0x52,0x301,0x0}, {0x155,0x72,0x301,0x0}, {0x156,0x52,0x327,0x0},
    83   {0x157,0x72,0x327,0x0}, {0x158,0x52,0x30C,0x0}, {0x159,0x72,0x30C,0x0},
    84   {0x15A,0x53,0x301,0x0}, {0x15B,0x73,0x301,0x0}, {0x15C,0x53,0x302,0x0},
    85   {0x15D,0x73,0x302,0x0}, {0x15E,0x53,0x327,0x0}, {0x15F,0x73,0x327,0x0},
    86   {0x160,0x53,0x30C,0x0}, {0x161,0x73,0x30C,0x0}, {0x162,0x54,0x327,0x0},
    87   {0x163,0x74,0x327,0x0}, {0x164,0x54,0x30C,0x0}, {0x165,0x74,0x30C,0x0},
    88   {0x168,0x55,0x303,0x0}, {0x169,0x75,0x303,0x0}, {0x16A,0x55,0x304,0x0},
    89   {0x16B,0x75,0x304,0x0}, {0x16C,0x55,0x306,0x0}, {0x16D,0x75,0x306,0x0},
    90   {0x16E,0x55,0x30A,0x0}, {0x16F,0x75,0x30A,0x0}, {0x170,0x55,0x30B,0x0},
    91   {0x171,0x75,0x30B,0x0}, {0x172,0x55,0x328,0x0}, {0x173,0x75,0x328,0x0},
    92   {0x174,0x57,0x302,0x0}, {0x175,0x77,0x302,0x0}, {0x176,0x59,0x302,0x0},
    93   {0x177,0x79,0x302,0x0}, {0x178,0x59,0x308,0x0}, {0x179,0x5A,0x301,0x0},
    94   {0x17A,0x7A,0x301,0x0}, {0x17B,0x5A,0x307,0x0}, {0x17C,0x7A,0x307,0x0},
    95   {0x17D,0x5A,0x30C,0x0}, {0x17E,0x7A,0x30C,0x0}, {0x1A0,0x4F,0x31B,0x0},
    96   {0x1A1,0x6F,0x31B,0x0}, {0x1AF,0x55,0x31B,0x0}, {0x1B0,0x75,0x31B,0x0},
    97   {0x1CD,0x41,0x30C,0x0}, {0x1CE,0x61,0x30C,0x0}, {0x1CF,0x49,0x30C,0x0},
    98   {0x1D0,0x69,0x30C,0x0}, {0x1D1,0x4F,0x30C,0x0}, {0x1D2,0x6F,0x30C,0x0},
    99   {0x1D3,0x55,0x30C,0x0}, {0x1D4,0x75,0x30C,0x0}, {0x1D5,0xDC,0x304,0x0},
    100   {0x1D6,0xFC,0x304,0x0}, {0x1D7,0xDC,0x301,0x0}, {0x1D8,0xFC,0x301,0x0},
    101   {0x1D9,0xDC,0x30C,0x0}, {0x1DA,0xFC,0x30C,0x0}, {0x1DB,0xDC,0x300,0x0},
    102   {0x1DC,0xFC,0x300,0x0}, {0x1DE,0xC4,0x304,0x0}, {0x1DF,0xE4,0x304,0x0},
    103   {0x1E0,0x41,0x307,0x304}, {0x1E1,0x61,0x307,0x304}, {0x1E2,0xC6,0x304,0x0},
    104   {0x1E3,0xE6,0x304,0x0}, {0x1E6,0x47,0x30C,0x0}, {0x1E7,0x67,0x30C,0x0},
    105   {0x1E8,0x4B,0x30C,0x0}, {0x1E9,0x6B,0x30C,0x0}, {0x1EA,0x4F,0x328,0x0},
    106   {0x1EB,0x6F,0x328,0x0}, {0x1EC,0x1EA,0x304,0x0}, {0x1ED,0x1EB,0x304,0x0},
    107   {0x1EE,0x1B7,0x30C,0x0}, {0x1EF,0x292,0x30C,0x0}, {0x1F0,0x6A,0x30C,0x0},
    108   {0x1F4,0x47,0x301,0x0}, {0x1F5,0x67,0x301,0x0}, {0x1FA,0xC5,0x301,0x0},
    109   {0x1FB,0xE5,0x301,0x0}, {0x1FC,0xC6,0x301,0x0}, {0x1FD,0xE6,0x301,0x0},
    110   {0x1FE,0xD8,0x301,0x0}, {0x1FF,0xF8,0x301,0x0}, {0x200,0x41,0x30F,0x0},
    111   {0x201,0x61,0x30F,0x0}, {0x202,0x41,0x311,0x0}, {0x203,0x61,0x311,0x0},
    112   {0x204,0x45,0x30F,0x0}, {0x205,0x65,0x30F,0x0}, {0x206,0x45,0x311,0x0},
    113   {0x207,0x65,0x311,0x0}, {0x208,0x49,0x30F,0x0}, {0x209,0x69,0x30F,0x0},
    114   {0x20A,0x49,0x311,0x0}, {0x20B,0x69,0x311,0x0}, {0x20C,0x4F,0x30F,0x0},
    115   {0x20D,0x6F,0x30F,0x0}, {0x20E,0x4F,0x311,0x0}, {0x20F,0x6F,0x311,0x0},
    116   {0x210,0x52,0x30F,0x0}, {0x211,0x72,0x30F,0x0}, {0x212,0x52,0x311,0x0},
    117   {0x213,0x72,0x311,0x0}, {0x214,0x55,0x30F,0x0}, {0x215,0x75,0x30F,0x0},
    118   {0x216,0x55,0x311,0x0}, {0x217,0x75,0x311,0x0}, {0x310,0x306,0x307,0x0},
    119   {0x340,0x300,0x0,0x0}, {0x341,0x301,0x0,0x0}, {0x343,0x313,0x0,0x0},
    120   {0x344,0x308,0x30D,0x0}, {0x374,0x2B9,0x0,0x0}, {0x37E,0x3B,0x0,0x0},
    121   {0x385,0xA8,0x30D,0x0}, {0x386,0x391,0x30D,0x0}, {0x387,0xB7,0x0,0x0},
    122   {0x388,0x395,0x30D,0x0}, {0x389,0x397,0x30D,0x0}, {0x38A,0x399,0x30D,0x0},
    123   {0x38C,0x39F,0x30D,0x0}, {0x38E,0x3A5,0x30D,0x0}, {0x38F,0x3A9,0x30D,0x0},
    124   {0x390,0x3B9,0x344,0x0}, {0x3AA,0x399,0x308,0x0}, {0x3AB,0x3A5,0x308,0x0},
    125   {0x3AC,0x3B1,0x30D,0x0}, {0x3AD,0x3B5,0x30D,0x0}, {0x3AE,0x3B7,0x30D,0x0},
    126   {0x3AF,0x3B9,0x30D,0x0}, {0x3B0,0x3C5,0x344,0x0}, {0x3CA,0x3B9,0x308,0x0},
    127   {0x3CB,0x3C5,0x308,0x0}, {0x3CC,0x3BF,0x30D,0x0}, {0x3CD,0x3C5,0x30D,0x0},
    128   {0x3CE,0x3C9,0x30D,0x0}, {0x3D3,0x3D2,0x30D,0x0}, {0x3D4,0x3D2,0x308,0x0},
    129   {0x401,0x415,0x308,0x0}, {0x403,0x413,0x301,0x0}, {0x407,0x406,0x308,0x0},
    130   {0x40C,0x41A,0x301,0x0}, {0x40E,0x423,0x306,0x0}, {0x419,0x418,0x306,0x0},
    131   {0x439,0x438,0x306,0x0}, {0x451,0x435,0x308,0x0}, {0x453,0x433,0x301,0x0},
    132   {0x457,0x456,0x308,0x0}, {0x45C,0x43A,0x301,0x0}, {0x45E,0x443,0x306,0x0},
    133   {0x476,0x474,0x30F,0x0}, {0x477,0x475,0x30F,0x0}, {0x4C1,0x416,0x306,0x0},
    134   {0x4C2,0x436,0x306,0x0}, {0x4D0,0x410,0x306,0x0}, {0x4D1,0x430,0x306,0x0},
    135   {0x4D2,0x410,0x308,0x0}, {0x4D3,0x430,0x308,0x0}, {0x4D6,0x415,0x306,0x0},
    136   {0x4D7,0x435,0x306,0x0}, {0x4DA,0x4D8,0x308,0x0}, {0x4DB,0x4D9,0x308,0x0},
    137   {0x4DC,0x416,0x308,0x0}, {0x4DD,0x436,0x308,0x0}, {0x4DE,0x417,0x308,0x0},
    138   {0x4DF,0x437,0x308,0x0}, {0x4E2,0x418,0x304,0x0}, {0x4E3,0x438,0x304,0x0},
    139   {0x4E4,0x418,0x308,0x0}, {0x4E5,0x438,0x308,0x0}, {0x4E6,0x41E,0x308,0x0},
    140   {0x4E7,0x43E,0x308,0x0}, {0x4EA,0x4E8,0x308,0x0}, {0x4EB,0x4E9,0x308,0x0},
    141   {0x4EE,0x423,0x304,0x0}, {0x4EF,0x443,0x304,0x0}, {0x4F0,0x423,0x308,0x0},
    142   {0x4F1,0x443,0x308,0x0}, {0x4F2,0x423,0x30B,0x0}, {0x4F3,0x443,0x30B,0x0},
    143   {0x4F4,0x427,0x308,0x0}, {0x4F5,0x447,0x308,0x0}, {0x4F8,0x42B,0x308,0x0},
    144   {0x4F9,0x44B,0x308,0x0}, {0x929,0x928,0x93C,0x0}, {0x931,0x930,0x93C,0x0},
    145   {0x934,0x933,0x93C,0x0}, {0x958,0x915,0x93C,0x0}, {0x959,0x916,0x93C,0x0},
    146   {0x95A,0x917,0x93C,0x0}, {0x95B,0x91C,0x93C,0x0}, {0x95C,0x921,0x93C,0x0},
    147   {0x95D,0x922,0x93C,0x0}, {0x95E,0x92B,0x93C,0x0}, {0x95F,0x92F,0x93C,0x0},
    148   {0x9B0,0x9AC,0x9BC,0x0}, {0x9CB,0x9C7,0x9BE,0x0}, {0x9CC,0x9C7,0x9D7,0x0},
    149   {0x9DC,0x9A1,0x9BC,0x0}, {0x9DD,0x9A2,0x9BC,0x0}, {0x9DF,0x9AF,0x9BC,0x0},
    150   {0xA59,0xA16,0xA3C,0x0}, {0xA5A,0xA17,0xA3C,0x0}, {0xA5B,0xA1C,0xA3C,0x0},
    151   {0xA5C,0xA21,0xA3C,0x0}, {0xA5E,0xA2B,0xA3C,0x0}, {0xB48,0xB47,0xB56,0x0},
    152   {0xB4B,0xB47,0xB3E,0x0}, {0xB4C,0xB47,0xB57,0x0}, {0xB5C,0xB21,0xB3C,0x0},
    153   {0xB5D,0xB22,0xB3C,0x0}, {0xB5F,0xB2F,0xB3C,0x0}, {0xB94,0xB92,0xBD7,0x0},
    154   {0xBCA,0xBC6,0xBBE,0x0}, {0xBCB,0xBC7,0xBBE,0x0}, {0xBCC,0xBC6,0xBD7,0x0},
    155   {0xC48,0xC46,0xC56,0x0}, {0xCC0,0xCBF,0xCD5,0x0}, {0xCC7,0xCC6,0xCD5,0x0},
    156   {0xCC8,0xCC6,0xCD6,0x0}, {0xCCA,0xCC6,0xCC2,0x0}, {0xCCB,0xCC6,0xCC2,0xCD5},
    157   {0xD4A,0xD46,0xD3E,0x0}, {0xD4B,0xD47,0xD3E,0x0}, {0xD4C,0xD46,0xD57,0x0},
    158   {0xE33,0xE4D,0xE32,0x0}, {0xEB3,0xECD,0xEB2,0x0}, {0xF43,0xF42,0xFB7,0x0},
    159   {0xF4D,0xF4C,0xFB7,0x0}, {0xF52,0xF51,0xFB7,0x0}, {0xF57,0xF56,0xFB7,0x0},
    160   {0xF5C,0xF5B,0xFB7,0x0}, {0xF69,0xF40,0xFB5,0x0}, {0xF73,0xF72,0xF71,0x0},
    161   {0xF75,0xF71,0xF74,0x0}, {0xF76,0xFB2,0xF80,0x0}, {0xF77,0xF76,0xF71,0x0},
    162   {0xF78,0xFB3,0xF80,0x0}, {0xF79,0xF78,0xF71,0x0}, {0xF81,0xF80,0xF71,0x0},
    163   {0xF93,0xF92,0xFB7,0x0}, {0xF9D,0xF9C,0xFB7,0x0}, {0xFA2,0xFA1,0xFB7,0x0},
    164   {0xFA7,0xFA6,0xFB7,0x0}, {0xFAC,0xFAB,0xFB7,0x0}, {0xFB9,0xF90,0xFB5,0x0},
    165   {0x1E00,0x41,0x325,0x0}, {0x1E01,0x61,0x325,0x0}, {0x1E02,0x42,0x307,0x0},
    166   {0x1E03,0x62,0x307,0x0}, {0x1E04,0x42,0x323,0x0}, {0x1E05,0x62,0x323,0x0},
    167   {0x1E06,0x42,0x331,0x0}, {0x1E07,0x62,0x331,0x0}, {0x1E08,0xC7,0x301,0x0},
    168   {0x1E09,0xE7,0x301,0x0}, {0x1E0A,0x44,0x307,0x0}, {0x1E0B,0x64,0x307,0x0},
    169   {0x1E0C,0x44,0x323,0x0}, {0x1E0D,0x64,0x323,0x0}, {0x1E0E,0x44,0x331,0x0},
    170   {0x1E0F,0x64,0x331,0x0}, {0x1E10,0x44,0x327,0x0}, {0x1E11,0x64,0x327,0x0},
    171   {0x1E12,0x44,0x32D,0x0}, {0x1E13,0x64,0x32D,0x0}, {0x1E14,0x112,0x300,0x0},
    172   {0x1E15,0x113,0x300,0x0}, {0x1E16,0x112,0x301,0x0}, {0x1E17,0x113,0x301,0x0},
    173   {0x1E18,0x45,0x32D,0x0}, {0x1E19,0x65,0x32D,0x0}, {0x1E1A,0x45,0x330,0x0},
    174   {0x1E1B,0x65,0x330,0x0}, {0x1E1C,0x114,0x327,0x0}, {0x1E1D,0x115,0x327,0x0},
    175   {0x1E1E,0x46,0x307,0x0}, {0x1E1F,0x66,0x307,0x0}, {0x1E20,0x47,0x304,0x0},
    176   {0x1E21,0x67,0x304,0x0}, {0x1E22,0x48,0x307,0x0}, {0x1E23,0x68,0x307,0x0},
    177   {0x1E24,0x48,0x323,0x0}, {0x1E25,0x68,0x323,0x0}, {0x1E26,0x48,0x308,0x0},
    178   {0x1E27,0x68,0x308,0x0}, {0x1E28,0x48,0x327,0x0}, {0x1E29,0x68,0x327,0x0},
    179   {0x1E2A,0x48,0x32E,0x0}, {0x1E2B,0x68,0x32E,0x0}, {0x1E2C,0x49,0x330,0x0},
    180   {0x1E2D,0x69,0x330,0x0}, {0x1E2E,0xCF,0x301,0x0}, {0x1E2F,0xEF,0x301,0x0},
    181   {0x1E30,0x4B,0x301,0x0}, {0x1E31,0x6B,0x301,0x0}, {0x1E32,0x4B,0x323,0x0},
    182   {0x1E33,0x6B,0x323,0x0}, {0x1E34,0x4B,0x331,0x0}, {0x1E35,0x6B,0x331,0x0},
    183   {0x1E36,0x4C,0x323,0x0}, {0x1E37,0x6C,0x323,0x0}, {0x1E38,0x1E36,0x304,0x0},
    184   {0x1E39,0x1E37,0x304,0x0}, {0x1E3A,0x4C,0x331,0x0}, {0x1E3B,0x6C,0x331,0x0},
    185   {0x1E3C,0x4C,0x32D,0x0}, {0x1E3D,0x6C,0x32D,0x0}, {0x1E3E,0x4D,0x301,0x0},
    186   {0x1E3F,0x6D,0x301,0x0}, {0x1E40,0x4D,0x307,0x0}, {0x1E41,0x6D,0x307,0x0},
    187   {0x1E42,0x4D,0x323,0x0}, {0x1E43,0x6D,0x323,0x0}, {0x1E44,0x4E,0x307,0x0},
    188   {0x1E45,0x6E,0x307,0x0}, {0x1E46,0x4E,0x323,0x0}, {0x1E47,0x6E,0x323,0x0},
    189   {0x1E48,0x4E,0x331,0x0}, {0x1E49,0x6E,0x331,0x0}, {0x1E4A,0x4E,0x32D,0x0},
    190   {0x1E4B,0x6E,0x32D,0x0}, {0x1E4C,0xD5,0x301,0x0}, {0x1E4D,0xF5,0x301,0x0},
    191   {0x1E4E,0xD5,0x308,0x0}, {0x1E4F,0xF5,0x308,0x0}, {0x1E50,0x14C,0x300,0x0},
    192   {0x1E51,0x14D,0x300,0x0}, {0x1E52,0x14C,0x301,0x0}, {0x1E53,0x14D,0x301,0x0},
    193   {0x1E54,0x50,0x301,0x0}, {0x1E55,0x70,0x301,0x0}, {0x1E56,0x50,0x307,0x0},
    194   {0x1E57,0x70,0x307,0x0}, {0x1E58,0x52,0x307,0x0}, {0x1E59,0x72,0x307,0x0},
    195   {0x1E5A,0x52,0x323,0x0}, {0x1E5B,0x72,0x323,0x0}, {0x1E5C,0x1E5A,0x304,0x0},
    196   {0x1E5D,0x1E5B,0x304,0x0}, {0x1E5E,0x52,0x331,0x0}, {0x1E5F,0x72,0x331,0x0},
    197   {0x1E60,0x53,0x307,0x0}, {0x1E61,0x73,0x307,0x0}, {0x1E62,0x53,0x323,0x0},
    198   {0x1E63,0x73,0x323,0x0}, {0x1E64,0x15A,0x307,0x0}, {0x1E65,0x15B,0x307,0x0},
    199   {0x1E66,0x160,0x307,0x0}, {0x1E67,0x161,0x307,0x0}, {0x1E68,0x1E62,0x307,0x0},
    200   {0x1E69,0x1E63,0x307,0x0}, {0x1E6A,0x54,0x307,0x0}, {0x1E6B,0x74,0x307,0x0},
    201   {0x1E6C,0x54,0x323,0x0}, {0x1E6D,0x74,0x323,0x0}, {0x1E6E,0x54,0x331,0x0},
    202   {0x1E6F,0x74,0x331,0x0}, {0x1E70,0x54,0x32D,0x0}, {0x1E71,0x74,0x32D,0x0},
    203   {0x1E72,0x55,0x324,0x0}, {0x1E73,0x75,0x324,0x0}, {0x1E74,0x55,0x330,0x0},
    204   {0x1E75,0x75,0x330,0x0}, {0x1E76,0x55,0x32D,0x0}, {0x1E77,0x75,0x32D,0x0},
    205   {0x1E78,0x168,0x301,0x0}, {0x1E79,0x169,0x301,0x0}, {0x1E7A,0x16A,0x308,0x0},
    206   {0x1E7B,0x16B,0x308,0x0}, {0x1E7C,0x56,0x303,0x0}, {0x1E7D,0x76,0x303,0x0},
    207   {0x1E7E,0x56,0x323,0x0}, {0x1E7F,0x76,0x323,0x0}, {0x1E80,0x57,0x300,0x0},
    208   {0x1E81,0x77,0x300,0x0}, {0x1E82,0x57,0x301,0x0}, {0x1E83,0x77,0x301,0x0},
    209   {0x1E84,0x57,0x308,0x0}, {0x1E85,0x77,0x308,0x0}, {0x1E86,0x57,0x307,0x0},
    210   {0x1E87,0x77,0x307,0x0}, {0x1E88,0x57,0x323,0x0}, {0x1E89,0x77,0x323,0x0},
    211   {0x1E8A,0x58,0x307,0x0}, {0x1E8B,0x78,0x307,0x0}, {0x1E8C,0x58,0x308,0x0},
    212   {0x1E8D,0x78,0x308,0x0}, {0x1E8E,0x59,0x307,0x0}, {0x1E8F,0x79,0x307,0x0},
    213   {0x1E90,0x5A,0x302,0x0}, {0x1E91,0x7A,0x302,0x0}, {0x1E92,0x5A,0x323,0x0},
    214   {0x1E93,0x7A,0x323,0x0}, {0x1E94,0x5A,0x331,0x0}, {0x1E95,0x7A,0x331,0x0},
    215   {0x1E96,0x68,0x331,0x0}, {0x1E97,0x74,0x308,0x0}, {0x1E98,0x77,0x30A,0x0},
    216   {0x1E99,0x79,0x30A,0x0}, {0x1E9B,0x17F,0x307,0x0}, {0x1EA0,0x41,0x323,0x0},
    217   {0x1EA1,0x61,0x323,0x0}, {0x1EA2,0x41,0x309,0x0}, {0x1EA3,0x61,0x309,0x0},
    218   {0x1EA4,0xC2,0x301,0x0}, {0x1EA5,0xE2,0x301,0x0}, {0x1EA6,0xC2,0x300,0x0},
    219   {0x1EA7,0xE2,0x300,0x0}, {0x1EA8,0xC2,0x309,0x0}, {0x1EA9,0xE2,0x309,0x0},
    220   {0x1EAA,0xC2,0x303,0x0}, {0x1EAB,0xE2,0x303,0x0}, {0x1EAC,0xC2,0x323,0x0},
    221   {0x1EAD,0xE2,0x323,0x0}, {0x1EAE,0x102,0x301,0x0}, {0x1EAF,0x103,0x301,0x0},
    222   {0x1EB0,0x102,0x300,0x0}, {0x1EB1,0x103,0x300,0x0}, {0x1EB2,0x102,0x309,0x0},
    223   {0x1EB3,0x103,0x309,0x0}, {0x1EB4,0x102,0x303,0x0}, {0x1EB5,0x103,0x303,0x0},
    224   {0x1EB6,0x102,0x323,0x0}, {0x1EB7,0x103,0x323,0x0}, {0x1EB8,0x45,0x323,0x0},
    225   {0x1EB9,0x65,0x323,0x0}, {0x1EBA,0x45,0x309,0x0}, {0x1EBB,0x65,0x309,0x0},
    226   {0x1EBC,0x45,0x303,0x0}, {0x1EBD,0x65,0x303,0x0}, {0x1EBE,0xCA,0x301,0x0},
    227   {0x1EBF,0xEA,0x301,0x0}, {0x1EC0,0xCA,0x300,0x0}, {0x1EC1,0xEA,0x300,0x0},
    228   {0x1EC2,0xCA,0x309,0x0}, {0x1EC3,0xEA,0x309,0x0}, {0x1EC4,0xCA,0x303,0x0},
    229   {0x1EC5,0xEA,0x303,0x0}, {0x1EC6,0xCA,0x323,0x0}, {0x1EC7,0xEA,0x323,0x0},
    230   {0x1EC8,0x49,0x309,0x0}, {0x1EC9,0x69,0x309,0x0}, {0x1ECA,0x49,0x323,0x0},
    231   {0x1ECB,0x69,0x323,0x0}, {0x1ECC,0x4F,0x323,0x0}, {0x1ECD,0x6F,0x323,0x0},
    232   {0x1ECE,0x4F,0x309,0x0}, {0x1ECF,0x6F,0x309,0x0}, {0x1ED0,0xD4,0x301,0x0},
    233   {0x1ED1,0xF4,0x301,0x0}, {0x1ED2,0xD4,0x300,0x0}, {0x1ED3,0xF4,0x300,0x0},
    234   {0x1ED4,0xD4,0x309,0x0}, {0x1ED5,0xF4,0x309,0x0}, {0x1ED6,0xD4,0x303,0x0},
    235   {0x1ED7,0xF4,0x303,0x0}, {0x1ED8,0xD4,0x323,0x0}, {0x1ED9,0xF4,0x323,0x0},
    236   {0x1EDA,0x1A0,0x301,0x0}, {0x1EDB,0x1A1,0x301,0x0}, {0x1EDC,0x1A0,0x300,0x0},
    237   {0x1EDD,0x1A1,0x300,0x0}, {0x1EDE,0x1A0,0x309,0x0}, {0x1EDF,0x1A1,0x309,0x0},
    238   {0x1EE0,0x1A0,0x303,0x0}, {0x1EE1,0x1A1,0x303,0x0}, {0x1EE2,0x1A0,0x323,0x0},
    239   {0x1EE3,0x1A1,0x323,0x0}, {0x1EE4,0x55,0x323,0x0}, {0x1EE5,0x75,0x323,0x0},
    240   {0x1EE6,0x55,0x309,0x0}, {0x1EE7,0x75,0x309,0x0}, {0x1EE8,0x1AF,0x301,0x0},
    241   {0x1EE9,0x1B0,0x301,0x0}, {0x1EEA,0x1AF,0x300,0x0}, {0x1EEB,0x1B0,0x300,0x0},
    242   {0x1EEC,0x1AF,0x309,0x0}, {0x1EED,0x1B0,0x309,0x0}, {0x1EEE,0x1AF,0x303,0x0},
    243   {0x1EEF,0x1B0,0x303,0x0}, {0x1EF0,0x1AF,0x323,0x0}, {0x1EF1,0x1B0,0x323,0x0},
    244   {0x1EF2,0x59,0x300,0x0}, {0x1EF3,0x79,0x300,0x0}, {0x1EF4,0x59,0x323,0x0},
    245   {0x1EF5,0x79,0x323,0x0}, {0x1EF6,0x59,0x309,0x0}, {0x1EF7,0x79,0x309,0x0},
    246   {0x1EF8,0x59,0x303,0x0}, {0x1EF9,0x79,0x303,0x0}, {0x1F00,0x3B1,0x313,0x0},
    247   {0x1F01,0x3B1,0x314,0x0}, {0x1F02,0x1F00,0x300,0x0}, {0x1F03,0x1F01,0x300,0x0},
    248   {0x1F04,0x1F00,0x301,0x0}, {0x1F05,0x1F01,0x301,0x0}, {0x1F06,0x1F00,0x342,0x0},
    249   {0x1F07,0x1F01,0x342,0x0}, {0x1F08,0x391,0x313,0x0}, {0x1F09,0x391,0x314,0x0},
    250   {0x1F0A,0x1F08,0x300,0x0}, {0x1F0B,0x1F09,0x300,0x0}, {0x1F0C,0x1F08,0x301,0x0},
    251   {0x1F0D,0x1F09,0x301,0x0}, {0x1F0E,0x1F08,0x342,0x0}, {0x1F0F,0x1F09,0x342,0x0},
    252   {0x1F10,0x3B5,0x313,0x0}, {0x1F11,0x3B5,0x314,0x0}, {0x1F12,0x1F10,0x300,0x0},
    253   {0x1F13,0x1F11,0x300,0x0}, {0x1F14,0x1F10,0x301,0x0}, {0x1F15,0x1F11,0x301,0x0},
    254   {0x1F18,0x395,0x313,0x0}, {0x1F19,0x395,0x314,0x0}, {0x1F1A,0x1F18,0x300,0x0},
    255   {0x1F1B,0x1F19,0x300,0x0}, {0x1F1C,0x1F18,0x301,0x0}, {0x1F1D,0x1F19,0x301,0x0},
    256   {0x1F20,0x3B7,0x313,0x0}, {0x1F21,0x3B7,0x314,0x0}, {0x1F22,0x1F20,0x300,0x0},
    257   {0x1F23,0x1F21,0x300,0x0}, {0x1F24,0x1F20,0x301,0x0}, {0x1F25,0x1F21,0x301,0x0},
    258   {0x1F26,0x1F20,0x342,0x0}, {0x1F27,0x1F21,0x342,0x0}, {0x1F28,0x397,0x313,0x0},
    259   {0x1F29,0x397,0x314,0x0}, {0x1F2A,0x1F28,0x300,0x0}, {0x1F2B,0x1F29,0x300,0x0},
    260   {0x1F2C,0x1F28,0x301,0x0}, {0x1F2D,0x1F29,0x301,0x0}, {0x1F2E,0x1F28,0x342,0x0},
    261   {0x1F2F,0x1F29,0x342,0x0}, {0x1F30,0x3B9,0x313,0x0}, {0x1F31,0x3B9,0x314,0x0},
    262   {0x1F32,0x1F30,0x300,0x0}, {0x1F33,0x1F31,0x300,0x0}, {0x1F34,0x1F30,0x301,0x0},
    263   {0x1F35,0x1F31,0x301,0x0}, {0x1F36,0x1F30,0x342,0x0}, {0x1F37,0x1F31,0x342,0x0},
    264   {0x1F38,0x399,0x313,0x0}, {0x1F39,0x399,0x314,0x0}, {0x1F3A,0x1F38,0x300,0x0},
    265   {0x1F3B,0x1F39,0x300,0x0}, {0x1F3C,0x1F38,0x301,0x0}, {0x1F3D,0x1F39,0x301,0x0},
    266   {0x1F3E,0x1F38,0x342,0x0}, {0x1F3F,0x1F39,0x342,0x0}, {0x1F40,0x3BF,0x313,0x0},
    267   {0x1F41,0x3BF,0x314,0x0}, {0x1F42,0x1F40,0x300,0x0}, {0x1F43,0x1F41,0x300,0x0},
    268   {0x1F44,0x1F40,0x301,0x0}, {0x1F45,0x1F41,0x301,0x0}, {0x1F48,0x39F,0x313,0x0},
    269   {0x1F49,0x39F,0x314,0x0}, {0x1F4A,0x1F48,0x300,0x0}, {0x1F4B,0x1F49,0x300,0x0},
    270   {0x1F4C,0x1F48,0x301,0x0}, {0x1F4D,0x1F49,0x301,0x0}, {0x1F50,0x3C5,0x313,0x0},
    271   {0x1F51,0x3C5,0x314,0x0}, {0x1F52,0x1F50,0x300,0x0}, {0x1F53,0x1F51,0x300,0x0},
    272   {0x1F54,0x1F50,0x301,0x0}, {0x1F55,0x1F51,0x301,0x0}, {0x1F56,0x1F50,0x342,0x0},
    273   {0x1F57,0x1F51,0x342,0x0}, {0x1F59,0x3A5,0x314,0x0}, {0x1F5B,0x1F59,0x300,0x0},
    274   {0x1F5D,0x1F59,0x301,0x0}, {0x1F5F,0x1F59,0x342,0x0}, {0x1F60,0x3C9,0x313,0x0},
    275   {0x1F61,0x3C9,0x314,0x0}, {0x1F62,0x1F60,0x300,0x0}, {0x1F63,0x1F61,0x300,0x0},
    276   {0x1F64,0x1F60,0x301,0x0}, {0x1F65,0x1F61,0x301,0x0}, {0x1F66,0x1F60,0x342,0x0},
    277   {0x1F67,0x1F61,0x342,0x0}, {0x1F68,0x3A9,0x313,0x0}, {0x1F69,0x3A9,0x314,0x0},
    278   {0x1F6A,0x1F68,0x300,0x0}, {0x1F6B,0x1F69,0x300,0x0}, {0x1F6C,0x1F68,0x301,0x0},
    279   {0x1F6D,0x1F69,0x301,0x0}, {0x1F6E,0x1F68,0x342,0x0}, {0x1F6F,0x1F69,0x342,0x0},
    280   {0x1F70,0x3B1,0x300,0x0}, {0x1F71,0x3B1,0x301,0x0}, {0x1F72,0x3B5,0x300,0x0},
    281   {0x1F73,0x3B5,0x301,0x0}, {0x1F74,0x3B7,0x300,0x0}, {0x1F75,0x3B7,0x301,0x0},
    282   {0x1F76,0x3B9,0x300,0x0}, {0x1F77,0x3B9,0x301,0x0}, {0x1F78,0x3BF,0x300,0x0},
    283   {0x1F79,0x3BF,0x301,0x0}, {0x1F7A,0x3C5,0x300,0x0}, {0x1F7B,0x3C5,0x301,0x0},
    284   {0x1F7C,0x3C9,0x300,0x0}, {0x1F7D,0x3C9,0x301,0x0}, {0x1F80,0x1F00,0x345,0x0},
    285   {0x1F81,0x1F01,0x345,0x0}, {0x1F82,0x1F02,0x345,0x0}, {0x1F83,0x1F03,0x345,0x0},
    286   {0x1F84,0x1F04,0x345,0x0}, {0x1F85,0x1F05,0x345,0x0}, {0x1F86,0x1F06,0x345,0x0},
    287   {0x1F87,0x1F07,0x345,0x0}, {0x1F88,0x1F08,0x345,0x0}, {0x1F89,0x1F09,0x345,0x0},
    288   {0x1F8A,0x1F0A,0x345,0x0}, {0x1F8B,0x1F0B,0x345,0x0}, {0x1F8C,0x1F0C,0x345,0x0},
    289   {0x1F8D,0x1F0D,0x345,0x0}, {0x1F8E,0x1F0E,0x345,0x0}, {0x1F8F,0x1F0F,0x345,0x0},
    290   {0x1F90,0x1F20,0x345,0x0}, {0x1F91,0x1F21,0x345,0x0}, {0x1F92,0x1F22,0x345,0x0},
    291   {0x1F93,0x1F23,0x345,0x0}, {0x1F94,0x1F24,0x345,0x0}, {0x1F95,0x1F25,0x345,0x0},
    292   {0x1F96,0x1F26,0x345,0x0}, {0x1F97,0x1F27,0x345,0x0}, {0x1F98,0x1F28,0x345,0x0},
    293   {0x1F99,0x1F29,0x345,0x0}, {0x1F9A,0x1F2A,0x345,0x0}, {0x1F9B,0x1F2B,0x345,0x0},
    294   {0x1F9C,0x1F2C,0x345,0x0}, {0x1F9D,0x1F2D,0x345,0x0}, {0x1F9E,0x1F2E,0x345,0x0},
    295   {0x1F9F,0x1F2F,0x345,0x0}, {0x1FA0,0x1F60,0x345,0x0}, {0x1FA1,0x1F61,0x345,0x0},
    296   {0x1FA2,0x1F62,0x345,0x0}, {0x1FA3,0x1F63,0x345,0x0}, {0x1FA4,0x1F64,0x345,0x0},
    297   {0x1FA5,0x1F65,0x345,0x0}, {0x1FA6,0x1F66,0x345,0x0}, {0x1FA7,0x1F67,0x345,0x0},
    298   {0x1FA8,0x1F68,0x345,0x0}, {0x1FA9,0x1F69,0x345,0x0}, {0x1FAA,0x1F6A,0x345,0x0},
    299   {0x1FAB,0x1F6B,0x345,0x0}, {0x1FAC,0x1F6C,0x345,0x0}, {0x1FAD,0x1F6D,0x345,0x0},
    300   {0x1FAE,0x1F6E,0x345,0x0}, {0x1FAF,0x1F6F,0x345,0x0}, {0x1FB0,0x3B1,0x306,0x0},
    301   {0x1FB1,0x3B1,0x304,0x0}, {0x1FB2,0x1F70,0x345,0x0}, {0x1FB3,0x3B1,0x345,0x0},
    302   {0x1FB4,0x1F71,0x345,0x0}, {0x1FB6,0x3B1,0x342,0x0}, {0x1FB7,0x1FB6,0x345,0x0},
    303   {0x1FB8,0x391,0x306,0x0}, {0x1FB9,0x391,0x304,0x0}, {0x1FBA,0x391,0x300,0x0},
    304   {0x1FBB,0x391,0x301,0x0}, {0x1FBC,0x391,0x345,0x0}, {0x1FBE,0x3B9,0x0,0x0},
    305   {0x1FC1,0xA8,0x342,0x0}, {0x1FC2,0x1F74,0x345,0x0}, {0x1FC3,0x3B7,0x345,0x0},
    306   {0x1FC4,0x1F75,0x345,0x0}, {0x1FC6,0x3B7,0x342,0x0}, {0x1FC7,0x1FC6,0x345,0x0},
    307   {0x1FC8,0x395,0x300,0x0}, {0x1FC9,0x395,0x301,0x0}, {0x1FCA,0x397,0x300,0x0},
    308   {0x1FCB,0x397,0x301,0x0}, {0x1FCC,0x397,0x345,0x0}, {0x1FCD,0x1FBF,0x300,0x0},
    309   {0x1FCE,0x1FBF,0x301,0x0}, {0x1FCF,0x1FBF,0x342,0x0}, {0x1FD0,0x3B9,0x306,0x0},
    310   {0x1FD1,0x3B9,0x304,0x0}, {0x1FD2,0x3CA,0x300,0x0}, {0x1FD3,0x3CA,0x301,0x0},
    311   {0x1FD6,0x3B9,0x342,0x0}, {0x1FD7,0x3CA,0x342,0x0}, {0x1FD8,0x399,0x306,0x0},
    312   {0x1FD9,0x399,0x304,0x0}, {0x1FDA,0x399,0x300,0x0}, {0x1FDB,0x399,0x301,0x0},
    313   {0x1FDD,0x1FFE,0x300,0x0}, {0x1FDE,0x1FFE,0x301,0x0}, {0x1FDF,0x1FFE,0x342,0x0},
    314   {0x1FE0,0x3C5,0x306,0x0}, {0x1FE1,0x3C5,0x304,0x0}, {0x1FE2,0x3CB,0x300,0x0},
    315   {0x1FE3,0x3CB,0x301,0x0}, {0x1FE4,0x3C1,0x313,0x0}, {0x1FE5,0x3C1,0x314,0x0},
    316   {0x1FE6,0x3C5,0x342,0x0}, {0x1FE7,0x3CB,0x342,0x0}, {0x1FE8,0x3A5,0x306,0x0},
    317   {0x1FE9,0x3A5,0x304,0x0}, {0x1FEA,0x3A5,0x300,0x0}, {0x1FEB,0x3A5,0x301,0x0},
    318   {0x1FEC,0x3A1,0x314,0x0}, {0x1FED,0xA8,0x300,0x0}, {0x1FEE,0xA8,0x301,0x0},
    319   {0x1FEF,0x60,0x0,0x0}, {0x1FF2,0x1F7C,0x345,0x0}, {0x1FF3,0x3C9,0x345,0x0},
    320   {0x1FF4,0x1F79,0x345,0x0}, {0x1FF6,0x3C9,0x342,0x0}, {0x1FF7,0x1FF6,0x345,0x0},
    321   {0x1FF8,0x39F,0x300,0x0}, {0x1FF9,0x39F,0x301,0x0}, {0x1FFA,0x3A9,0x300,0x0},
    322   {0x1FFB,0x3A9,0x301,0x0}, {0x1FFC,0x3A9,0x345,0x0}, {0x1FFD,0xB4,0x0,0x0},
    323   {0x2000,0x2002,0x0,0x0}, {0x2001,0x2003,0x0,0x0}, {0x2126,0x3A9,0x0,0x0},
    324   {0x212A,0x4B,0x0,0x0}, {0x212B,0xC5,0x0,0x0}, {0x2204,0x2203,0x338,0x0},
    325   {0x2209,0x2208,0x338,0x0}, {0x220C,0x220B,0x338,0x0}, {0x2224,0x2223,0x338,0x0},
    326   {0x2226,0x2225,0x338,0x0}, {0x2241,0x7E,0x338,0x0}, {0x2244,0x2243,0x338,0x0},
    327   {0x2247,0x2245,0x338,0x0}, {0x2249,0x2248,0x338,0x0}, {0x2260,0x3D,0x338,0x0},
    328   {0x2262,0x2261,0x338,0x0}, {0x226D,0x224D,0x338,0x0}, {0x226E,0x3C,0x338,0x0},
    329   {0x226F,0x3E,0x338,0x0}, {0x2270,0x2264,0x338,0x0}, {0x2271,0x2265,0x338,0x0},
    330   {0x2274,0x2272,0x338,0x0}, {0x2275,0x2273,0x338,0x0}, {0x2278,0x2276,0x338,0x0},
    331   {0x2279,0x2277,0x338,0x0}, {0x2280,0x227A,0x338,0x0}, {0x2281,0x227B,0x338,0x0},
    332   {0x2284,0x2282,0x338,0x0}, {0x2285,0x2283,0x338,0x0}, {0x2288,0x2286,0x338,0x0},
    333   {0x2289,0x2287,0x338,0x0}, {0x22AC,0x22A2,0x338,0x0}, {0x22AD,0x22A8,0x338,0x0},
    334   {0x22AE,0x22A9,0x338,0x0}, {0x22AF,0x22AB,0x338,0x0}, {0x22E0,0x227C,0x338,0x0},
    335   {0x22E1,0x227D,0x338,0x0}, {0x22E2,0x2291,0x338,0x0}, {0x22E3,0x2292,0x338,0x0},
    336   {0x22EA,0x22B2,0x338,0x0}, {0x22EB,0x22B3,0x338,0x0}, {0x22EC,0x22B4,0x338,0x0},
    337   {0x22ED,0x22B5,0x338,0x0}, {0x2329,0x3008,0x0,0x0}, {0x232A,0x3009,0x0,0x0},
    338   {0x304C,0x304B,0x3099,0x0}, {0x304E,0x304D,0x3099,0x0}, {0x3050,0x304F,0x3099,0x0},
    339   {0x3052,0x3051,0x3099,0x0}, {0x3054,0x3053,0x3099,0x0}, {0x3056,0x3055,0x3099,0x0},
    340   {0x3058,0x3057,0x3099,0x0}, {0x305A,0x3059,0x3099,0x0}, {0x305C,0x305B,0x3099,0x0},
    341   {0x305E,0x305D,0x3099,0x0}, {0x3060,0x305F,0x3099,0x0}, {0x3062,0x3061,0x3099,0x0},
    342   {0x3065,0x3064,0x3099,0x0}, {0x3067,0x3066,0x3099,0x0}, {0x3069,0x3068,0x3099,0x0},
    343   {0x3070,0x306F,0x3099,0x0}, {0x3071,0x306F,0x309A,0x0}, {0x3073,0x3072,0x3099,0x0},
    344   {0x3074,0x3072,0x309A,0x0}, {0x3076,0x3075,0x3099,0x0}, {0x3077,0x3075,0x309A,0x0},
    345   {0x3079,0x3078,0x3099,0x0}, {0x307A,0x3078,0x309A,0x0}, {0x307C,0x307B,0x3099,0x0},
    346   {0x307D,0x307B,0x309A,0x0}, {0x3094,0x3046,0x3099,0x0}, {0x309E,0x309D,0x3099,0x0},
    347   {0x30AC,0x30AB,0x3099,0x0}, {0x30AE,0x30AD,0x3099,0x0}, {0x30B0,0x30AF,0x3099,0x0},
    348   {0x30B2,0x30B1,0x3099,0x0}, {0x30B4,0x30B3,0x3099,0x0}, {0x30B6,0x30B5,0x3099,0x0},
    349   {0x30B8,0x30B7,0x3099,0x0}, {0x30BA,0x30B9,0x3099,0x0}, {0x30BC,0x30BB,0x3099,0x0},
    350   {0x30BE,0x30BD,0x3099,0x0}, {0x30C0,0x30BF,0x3099,0x0}, {0x30C2,0x30C1,0x3099,0x0},
    351   {0x30C5,0x30C4,0x3099,0x0}, {0x30C7,0x30C6,0x3099,0x0}, {0x30C9,0x30C8,0x3099,0x0},
    352   {0x30D0,0x30CF,0x3099,0x0}, {0x30D1,0x30CF,0x309A,0x0}, {0x30D3,0x30D2,0x3099,0x0},
    353   {0x30D4,0x30D2,0x309A,0x0}, {0x30D6,0x30D5,0x3099,0x0}, {0x30D7,0x30D5,0x309A,0x0},
    354   {0x30D9,0x30D8,0x3099,0x0}, {0x30DA,0x30D8,0x309A,0x0}, {0x30DC,0x30DB,0x3099,0x0},
    355   {0x30DD,0x30DB,0x309A,0x0}, {0x30F4,0x30A6,0x3099,0x0}, {0x30F7,0x30EF,0x3099,0x0},
    356   {0x30F8,0x30F0,0x3099,0x0}, {0x30F9,0x30F1,0x3099,0x0}, {0x30FA,0x30F2,0x3099,0x0},
    357   {0x30FE,0x30FD,0x3099,0x0}, {0xF900,0x8C48,0x0,0x0}, {0xF901,0x66F4,0x0,0x0},
    358   {0xF902,0x8ECA,0x0,0x0}, {0xF903,0x8CC8,0x0,0x0}, {0xF904,0x6ED1,0x0,0x0},
    359   {0xF905,0x4E32,0x0,0x0}, {0xF906,0x53E5,0x0,0x0}, {0xF907,0x9F9C,0x0,0x0},
    360   {0xF908,0x9F9C,0x0,0x0}, {0xF909,0x5951,0x0,0x0}, {0xF90A,0x91D1,0x0,0x0},
    361   {0xF90B,0x5587,0x0,0x0}, {0xF90C,0x5948,0x0,0x0}, {0xF90D,0x61F6,0x0,0x0},
    362   {0xF90E,0x7669,0x0,0x0}, {0xF90F,0x7F85,0x0,0x0}, {0xF910,0x863F,0x0,0x0},
    363   {0xF911,0x87BA,0x0,0x0}, {0xF912,0x88F8,0x0,0x0}, {0xF913,0x908F,0x0,0x0},
    364   {0xF914,0x6A02,0x0,0x0}, {0xF915,0x6D1B,0x0,0x0}, {0xF916,0x70D9,0x0,0x0},
    365   {0xF917,0x73DE,0x0,0x0}, {0xF918,0x843D,0x0,0x0}, {0xF919,0x916A,0x0,0x0},
    366   {0xF91A,0x99F1,0x0,0x0}, {0xF91B,0x4E82,0x0,0x0}, {0xF91C,0x5375,0x0,0x0},
    367   {0xF91D,0x6B04,0x0,0x0}, {0xF91E,0x721B,0x0,0x0}, {0xF91F,0x862D,0x0,0x0},
    368   {0xF920,0x9E1E,0x0,0x0}, {0xF921,0x5D50,0x0,0x0}, {0xF922,0x6FEB,0x0,0x0},
    369   {0xF923,0x85CD,0x0,0x0}, {0xF924,0x8964,0x0,0x0}, {0xF925,0x62C9,0x0,0x0},
    370   {0xF926,0x81D8,0x0,0x0}, {0xF927,0x881F,0x0,0x0}, {0xF928,0x5ECA,0x0,0x0},
    371   {0xF929,0x6717,0x0,0x0}, {0xF92A,0x6D6A,0x0,0x0}, {0xF92B,0x72FC,0x0,0x0},
    372   {0xF92C,0x90CE,0x0,0x0}, {0xF92D,0x4F86,0x0,0x0}, {0xF92E,0x51B7,0x0,0x0},
    373   {0xF92F,0x52DE,0x0,0x0}, {0xF930,0x64C4,0x0,0x0}, {0xF931,0x6AD3,0x0,0x0},
    374   {0xF932,0x7210,0x0,0x0}, {0xF933,0x76E7,0x0,0x0}, {0xF934,0x8001,0x0,0x0},
    375   {0xF935,0x8606,0x0,0x0}, {0xF936,0x865C,0x0,0x0}, {0xF937,0x8DEF,0x0,0x0},
    376   {0xF938,0x9732,0x0,0x0}, {0xF939,0x9B6F,0x0,0x0}, {0xF93A,0x9DFA,0x0,0x0},
    377   {0xF93B,0x788C,0x0,0x0}, {0xF93C,0x797F,0x0,0x0}, {0xF93D,0x7DA0,0x0,0x0},
    378   {0xF93E,0x83C9,0x0,0x0}, {0xF93F,0x9304,0x0,0x0}, {0xF940,0x9E7F,0x0,0x0},
    379   {0xF941,0x8AD6,0x0,0x0}, {0xF942,0x58DF,0x0,0x0}, {0xF943,0x5F04,0x0,0x0},
    380   {0xF944,0x7C60,0x0,0x0}, {0xF945,0x807E,0x0,0x0}, {0xF946,0x7262,0x0,0x0},
    381   {0xF947,0x78CA,0x0,0x0}, {0xF948,0x8CC2,0x0,0x0}, {0xF949,0x96F7,0x0,0x0},
    382   {0xF94A,0x58D8,0x0,0x0}, {0xF94B,0x5C62,0x0,0x0}, {0xF94C,0x6A13,0x0,0x0},
    383   {0xF94D,0x6DDA,0x0,0x0}, {0xF94E,0x6F0F,0x0,0x0}, {0xF94F,0x7D2F,0x0,0x0},
    384   {0xF950,0x7E37,0x0,0x0}, {0xF951,0x96FB,0x0,0x0}, {0xF952,0x52D2,0x0,0x0},
    385   {0xF953,0x808B,0x0,0x0}, {0xF954,0x51DC,0x0,0x0}, {0xF955,0x51CC,0x0,0x0},
    386   {0xF956,0x7A1C,0x0,0x0}, {0xF957,0x7DBE,0x0,0x0}, {0xF958,0x83F1,0x0,0x0},
    387   {0xF959,0x9675,0x0,0x0}, {0xF95A,0x8B80,0x0,0x0}, {0xF95B,0x62CF,0x0,0x0},
    388   {0xF95C,0x6A02,0x0,0x0}, {0xF95D,0x8AFE,0x0,0x0}, {0xF95E,0x4E39,0x0,0x0},
    389   {0xF95F,0x5BE7,0x0,0x0}, {0xF960,0x6012,0x0,0x0}, {0xF961,0x7387,0x0,0x0},
    390   {0xF962,0x7570,0x0,0x0}, {0xF963,0x5317,0x0,0x0}, {0xF964,0x78FB,0x0,0x0},
    391   {0xF965,0x4FBF,0x0,0x0}, {0xF966,0x5FA9,0x0,0x0}, {0xF967,0x4E0D,0x0,0x0},
    392   {0xF968,0x6CCC,0x0,0x0}, {0xF969,0x6578,0x0,0x0}, {0xF96A,0x7D22,0x0,0x0},
    393   {0xF96B,0x53C3,0x0,0x0}, {0xF96C,0x585E,0x0,0x0}, {0xF96D,0x7701,0x0,0x0},
    394   {0xF96E,0x8449,0x0,0x0}, {0xF96F,0x8AAA,0x0,0x0}, {0xF970,0x6BBA,0x0,0x0},
    395   {0xF971,0x8FB0,0x0,0x0}, {0xF972,0x6C88,0x0,0x0}, {0xF973,0x62FE,0x0,0x0},
    396   {0xF974,0x82E5,0x0,0x0}, {0xF975,0x63A0,0x0,0x0}, {0xF976,0x7565,0x0,0x0},
    397   {0xF977,0x4EAE,0x0,0x0}, {0xF978,0x5169,0x0,0x0}, {0xF979,0x51C9,0x0,0x0},
    398   {0xF97A,0x6881,0x0,0x0}, {0xF97B,0x7CE7,0x0,0x0}, {0xF97C,0x826F,0x0,0x0},
    399   {0xF97D,0x8AD2,0x0,0x0}, {0xF97E,0x91CF,0x0,0x0}, {0xF97F,0x52F5,0x0,0x0},
    400   {0xF980,0x5442,0x0,0x0}, {0xF981,0x5973,0x0,0x0}, {0xF982,0x5EEC,0x0,0x0},
    401   {0xF983,0x65C5,0x0,0x0}, {0xF984,0x6FFE,0x0,0x0}, {0xF985,0x792A,0x0,0x0},
    402   {0xF986,0x95AD,0x0,0x0}, {0xF987,0x9A6A,0x0,0x0}, {0xF988,0x9E97,0x0,0x0},
    403   {0xF989,0x9ECE,0x0,0x0}, {0xF98A,0x529B,0x0,0x0}, {0xF98B,0x66C6,0x0,0x0},
    404   {0xF98C,0x6B77,0x0,0x0}, {0xF98D,0x8F62,0x0,0x0}, {0xF98E,0x5E74,0x0,0x0},
    405   {0xF98F,0x6190,0x0,0x0}, {0xF990,0x6200,0x0,0x0}, {0xF991,0x649A,0x0,0x0},
    406   {0xF992,0x6F23,0x0,0x0}, {0xF993,0x7149,0x0,0x0}, {0xF994,0x7489,0x0,0x0},
    407   {0xF995,0x79CA,0x0,0x0}, {0xF996,0x7DF4,0x0,0x0}, {0xF997,0x806F,0x0,0x0},
    408   {0xF998,0x8F26,0x0,0x0}, {0xF999,0x84EE,0x0,0x0}, {0xF99A,0x9023,0x0,0x0},
    409   {0xF99B,0x934A,0x0,0x0}, {0xF99C,0x5217,0x0,0x0}, {0xF99D,0x52A3,0x0,0x0},
    410   {0xF99E,0x54BD,0x0,0x0}, {0xF99F,0x70C8,0x0,0x0}, {0xF9A0,0x88C2,0x0,0x0},
    411   {0xF9A1,0x8AAA,0x0,0x0}, {0xF9A2,0x5EC9,0x0,0x0}, {0xF9A3,0x5FF5,0x0,0x0},
    412   {0xF9A4,0x637B,0x0,0x0}, {0xF9A5,0x6BAE,0x0,0x0}, {0xF9A6,0x7C3E,0x0,0x0},
    413   {0xF9A7,0x7375,0x0,0x0}, {0xF9A8,0x4EE4,0x0,0x0}, {0xF9A9,0x56F9,0x0,0x0},
    414   {0xF9AA,0x5BE7,0x0,0x0}, {0xF9AB,0x5DBA,0x0,0x0}, {0xF9AC,0x601C,0x0,0x0},
    415   {0xF9AD,0x73B2,0x0,0x0}, {0xF9AE,0x7469,0x0,0x0}, {0xF9AF,0x7F9A,0x0,0x0},
    416   {0xF9B0,0x8046,0x0,0x0}, {0xF9B1,0x9234,0x0,0x0}, {0xF9B2,0x96F6,0x0,0x0},
    417   {0xF9B3,0x9748,0x0,0x0}, {0xF9B4,0x9818,0x0,0x0}, {0xF9B5,0x4F8B,0x0,0x0},
    418   {0xF9B6,0x79AE,0x0,0x0}, {0xF9B7,0x91B4,0x0,0x0}, {0xF9B8,0x96B8,0x0,0x0},
    419   {0xF9B9,0x60E1,0x0,0x0}, {0xF9BA,0x4E86,0x0,0x0}, {0xF9BB,0x50DA,0x0,0x0},
    420   {0xF9BC,0x5BEE,0x0,0x0}, {0xF9BD,0x5C3F,0x0,0x0}, {0xF9BE,0x6599,0x0,0x0},
    421   {0xF9BF,0x6A02,0x0,0x0}, {0xF9C0,0x71CE,0x0,0x0}, {0xF9C1,0x7642,0x0,0x0},
    422   {0xF9C2,0x84FC,0x0,0x0}, {0xF9C3,0x907C,0x0,0x0}, {0xF9C4,0x9F8D,0x0,0x0},
    423   {0xF9C5,0x6688,0x0,0x0}, {0xF9C6,0x962E,0x0,0x0}, {0xF9C7,0x5289,0x0,0x0},
    424   {0xF9C8,0x677B,0x0,0x0}, {0xF9C9,0x67F3,0x0,0x0}, {0xF9CA,0x6D41,0x0,0x0},
    425   {0xF9CB,0x6E9C,0x0,0x0}, {0xF9CC,0x7409,0x0,0x0}, {0xF9CD,0x7559,0x0,0x0},
    426   {0xF9CE,0x786B,0x0,0x0}, {0xF9CF,0x7D10,0x0,0x0}, {0xF9D0,0x985E,0x0,0x0},
    427   {0xF9D1,0x516D,0x0,0x0}, {0xF9D2,0x622E,0x0,0x0}, {0xF9D3,0x9678,0x0,0x0},
    428   {0xF9D4,0x502B,0x0,0x0}, {0xF9D5,0x5D19,0x0,0x0}, {0xF9D6,0x6DEA,0x0,0x0},
    429   {0xF9D7,0x8F2A,0x0,0x0}, {0xF9D8,0x5F8B,0x0,0x0}, {0xF9D9,0x6144,0x0,0x0},
    430   {0xF9DA,0x6817,0x0,0x0}, {0xF9DB,0x7387,0x0,0x0}, {0xF9DC,0x9686,0x0,0x0},
    431   {0xF9DD,0x5229,0x0,0x0}, {0xF9DE,0x540F,0x0,0x0}, {0xF9DF,0x5C65,0x0,0x0},
    432   {0xF9E0,0x6613,0x0,0x0}, {0xF9E1,0x674E,0x0,0x0}, {0xF9E2,0x68A8,0x0,0x0},
    433   {0xF9E3,0x6CE5,0x0,0x0}, {0xF9E4,0x7406,0x0,0x0}, {0xF9E5,0x75E2,0x0,0x0},
    434   {0xF9E6,0x7F79,0x0,0x0}, {0xF9E7,0x88CF,0x0,0x0}, {0xF9E8,0x88E1,0x0,0x0},
    435   {0xF9E9,0x91CC,0x0,0x0}, {0xF9EA,0x96E2,0x0,0x0}, {0xF9EB,0x533F,0x0,0x0},
    436   {0xF9EC,0x6EBA,0x0,0x0}, {0xF9ED,0x541D,0x0,0x0}, {0xF9EE,0x71D0,0x0,0x0},
    437   {0xF9EF,0x7498,0x0,0x0}, {0xF9F0,0x85FA,0x0,0x0}, {0xF9F1,0x96A3,0x0,0x0},
    438   {0xF9F2,0x9C57,0x0,0x0}, {0xF9F3,0x9E9F,0x0,0x0}, {0xF9F4,0x6797,0x0,0x0},
    439   {0xF9F5,0x6DCB,0x0,0x0}, {0xF9F6,0x81E8,0x0,0x0}, {0xF9F7,0x7ACB,0x0,0x0},
    440   {0xF9F8,0x7B20,0x0,0x0}, {0xF9F9,0x7C92,0x0,0x0}, {0xF9FA,0x72C0,0x0,0x0},
    441   {0xF9FB,0x7099,0x0,0x0}, {0xF9FC,0x8B58,0x0,0x0}, {0xF9FD,0x4EC0,0x0,0x0},
    442   {0xF9FE,0x8336,0x0,0x0}, {0xF9FF,0x523A,0x0,0x0}, {0xFA00,0x5207,0x0,0x0},
    443   {0xFA01,0x5EA6,0x0,0x0}, {0xFA02,0x62D3,0x0,0x0}, {0xFA03,0x7CD6,0x0,0x0},
    444   {0xFA04,0x5B85,0x0,0x0}, {0xFA05,0x6D1E,0x0,0x0}, {0xFA06,0x66B4,0x0,0x0},
    445   {0xFA07,0x8F3B,0x0,0x0}, {0xFA08,0x884C,0x0,0x0}, {0xFA09,0x964D,0x0,0x0},
    446   {0xFA0A,0x898B,0x0,0x0}, {0xFA0B,0x5ED3,0x0,0x0}, {0xFA0C,0x5140,0x0,0x0},
    447   {0xFA0D,0x55C0,0x0,0x0}, {0xFA10,0x585A,0x0,0x0}, {0xFA12,0x6674,0x0,0x0},
    448   {0xFA15,0x51DE,0x0,0x0}, {0xFA16,0x732A,0x0,0x0}, {0xFA17,0x76CA,0x0,0x0},
    449   {0xFA18,0x793C,0x0,0x0}, {0xFA19,0x795E,0x0,0x0}, {0xFA1A,0x7965,0x0,0x0},
    450   {0xFA1B,0x798F,0x0,0x0}, {0xFA1C,0x9756,0x0,0x0}, {0xFA1D,0x7CBE,0x0,0x0},
    451   {0xFA1E,0x7FBD,0x0,0x0}, {0xFA20,0x8612,0x0,0x0}, {0xFA22,0x8AF8,0x0,0x0},
    452   {0xFA25,0x9038,0x0,0x0}, {0xFA26,0x90FD,0x0,0x0}, {0xFA2A,0x98EF,0x0,0x0},
    453   {0xFA2B,0x98FC,0x0,0x0}, {0xFA2C,0x9928,0x0,0x0}, {0xFA2D,0x9DB4,0x0,0x0},
    454   {0xFB1F,0x5F2,0x5B7,0x0}, {0xFB2A,0x5E9,0x5C1,0x0}, {0xFB2B,0x5E9,0x5C2,0x0},
    455   {0xFB2C,0x5E9,0x5BC,0x5C1}, {0xFB2D,0x5E9,0x5BC,0x5C2}, {0xFB2E,0x5D0,0x5B7,0x0},
    456   {0xFB2F,0x5D0,0x5B8,0x0}, {0xFB30,0x5D0,0x5BC,0x0}, {0xFB31,0x5D1,0x5BC,0x0},
    457   {0xFB32,0x5D2,0x5BC,0x0}, {0xFB33,0x5D3,0x5BC,0x0}, {0xFB34,0x5D4,0x5BC,0x0},
    458   {0xFB35,0x5D5,0x5BC,0x0}, {0xFB36,0x5D6,0x5BC,0x0}, {0xFB38,0x5D8,0x5BC,0x0},
    459   {0xFB39,0x5D9,0x5BC,0x0}, {0xFB3A,0x5DA,0x5BC,0x0}, {0xFB3B,0x5DB,0x5BC,0x0},
    460   {0xFB3C,0x5DC,0x5BC,0x0}, {0xFB3E,0x5DE,0x5BC,0x0}, {0xFB40,0x5E0,0x5BC,0x0},
    461   {0xFB41,0x5E1,0x5BC,0x0}, {0xFB43,0x5E3,0x5BC,0x0}, {0xFB44,0x5E4,0x5BC,0x0},
    462   {0xFB46,0x5E6,0x5BC,0x0}, {0xFB47,0x5E7,0x5BC,0x0}, {0xFB48,0x5E8,0x5BC,0x0},
    463   {0xFB49,0x5E9,0x5BC,0x0}, {0xFB4A,0x5EA,0x5BC,0x0}, {0xFB4B,0x5D5,0x5B9,0x0},
    464   {0xFB4C,0x5D1,0x5BF,0x0}, {0xFB4D,0x5DB,0x5BF,0x0}, {0xFB4E,0x5E4,0x5BF,0x0}
     42  {0xC0,{0x41,0x300,0x0}}, {0xC1,{0x41,0x301,0x0}}, {0xC2,{0x41,0x302,0x0}},
     43  {0xC3,{0x41,0x303,0x0}}, {0xC4,{0x41,0x308,0x0}}, {0xC5,{0x41,0x30A,0x0}},
     44  {0xC7,{0x43,0x327,0x0}}, {0xC8,{0x45,0x300,0x0}}, {0xC9,{0x45,0x301,0x0}},
     45  {0xCA,{0x45,0x302,0x0}}, {0xCB,{0x45,0x308,0x0}}, {0xCC,{0x49,0x300,0x0}},
     46  {0xCD,{0x49,0x301,0x0}}, {0xCE,{0x49,0x302,0x0}}, {0xCF,{0x49,0x308,0x0}},
     47  {0xD1,{0x4E,0x303,0x0}}, {0xD2,{0x4F,0x300,0x0}}, {0xD3,{0x4F,0x301,0x0}},
     48  {0xD4,{0x4F,0x302,0x0}}, {0xD5,{0x4F,0x303,0x0}}, {0xD6,{0x4F,0x308,0x0}},
     49  {0xD9,{0x55,0x300,0x0}}, {0xDA,{0x55,0x301,0x0}}, {0xDB,{0x55,0x302,0x0}},
     50  {0xDC,{0x55,0x308,0x0}}, {0xDD,{0x59,0x301,0x0}}, {0xE0,{0x61,0x300,0x0}},
     51  {0xE1,{0x61,0x301,0x0}}, {0xE2,{0x61,0x302,0x0}}, {0xE3,{0x61,0x303,0x0}},
     52  {0xE4,{0x61,0x308,0x0}}, {0xE5,{0x61,0x30A,0x0}}, {0xE7,{0x63,0x327,0x0}},
     53  {0xE8,{0x65,0x300,0x0}}, {0xE9,{0x65,0x301,0x0}}, {0xEA,{0x65,0x302,0x0}},
     54  {0xEB,{0x65,0x308,0x0}}, {0xEC,{0x69,0x300,0x0}}, {0xED,{0x69,0x301,0x0}},
     55  {0xEE,{0x69,0x302,0x0}}, {0xEF,{0x69,0x308,0x0}}, {0xF1,{0x6E,0x303,0x0}},
     56  {0xF2,{0x6F,0x300,0x0}}, {0xF3,{0x6F,0x301,0x0}}, {0xF4,{0x6F,0x302,0x0}},
     57  {0xF5,{0x6F,0x303,0x0}}, {0xF6,{0x6F,0x308,0x0}}, {0xF9,{0x75,0x300,0x0}},
     58  {0xFA,{0x75,0x301,0x0}}, {0xFB,{0x75,0x302,0x0}}, {0xFC,{0x75,0x308,0x0}},
     59  {0xFD,{0x79,0x301,0x0}}, {0xFF,{0x79,0x308,0x0}}, {0x100,{0x41,0x304,0x0}},
     60  {0x101,{0x61,0x304,0x0}}, {0x102,{0x41,0x306,0x0}}, {0x103,{0x61,0x306,0x0}},
     61  {0x104,{0x41,0x328,0x0}}, {0x105,{0x61,0x328,0x0}}, {0x106,{0x43,0x301,0x0}},
     62  {0x107,{0x63,0x301,0x0}}, {0x108,{0x43,0x302,0x0}}, {0x109,{0x63,0x302,0x0}},
     63  {0x10A,{0x43,0x307,0x0}}, {0x10B,{0x63,0x307,0x0}}, {0x10C,{0x43,0x30C,0x0}},
     64  {0x10D,{0x63,0x30C,0x0}}, {0x10E,{0x44,0x30C,0x0}}, {0x10F,{0x64,0x30C,0x0}},
     65  {0x112,{0x45,0x304,0x0}}, {0x113,{0x65,0x304,0x0}}, {0x114,{0x45,0x306,0x0}},
     66  {0x115,{0x65,0x306,0x0}}, {0x116,{0x45,0x307,0x0}}, {0x117,{0x65,0x307,0x0}},
     67  {0x118,{0x45,0x328,0x0}}, {0x119,{0x65,0x328,0x0}}, {0x11A,{0x45,0x30C,0x0}},
     68  {0x11B,{0x65,0x30C,0x0}}, {0x11C,{0x47,0x302,0x0}}, {0x11D,{0x67,0x302,0x0}},
     69  {0x11E,{0x47,0x306,0x0}}, {0x11F,{0x67,0x306,0x0}}, {0x120,{0x47,0x307,0x0}},
     70  {0x121,{0x67,0x307,0x0}}, {0x122,{0x47,0x327,0x0}}, {0x123,{0x67,0x327,0x0}},
     71  {0x124,{0x48,0x302,0x0}}, {0x125,{0x68,0x302,0x0}}, {0x128,{0x49,0x303,0x0}},
     72  {0x129,{0x69,0x303,0x0}}, {0x12A,{0x49,0x304,0x0}}, {0x12B,{0x69,0x304,0x0}},
     73  {0x12C,{0x49,0x306,0x0}}, {0x12D,{0x69,0x306,0x0}}, {0x12E,{0x49,0x328,0x0}},
     74  {0x12F,{0x69,0x328,0x0}}, {0x130,{0x49,0x307,0x0}}, {0x134,{0x4A,0x302,0x0}},
     75  {0x135,{0x6A,0x302,0x0}}, {0x136,{0x4B,0x327,0x0}}, {0x137,{0x6B,0x327,0x0}},
     76  {0x139,{0x4C,0x301,0x0}}, {0x13A,{0x6C,0x301,0x0}}, {0x13B,{0x4C,0x327,0x0}},
     77  {0x13C,{0x6C,0x327,0x0}}, {0x13D,{0x4C,0x30C,0x0}}, {0x13E,{0x6C,0x30C,0x0}},
     78  {0x143,{0x4E,0x301,0x0}}, {0x144,{0x6E,0x301,0x0}}, {0x145,{0x4E,0x327,0x0}},
     79  {0x146,{0x6E,0x327,0x0}}, {0x147,{0x4E,0x30C,0x0}}, {0x148,{0x6E,0x30C,0x0}},
     80  {0x14C,{0x4F,0x304,0x0}}, {0x14D,{0x6F,0x304,0x0}}, {0x14E,{0x4F,0x306,0x0}},
     81  {0x14F,{0x6F,0x306,0x0}}, {0x150,{0x4F,0x30B,0x0}}, {0x151,{0x6F,0x30B,0x0}},
     82  {0x154,{0x52,0x301,0x0}}, {0x155,{0x72,0x301,0x0}}, {0x156,{0x52,0x327,0x0}},
     83  {0x157,{0x72,0x327,0x0}}, {0x158,{0x52,0x30C,0x0}}, {0x159,{0x72,0x30C,0x0}},
     84  {0x15A,{0x53,0x301,0x0}}, {0x15B,{0x73,0x301,0x0}}, {0x15C,{0x53,0x302,0x0}},
     85  {0x15D,{0x73,0x302,0x0}}, {0x15E,{0x53,0x327,0x0}}, {0x15F,{0x73,0x327,0x0}},
     86  {0x160,{0x53,0x30C,0x0}}, {0x161,{0x73,0x30C,0x0}}, {0x162,{0x54,0x327,0x0}},
     87  {0x163,{0x74,0x327,0x0}}, {0x164,{0x54,0x30C,0x0}}, {0x165,{0x74,0x30C,0x0}},
     88  {0x168,{0x55,0x303,0x0}}, {0x169,{0x75,0x303,0x0}}, {0x16A,{0x55,0x304,0x0}},
     89  {0x16B,{0x75,0x304,0x0}}, {0x16C,{0x55,0x306,0x0}}, {0x16D,{0x75,0x306,0x0}},
     90  {0x16E,{0x55,0x30A,0x0}}, {0x16F,{0x75,0x30A,0x0}}, {0x170,{0x55,0x30B,0x0}},
     91  {0x171,{0x75,0x30B,0x0}}, {0x172,{0x55,0x328,0x0}}, {0x173,{0x75,0x328,0x0}},
     92  {0x174,{0x57,0x302,0x0}}, {0x175,{0x77,0x302,0x0}}, {0x176,{0x59,0x302,0x0}},
     93  {0x177,{0x79,0x302,0x0}}, {0x178,{0x59,0x308,0x0}}, {0x179,{0x5A,0x301,0x0}},
     94  {0x17A,{0x7A,0x301,0x0}}, {0x17B,{0x5A,0x307,0x0}}, {0x17C,{0x7A,0x307,0x0}},
     95  {0x17D,{0x5A,0x30C,0x0}}, {0x17E,{0x7A,0x30C,0x0}}, {0x1A0,{0x4F,0x31B,0x0}},
     96  {0x1A1,{0x6F,0x31B,0x0}}, {0x1AF,{0x55,0x31B,0x0}}, {0x1B0,{0x75,0x31B,0x0}},
     97  {0x1CD,{0x41,0x30C,0x0}}, {0x1CE,{0x61,0x30C,0x0}}, {0x1CF,{0x49,0x30C,0x0}},
     98  {0x1D0,{0x69,0x30C,0x0}}, {0x1D1,{0x4F,0x30C,0x0}}, {0x1D2,{0x6F,0x30C,0x0}},
     99  {0x1D3,{0x55,0x30C,0x0}}, {0x1D4,{0x75,0x30C,0x0}}, {0x1D5,{0xDC,0x304,0x0}},
     100  {0x1D6,{0xFC,0x304,0x0}}, {0x1D7,{0xDC,0x301,0x0}}, {0x1D8,{0xFC,0x301,0x0}},
     101  {0x1D9,{0xDC,0x30C,0x0}}, {0x1DA,{0xFC,0x30C,0x0}}, {0x1DB,{0xDC,0x300,0x0}},
     102  {0x1DC,{0xFC,0x300,0x0}}, {0x1DE,{0xC4,0x304,0x0}}, {0x1DF,{0xE4,0x304,0x0}},
     103  {0x1E0,{0x41,0x307,0x304}}, {0x1E1,{0x61,0x307,0x304}}, {0x1E2,{0xC6,0x304,0x0}},
     104  {0x1E3,{0xE6,0x304,0x0}}, {0x1E6,{0x47,0x30C,0x0}}, {0x1E7,{0x67,0x30C,0x0}},
     105  {0x1E8,{0x4B,0x30C,0x0}}, {0x1E9,{0x6B,0x30C,0x0}}, {0x1EA,{0x4F,0x328,0x0}},
     106  {0x1EB,{0x6F,0x328,0x0}}, {0x1EC,{0x1EA,0x304,0x0}}, {0x1ED,{0x1EB,0x304,0x0}},
     107  {0x1EE,{0x1B7,0x30C,0x0}}, {0x1EF,{0x292,0x30C,0x0}}, {0x1F0,{0x6A,0x30C,0x0}},
     108  {0x1F4,{0x47,0x301,0x0}}, {0x1F5,{0x67,0x301,0x0}}, {0x1FA,{0xC5,0x301,0x0}},
     109  {0x1FB,{0xE5,0x301,0x0}}, {0x1FC,{0xC6,0x301,0x0}}, {0x1FD,{0xE6,0x301,0x0}},
     110  {0x1FE,{0xD8,0x301,0x0}}, {0x1FF,{0xF8,0x301,0x0}}, {0x200,{0x41,0x30F,0x0}},
     111  {0x201,{0x61,0x30F,0x0}}, {0x202,{0x41,0x311,0x0}}, {0x203,{0x61,0x311,0x0}},
     112  {0x204,{0x45,0x30F,0x0}}, {0x205,{0x65,0x30F,0x0}}, {0x206,{0x45,0x311,0x0}},
     113  {0x207,{0x65,0x311,0x0}}, {0x208,{0x49,0x30F,0x0}}, {0x209,{0x69,0x30F,0x0}},
     114  {0x20A,{0x49,0x311,0x0}}, {0x20B,{0x69,0x311,0x0}}, {0x20C,{0x4F,0x30F,0x0}},
     115  {0x20D,{0x6F,0x30F,0x0}}, {0x20E,{0x4F,0x311,0x0}}, {0x20F,{0x6F,0x311,0x0}},
     116  {0x210,{0x52,0x30F,0x0}}, {0x211,{0x72,0x30F,0x0}}, {0x212,{0x52,0x311,0x0}},
     117  {0x213,{0x72,0x311,0x0}}, {0x214,{0x55,0x30F,0x0}}, {0x215,{0x75,0x30F,0x0}},
     118  {0x216,{0x55,0x311,0x0}}, {0x217,{0x75,0x311,0x0}}, {0x310,{0x306,0x307,0x0}},
     119  {0x340,{0x300,0x0,0x0}}, {0x341,{0x301,0x0,0x0}}, {0x343,{0x313,0x0,0x0}},
     120  {0x344,{0x308,0x30D,0x0}}, {0x374,{0x2B9,0x0,0x0}}, {0x37E,{0x3B,0x0,0x0}},
     121  {0x385,{0xA8,0x30D,0x0}}, {0x386,{0x391,0x30D,0x0}}, {0x387,{0xB7,0x0,0x0}},
     122  {0x388,{0x395,0x30D,0x0}}, {0x389,{0x397,0x30D,0x0}}, {0x38A,{0x399,0x30D,0x0}},
     123  {0x38C,{0x39F,0x30D,0x0}}, {0x38E,{0x3A5,0x30D,0x0}}, {0x38F,{0x3A9,0x30D,0x0}},
     124  {0x390,{0x3B9,0x344,0x0}}, {0x3AA,{0x399,0x308,0x0}}, {0x3AB,{0x3A5,0x308,0x0}},
     125  {0x3AC,{0x3B1,0x30D,0x0}}, {0x3AD,{0x3B5,0x30D,0x0}}, {0x3AE,{0x3B7,0x30D,0x0}},
     126  {0x3AF,{0x3B9,0x30D,0x0}}, {0x3B0,{0x3C5,0x344,0x0}}, {0x3CA,{0x3B9,0x308,0x0}},
     127  {0x3CB,{0x3C5,0x308,0x0}}, {0x3CC,{0x3BF,0x30D,0x0}}, {0x3CD,{0x3C5,0x30D,0x0}},
     128  {0x3CE,{0x3C9,0x30D,0x0}}, {0x3D3,{0x3D2,0x30D,0x0}}, {0x3D4,{0x3D2,0x308,0x0}},
     129  {0x401,{0x415,0x308,0x0}}, {0x403,{0x413,0x301,0x0}}, {0x407,{0x406,0x308,0x0}},
     130  {0x40C,{0x41A,0x301,0x0}}, {0x40E,{0x423,0x306,0x0}}, {0x419,{0x418,0x306,0x0}},
     131  {0x439,{0x438,0x306,0x0}}, {0x451,{0x435,0x308,0x0}}, {0x453,{0x433,0x301,0x0}},
     132  {0x457,{0x456,0x308,0x0}}, {0x45C,{0x43A,0x301,0x0}}, {0x45E,{0x443,0x306,0x0}},
     133  {0x476,{0x474,0x30F,0x0}}, {0x477,{0x475,0x30F,0x0}}, {0x4C1,{0x416,0x306,0x0}},
     134  {0x4C2,{0x436,0x306,0x0}}, {0x4D0,{0x410,0x306,0x0}}, {0x4D1,{0x430,0x306,0x0}},
     135  {0x4D2,{0x410,0x308,0x0}}, {0x4D3,{0x430,0x308,0x0}}, {0x4D6,{0x415,0x306,0x0}},
     136  {0x4D7,{0x435,0x306,0x0}}, {0x4DA,{0x4D8,0x308,0x0}}, {0x4DB,{0x4D9,0x308,0x0}},
     137  {0x4DC,{0x416,0x308,0x0}}, {0x4DD,{0x436,0x308,0x0}}, {0x4DE,{0x417,0x308,0x0}},
     138  {0x4DF,{0x437,0x308,0x0}}, {0x4E2,{0x418,0x304,0x0}}, {0x4E3,{0x438,0x304,0x0}},
     139  {0x4E4,{0x418,0x308,0x0}}, {0x4E5,{0x438,0x308,0x0}}, {0x4E6,{0x41E,0x308,0x0}},
     140  {0x4E7,{0x43E,0x308,0x0}}, {0x4EA,{0x4E8,0x308,0x0}}, {0x4EB,{0x4E9,0x308,0x0}},
     141  {0x4EE,{0x423,0x304,0x0}}, {0x4EF,{0x443,0x304,0x0}}, {0x4F0,{0x423,0x308,0x0}},
     142  {0x4F1,{0x443,0x308,0x0}}, {0x4F2,{0x423,0x30B,0x0}}, {0x4F3,{0x443,0x30B,0x0}},
     143  {0x4F4,{0x427,0x308,0x0}}, {0x4F5,{0x447,0x308,0x0}}, {0x4F8,{0x42B,0x308,0x0}},
     144  {0x4F9,{0x44B,0x308,0x0}}, {0x929,{0x928,0x93C,0x0}}, {0x931,{0x930,0x93C,0x0}},
     145  {0x934,{0x933,0x93C,0x0}}, {0x958,{0x915,0x93C,0x0}}, {0x959,{0x916,0x93C,0x0}},
     146  {0x95A,{0x917,0x93C,0x0}}, {0x95B,{0x91C,0x93C,0x0}}, {0x95C,{0x921,0x93C,0x0}},
     147  {0x95D,{0x922,0x93C,0x0}}, {0x95E,{0x92B,0x93C,0x0}}, {0x95F,{0x92F,0x93C,0x0}},
     148  {0x9B0,{0x9AC,0x9BC,0x0}}, {0x9CB,{0x9C7,0x9BE,0x0}}, {0x9CC,{0x9C7,0x9D7,0x0}},
     149  {0x9DC,{0x9A1,0x9BC,0x0}}, {0x9DD,{0x9A2,0x9BC,0x0}}, {0x9DF,{0x9AF,0x9BC,0x0}},
     150  {0xA59,{0xA16,0xA3C,0x0}}, {0xA5A,{0xA17,0xA3C,0x0}}, {0xA5B,{0xA1C,0xA3C,0x0}},
     151  {0xA5C,{0xA21,0xA3C,0x0}}, {0xA5E,{0xA2B,0xA3C,0x0}}, {0xB48,{0xB47,0xB56,0x0}},
     152  {0xB4B,{0xB47,0xB3E,0x0}}, {0xB4C,{0xB47,0xB57,0x0}}, {0xB5C,{0xB21,0xB3C,0x0}},
     153  {0xB5D,{0xB22,0xB3C,0x0}}, {0xB5F,{0xB2F,0xB3C,0x0}}, {0xB94,{0xB92,0xBD7,0x0}},
     154  {0xBCA,{0xBC6,0xBBE,0x0}}, {0xBCB,{0xBC7,0xBBE,0x0}}, {0xBCC,{0xBC6,0xBD7,0x0}},
     155  {0xC48,{0xC46,0xC56,0x0}}, {0xCC0,{0xCBF,0xCD5,0x0}}, {0xCC7,{0xCC6,0xCD5,0x0}},
     156  {0xCC8,{0xCC6,0xCD6,0x0}}, {0xCCA,{0xCC6,0xCC2,0x0}}, {0xCCB,{0xCC6,0xCC2,0xCD5}},
     157  {0xD4A,{0xD46,0xD3E,0x0}}, {0xD4B,{0xD47,0xD3E,0x0}}, {0xD4C,{0xD46,0xD57,0x0}},
     158  {0xE33,{0xE4D,0xE32,0x0}}, {0xEB3,{0xECD,0xEB2,0x0}}, {0xF43,{0xF42,0xFB7,0x0}},
     159  {0xF4D,{0xF4C,0xFB7,0x0}}, {0xF52,{0xF51,0xFB7,0x0}}, {0xF57,{0xF56,0xFB7,0x0}},
     160  {0xF5C,{0xF5B,0xFB7,0x0}}, {0xF69,{0xF40,0xFB5,0x0}}, {0xF73,{0xF72,0xF71,0x0}},
     161  {0xF75,{0xF71,0xF74,0x0}}, {0xF76,{0xFB2,0xF80,0x0}}, {0xF77,{0xF76,0xF71,0x0}},
     162  {0xF78,{0xFB3,0xF80,0x0}}, {0xF79,{0xF78,0xF71,0x0}}, {0xF81,{0xF80,0xF71,0x0}},
     163  {0xF93,{0xF92,0xFB7,0x0}}, {0xF9D,{0xF9C,0xFB7,0x0}}, {0xFA2,{0xFA1,0xFB7,0x0}},
     164  {0xFA7,{0xFA6,0xFB7,0x0}}, {0xFAC,{0xFAB,0xFB7,0x0}}, {0xFB9,{0xF90,0xFB5,0x0}},
     165  {0x1E00,{0x41,0x325,0x0}}, {0x1E01,{0x61,0x325,0x0}}, {0x1E02,{0x42,0x307,0x0}},
     166  {0x1E03,{0x62,0x307,0x0}}, {0x1E04,{0x42,0x323,0x0}}, {0x1E05,{0x62,0x323,0x0}},
     167  {0x1E06,{0x42,0x331,0x0}}, {0x1E07,{0x62,0x331,0x0}}, {0x1E08,{0xC7,0x301,0x0}},
     168  {0x1E09,{0xE7,0x301,0x0}}, {0x1E0A,{0x44,0x307,0x0}}, {0x1E0B,{0x64,0x307,0x0}},
     169  {0x1E0C,{0x44,0x323,0x0}}, {0x1E0D,{0x64,0x323,0x0}}, {0x1E0E,{0x44,0x331,0x0}},
     170  {0x1E0F,{0x64,0x331,0x0}}, {0x1E10,{0x44,0x327,0x0}}, {0x1E11,{0x64,0x327,0x0}},
     171  {0x1E12,{0x44,0x32D,0x0}}, {0x1E13,{0x64,0x32D,0x0}}, {0x1E14,{0x112,0x300,0x0}},
     172  {0x1E15,{0x113,0x300,0x0}}, {0x1E16,{0x112,0x301,0x0}}, {0x1E17,{0x113,0x301,0x0}},
     173  {0x1E18,{0x45,0x32D,0x0}}, {0x1E19,{0x65,0x32D,0x0}}, {0x1E1A,{0x45,0x330,0x0}},
     174  {0x1E1B,{0x65,0x330,0x0}}, {0x1E1C,{0x114,0x327,0x0}}, {0x1E1D,{0x115,0x327,0x0}},
     175  {0x1E1E,{0x46,0x307,0x0}}, {0x1E1F,{0x66,0x307,0x0}}, {0x1E20,{0x47,0x304,0x0}},
     176  {0x1E21,{0x67,0x304,0x0}}, {0x1E22,{0x48,0x307,0x0}}, {0x1E23,{0x68,0x307,0x0}},
     177  {0x1E24,{0x48,0x323,0x0}}, {0x1E25,{0x68,0x323,0x0}}, {0x1E26,{0x48,0x308,0x0}},
     178  {0x1E27,{0x68,0x308,0x0}}, {0x1E28,{0x48,0x327,0x0}}, {0x1E29,{0x68,0x327,0x0}},
     179  {0x1E2A,{0x48,0x32E,0x0}}, {0x1E2B,{0x68,0x32E,0x0}}, {0x1E2C,{0x49,0x330,0x0}},
     180  {0x1E2D,{0x69,0x330,0x0}}, {0x1E2E,{0xCF,0x301,0x0}}, {0x1E2F,{0xEF,0x301,0x0}},
     181  {0x1E30,{0x4B,0x301,0x0}}, {0x1E31,{0x6B,0x301,0x0}}, {0x1E32,{0x4B,0x323,0x0}},
     182  {0x1E33,{0x6B,0x323,0x0}}, {0x1E34,{0x4B,0x331,0x0}}, {0x1E35,{0x6B,0x331,0x0}},
     183  {0x1E36,{0x4C,0x323,0x0}}, {0x1E37,{0x6C,0x323,0x0}}, {0x1E38,{0x1E36,0x304,0x0}},
     184  {0x1E39,{0x1E37,0x304,0x0}}, {0x1E3A,{0x4C,0x331,0x0}}, {0x1E3B,{0x6C,0x331,0x0}},
     185  {0x1E3C,{0x4C,0x32D,0x0}}, {0x1E3D,{0x6C,0x32D,0x0}}, {0x1E3E,{0x4D,0x301,0x0}},
     186  {0x1E3F,{0x6D,0x301,0x0}}, {0x1E40,{0x4D,0x307,0x0}}, {0x1E41,{0x6D,0x307,0x0}},
     187  {0x1E42,{0x4D,0x323,0x0}}, {0x1E43,{0x6D,0x323,0x0}}, {0x1E44,{0x4E,0x307,0x0}},
     188  {0x1E45,{0x6E,0x307,0x0}}, {0x1E46,{0x4E,0x323,0x0}}, {0x1E47,{0x6E,0x323,0x0}},
     189  {0x1E48,{0x4E,0x331,0x0}}, {0x1E49,{0x6E,0x331,0x0}}, {0x1E4A,{0x4E,0x32D,0x0}},
     190  {0x1E4B,{0x6E,0x32D,0x0}}, {0x1E4C,{0xD5,0x301,0x0}}, {0x1E4D,{0xF5,0x301,0x0}},
     191  {0x1E4E,{0xD5,0x308,0x0}}, {0x1E4F,{0xF5,0x308,0x0}}, {0x1E50,{0x14C,0x300,0x0}},
     192  {0x1E51,{0x14D,0x300,0x0}}, {0x1E52,{0x14C,0x301,0x0}}, {0x1E53,{0x14D,0x301,0x0}},
     193  {0x1E54,{0x50,0x301,0x0}}, {0x1E55,{0x70,0x301,0x0}}, {0x1E56,{0x50,0x307,0x0}},
     194  {0x1E57,{0x70,0x307,0x0}}, {0x1E58,{0x52,0x307,0x0}}, {0x1E59,{0x72,0x307,0x0}},
     195  {0x1E5A,{0x52,0x323,0x0}}, {0x1E5B,{0x72,0x323,0x0}}, {0x1E5C,{0x1E5A,0x304,0x0}},
     196  {0x1E5D,{0x1E5B,0x304,0x0}}, {0x1E5E,{0x52,0x331,0x0}}, {0x1E5F,{0x72,0x331,0x0}},
     197  {0x1E60,{0x53,0x307,0x0}}, {0x1E61,{0x73,0x307,0x0}}, {0x1E62,{0x53,0x323,0x0}},
     198  {0x1E63,{0x73,0x323,0x0}}, {0x1E64,{0x15A,0x307,0x0}}, {0x1E65,{0x15B,0x307,0x0}},
     199  {0x1E66,{0x160,0x307,0x0}}, {0x1E67,{0x161,0x307,0x0}}, {0x1E68,{0x1E62,0x307,0x0}},
     200  {0x1E69,{0x1E63,0x307,0x0}}, {0x1E6A,{0x54,0x307,0x0}}, {0x1E6B,{0x74,0x307,0x0}},
     201  {0x1E6C,{0x54,0x323,0x0}}, {0x1E6D,{0x74,0x323,0x0}}, {0x1E6E,{0x54,0x331,0x0}},
     202  {0x1E6F,{0x74,0x331,0x0}}, {0x1E70,{0x54,0x32D,0x0}}, {0x1E71,{0x74,0x32D,0x0}},
     203  {0x1E72,{0x55,0x324,0x0}}, {0x1E73,{0x75,0x324,0x0}}, {0x1E74,{0x55,0x330,0x0}},
     204  {0x1E75,{0x75,0x330,0x0}}, {0x1E76,{0x55,0x32D,0x0}}, {0x1E77,{0x75,0x32D,0x0}},
     205  {0x1E78,{0x168,0x301,0x0}}, {0x1E79,{0x169,0x301,0x0}}, {0x1E7A,{0x16A,0x308,0x0}},
     206  {0x1E7B,{0x16B,0x308,0x0}}, {0x1E7C,{0x56,0x303,0x0}}, {0x1E7D,{0x76,0x303,0x0}},
     207  {0x1E7E,{0x56,0x323,0x0}}, {0x1E7F,{0x76,0x323,0x0}}, {0x1E80,{0x57,0x300,0x0}},
     208  {0x1E81,{0x77,0x300,0x0}}, {0x1E82,{0x57,0x301,0x0}}, {0x1E83,{0x77,0x301,0x0}},
     209  {0x1E84,{0x57,0x308,0x0}}, {0x1E85,{0x77,0x308,0x0}}, {0x1E86,{0x57,0x307,0x0}},
     210  {0x1E87,{0x77,0x307,0x0}}, {0x1E88,{0x57,0x323,0x0}}, {0x1E89,{0x77,0x323,0x0}},
     211  {0x1E8A,{0x58,0x307,0x0}}, {0x1E8B,{0x78,0x307,0x0}}, {0x1E8C,{0x58,0x308,0x0}},
     212  {0x1E8D,{0x78,0x308,0x0}}, {0x1E8E,{0x59,0x307,0x0}}, {0x1E8F,{0x79,0x307,0x0}},
     213  {0x1E90,{0x5A,0x302,0x0}}, {0x1E91,{0x7A,0x302,0x0}}, {0x1E92,{0x5A,0x323,0x0}},
     214  {0x1E93,{0x7A,0x323,0x0}}, {0x1E94,{0x5A,0x331,0x0}}, {0x1E95,{0x7A,0x331,0x0}},
     215  {0x1E96,{0x68,0x331,0x0}}, {0x1E97,{0x74,0x308,0x0}}, {0x1E98,{0x77,0x30A,0x0}},
     216  {0x1E99,{0x79,0x30A,0x0}}, {0x1E9B,{0x17F,0x307,0x0}}, {0x1EA0,{0x41,0x323,0x0}},
     217  {0x1EA1,{0x61,0x323,0x0}}, {0x1EA2,{0x41,0x309,0x0}}, {0x1EA3,{0x61,0x309,0x0}},
     218  {0x1EA4,{0xC2,0x301,0x0}}, {0x1EA5,{0xE2,0x301,0x0}}, {0x1EA6,{0xC2,0x300,0x0}},
     219  {0x1EA7,{0xE2,0x300,0x0}}, {0x1EA8,{0xC2,0x309,0x0}}, {0x1EA9,{0xE2,0x309,0x0}},
     220  {0x1EAA,{0xC2,0x303,0x0}}, {0x1EAB,{0xE2,0x303,0x0}}, {0x1EAC,{0xC2,0x323,0x0}},
     221  {0x1EAD,{0xE2,0x323,0x0}}, {0x1EAE,{0x102,0x301,0x0}}, {0x1EAF,{0x103,0x301,0x0}},
     222  {0x1EB0,{0x102,0x300,0x0}}, {0x1EB1,{0x103,0x300,0x0}}, {0x1EB2,{0x102,0x309,0x0}},
     223  {0x1EB3,{0x103,0x309,0x0}}, {0x1EB4,{0x102,0x303,0x0}}, {0x1EB5,{0x103,0x303,0x0}},
     224  {0x1EB6,{0x102,0x323,0x0}}, {0x1EB7,{0x103,0x323,0x0}}, {0x1EB8,{0x45,0x323,0x0}},
     225  {0x1EB9,{0x65,0x323,0x0}}, {0x1EBA,{0x45,0x309,0x0}}, {0x1EBB,{0x65,0x309,0x0}},
     226  {0x1EBC,{0x45,0x303,0x0}}, {0x1EBD,{0x65,0x303,0x0}}, {0x1EBE,{0xCA,0x301,0x0}},
     227  {0x1EBF,{0xEA,0x301,0x0}}, {0x1EC0,{0xCA,0x300,0x0}}, {0x1EC1,{0xEA,0x300,0x0}},
     228  {0x1EC2,{0xCA,0x309,0x0}}, {0x1EC3,{0xEA,0x309,0x0}}, {0x1EC4,{0xCA,0x303,0x0}},
     229  {0x1EC5,{0xEA,0x303,0x0}}, {0x1EC6,{0xCA,0x323,0x0}}, {0x1EC7,{0xEA,0x323,0x0}},
     230  {0x1EC8,{0x49,0x309,0x0}}, {0x1EC9,{0x69,0x309,0x0}}, {0x1ECA,{0x49,0x323,0x0}},
     231  {0x1ECB,{0x69,0x323,0x0}}, {0x1ECC,{0x4F,0x323,0x0}}, {0x1ECD,{0x6F,0x323,0x0}},
     232  {0x1ECE,{0x4F,0x309,0x0}}, {0x1ECF,{0x6F,0x309,0x0}}, {0x1ED0,{0xD4,0x301,0x0}},
     233  {0x1ED1,{0xF4,0x301,0x0}}, {0x1ED2,{0xD4,0x300,0x0}}, {0x1ED3,{0xF4,0x300,0x0}},
     234  {0x1ED4,{0xD4,0x309,0x0}}, {0x1ED5,{0xF4,0x309,0x0}}, {0x1ED6,{0xD4,0x303,0x0}},
     235  {0x1ED7,{0xF4,0x303,0x0}}, {0x1ED8,{0xD4,0x323,0x0}}, {0x1ED9,{0xF4,0x323,0x0}},
     236  {0x1EDA,{0x1A0,0x301,0x0}}, {0x1EDB,{0x1A1,0x301,0x0}}, {0x1EDC,{0x1A0,0x300,0x0}},
     237  {0x1EDD,{0x1A1,0x300,0x0}}, {0x1EDE,{0x1A0,0x309,0x0}}, {0x1EDF,{0x1A1,0x309,0x0}},
     238  {0x1EE0,{0x1A0,0x303,0x0}}, {0x1EE1,{0x1A1,0x303,0x0}}, {0x1EE2,{0x1A0,0x323,0x0}},
     239  {0x1EE3,{0x1A1,0x323,0x0}}, {0x1EE4,{0x55,0x323,0x0}}, {0x1EE5,{0x75,0x323,0x0}},
     240  {0x1EE6,{0x55,0x309,0x0}}, {0x1EE7,{0x75,0x309,0x0}}, {0x1EE8,{0x1AF,0x301,0x0}},
     241  {0x1EE9,{0x1B0,0x301,0x0}}, {0x1EEA,{0x1AF,0x300,0x0}}, {0x1EEB,{0x1B0,0x300,0x0}},
     242  {0x1EEC,{0x1AF,0x309,0x0}}, {0x1EED,{0x1B0,0x309,0x0}}, {0x1EEE,{0x1AF,0x303,0x0}},
     243  {0x1EEF,{0x1B0,0x303,0x0}}, {0x1EF0,{0x1AF,0x323,0x0}}, {0x1EF1,{0x1B0,0x323,0x0}},
     244  {0x1EF2,{0x59,0x300,0x0}}, {0x1EF3,{0x79,0x300,0x0}}, {0x1EF4,{0x59,0x323,0x0}},
     245  {0x1EF5,{0x79,0x323,0x0}}, {0x1EF6,{0x59,0x309,0x0}}, {0x1EF7,{0x79,0x309,0x0}},
     246  {0x1EF8,{0x59,0x303,0x0}}, {0x1EF9,{0x79,0x303,0x0}}, {0x1F00,{0x3B1,0x313,0x0}},
     247  {0x1F01,{0x3B1,0x314,0x0}}, {0x1F02,{0x1F00,0x300,0x0}}, {0x1F03,{0x1F01,0x300,0x0}},
     248  {0x1F04,{0x1F00,0x301,0x0}}, {0x1F05,{0x1F01,0x301,0x0}}, {0x1F06,{0x1F00,0x342,0x0}},
     249  {0x1F07,{0x1F01,0x342,0x0}}, {0x1F08,{0x391,0x313,0x0}}, {0x1F09,{0x391,0x314,0x0}},
     250  {0x1F0A,{0x1F08,0x300,0x0}}, {0x1F0B,{0x1F09,0x300,0x0}}, {0x1F0C,{0x1F08,0x301,0x0}},
     251  {0x1F0D,{0x1F09,0x301,0x0}}, {0x1F0E,{0x1F08,0x342,0x0}}, {0x1F0F,{0x1F09,0x342,0x0}},
     252  {0x1F10,{0x3B5,0x313,0x0}}, {0x1F11,{0x3B5,0x314,0x0}}, {0x1F12,{0x1F10,0x300,0x0}},
     253  {0x1F13,{0x1F11,0x300,0x0}}, {0x1F14,{0x1F10,0x301,0x0}}, {0x1F15,{0x1F11,0x301,0x0}},
     254  {0x1F18,{0x395,0x313,0x0}}, {0x1F19,{0x395,0x314,0x0}}, {0x1F1A,{0x1F18,0x300,0x0}},
     255  {0x1F1B,{0x1F19,0x300,0x0}}, {0x1F1C,{0x1F18,0x301,0x0}}, {0x1F1D,{0x1F19,0x301,0x0}},
     256  {0x1F20,{0x3B7,0x313,0x0}}, {0x1F21,{0x3B7,0x314,0x0}}, {0x1F22,{0x1F20,0x300,0x0}},
     257  {0x1F23,{0x1F21,0x300,0x0}}, {0x1F24,{0x1F20,0x301,0x0}}, {0x1F25,{0x1F21,0x301,0x0}},
     258  {0x1F26,{0x1F20,0x342,0x0}}, {0x1F27,{0x1F21,0x342,0x0}}, {0x1F28,{0x397,0x313,0x0}},
     259  {0x1F29,{0x397,0x314,0x0}}, {0x1F2A,{0x1F28,0x300,0x0}}, {0x1F2B,{0x1F29,0x300,0x0}},
     260  {0x1F2C,{0x1F28,0x301,0x0}}, {0x1F2D,{0x1F29,0x301,0x0}}, {0x1F2E,{0x1F28,0x342,0x0}},
     261  {0x1F2F,{0x1F29,0x342,0x0}}, {0x1F30,{0x3B9,0x313,0x0}}, {0x1F31,{0x3B9,0x314,0x0}},
     262  {0x1F32,{0x1F30,0x300,0x0}}, {0x1F33,{0x1F31,0x300,0x0}}, {0x1F34,{0x1F30,0x301,0x0}},
     263  {0x1F35,{0x1F31,0x301,0x0}}, {0x1F36,{0x1F30,0x342,0x0}}, {0x1F37,{0x1F31,0x342,0x0}},
     264  {0x1F38,{0x399,0x313,0x0}}, {0x1F39,{0x399,0x314,0x0}}, {0x1F3A,{0x1F38,0x300,0x0}},
     265  {0x1F3B,{0x1F39,0x300,0x0}}, {0x1F3C,{0x1F38,0x301,0x0}}, {0x1F3D,{0x1F39,0x301,0x0}},
     266  {0x1F3E,{0x1F38,0x342,0x0}}, {0x1F3F,{0x1F39,0x342,0x0}}, {0x1F40,{0x3BF,0x313,0x0}},
     267  {0x1F41,{0x3BF,0x314,0x0}}, {0x1F42,{0x1F40,0x300,0x0}}, {0x1F43,{0x1F41,0x300,0x0}},
     268  {0x1F44,{0x1F40,0x301,0x0}}, {0x1F45,{0x1F41,0x301,0x0}}, {0x1F48,{0x39F,0x313,0x0}},
     269  {0x1F49,{0x39F,0x314,0x0}}, {0x1F4A,{0x1F48,0x300,0x0}}, {0x1F4B,{0x1F49,0x300,0x0}},
     270  {0x1F4C,{0x1F48,0x301,0x0}}, {0x1F4D,{0x1F49,0x301,0x0}}, {0x1F50,{0x3C5,0x313,0x0}},
     271  {0x1F51,{0x3C5,0x314,0x0}}, {0x1F52,{0x1F50,0x300,0x0}}, {0x1F53,{0x1F51,0x300,0x0}},
     272  {0x1F54,{0x1F50,0x301,0x0}}, {0x1F55,{0x1F51,0x301,0x0}}, {0x1F56,{0x1F50,0x342,0x0}},
     273  {0x1F57,{0x1F51,0x342,0x0}}, {0x1F59,{0x3A5,0x314,0x0}}, {0x1F5B,{0x1F59,0x300,0x0}},
     274  {0x1F5D,{0x1F59,0x301,0x0}}, {0x1F5F,{0x1F59,0x342,0x0}}, {0x1F60,{0x3C9,0x313,0x0}},
     275  {0x1F61,{0x3C9,0x314,0x0}}, {0x1F62,{0x1F60,0x300,0x0}}, {0x1F63,{0x1F61,0x300,0x0}},
     276  {0x1F64,{0x1F60,0x301,0x0}}, {0x1F65,{0x1F61,0x301,0x0}}, {0x1F66,{0x1F60,0x342,0x0}},
     277  {0x1F67,{0x1F61,0x342,0x0}}, {0x1F68,{0x3A9,0x313,0x0}}, {0x1F69,{0x3A9,0x314,0x0}},
     278  {0x1F6A,{0x1F68,0x300,0x0}}, {0x1F6B,{0x1F69,0x300,0x0}}, {0x1F6C,{0x1F68,0x301,0x0}},
     279  {0x1F6D,{0x1F69,0x301,0x0}}, {0x1F6E,{0x1F68,0x342,0x0}}, {0x1F6F,{0x1F69,0x342,0x0}},
     280  {0x1F70,{0x3B1,0x300,0x0}}, {0x1F71,{0x3B1,0x301,0x0}}, {0x1F72,{0x3B5,0x300,0x0}},
     281  {0x1F73,{0x3B5,0x301,0x0}}, {0x1F74,{0x3B7,0x300,0x0}}, {0x1F75,{0x3B7,0x301,0x0}},
     282  {0x1F76,{0x3B9,0x300,0x0}}, {0x1F77,{0x3B9,0x301,0x0}}, {0x1F78,{0x3BF,0x300,0x0}},
     283  {0x1F79,{0x3BF,0x301,0x0}}, {0x1F7A,{0x3C5,0x300,0x0}}, {0x1F7B,{0x3C5,0x301,0x0}},
     284  {0x1F7C,{0x3C9,0x300,0x0}}, {0x1F7D,{0x3C9,0x301,0x0}}, {0x1F80,{0x1F00,0x345,0x0}},
     285  {0x1F81,{0x1F01,0x345,0x0}}, {0x1F82,{0x1F02,0x345,0x0}}, {0x1F83,{0x1F03,0x345,0x0}},
     286  {0x1F84,{0x1F04,0x345,0x0}}, {0x1F85,{0x1F05,0x345,0x0}}, {0x1F86,{0x1F06,0x345,0x0}},
     287  {0x1F87,{0x1F07,0x345,0x0}}, {0x1F88,{0x1F08,0x345,0x0}}, {0x1F89,{0x1F09,0x345,0x0}},
     288  {0x1F8A,{0x1F0A,0x345,0x0}}, {0x1F8B,{0x1F0B,0x345,0x0}}, {0x1F8C,{0x1F0C,0x345,0x0}},
     289  {0x1F8D,{0x1F0D,0x345,0x0}}, {0x1F8E,{0x1F0E,0x345,0x0}}, {0x1F8F,{0x1F0F,0x345,0x0}},
     290  {0x1F90,{0x1F20,0x345,0x0}}, {0x1F91,{0x1F21,0x345,0x0}}, {0x1F92,{0x1F22,0x345,0x0}},
     291  {0x1F93,{0x1F23,0x345,0x0}}, {0x1F94,{0x1F24,0x345,0x0}}, {0x1F95,{0x1F25,0x345,0x0}},
     292  {0x1F96,{0x1F26,0x345,0x0}}, {0x1F97,{0x1F27,0x345,0x0}}, {0x1F98,{0x1F28,0x345,0x0}},
     293  {0x1F99,{0x1F29,0x345,0x0}}, {0x1F9A,{0x1F2A,0x345,0x0}}, {0x1F9B,{0x1F2B,0x345,0x0}},
     294  {0x1F9C,{0x1F2C,0x345,0x0}}, {0x1F9D,{0x1F2D,0x345,0x0}}, {0x1F9E,{0x1F2E,0x345,0x0}},
     295  {0x1F9F,{0x1F2F,0x345,0x0}}, {0x1FA0,{0x1F60,0x345,0x0}}, {0x1FA1,{0x1F61,0x345,0x0}},
     296  {0x1FA2,{0x1F62,0x345,0x0}}, {0x1FA3,{0x1F63,0x345,0x0}}, {0x1FA4,{0x1F64,0x345,0x0}},
     297  {0x1FA5,{0x1F65,0x345,0x0}}, {0x1FA6,{0x1F66,0x345,0x0}}, {0x1FA7,{0x1F67,0x345,0x0}},
     298  {0x1FA8,{0x1F68,0x345,0x0}}, {0x1FA9,{0x1F69,0x345,0x0}}, {0x1FAA,{0x1F6A,0x345,0x0}},
     299  {0x1FAB,{0x1F6B,0x345,0x0}}, {0x1FAC,{0x1F6C,0x345,0x0}}, {0x1FAD,{0x1F6D,0x345,0x0}},
     300  {0x1FAE,{0x1F6E,0x345,0x0}}, {0x1FAF,{0x1F6F,0x345,0x0}}, {0x1FB0,{0x3B1,0x306,0x0}},
     301  {0x1FB1,{0x3B1,0x304,0x0}}, {0x1FB2,{0x1F70,0x345,0x0}}, {0x1FB3,{0x3B1,0x345,0x0}},
     302  {0x1FB4,{0x1F71,0x345,0x0}}, {0x1FB6,{0x3B1,0x342,0x0}}, {0x1FB7,{0x1FB6,0x345,0x0}},
     303  {0x1FB8,{0x391,0x306,0x0}}, {0x1FB9,{0x391,0x304,0x0}}, {0x1FBA,{0x391,0x300,0x0}},
     304  {0x1FBB,{0x391,0x301,0x0}}, {0x1FBC,{0x391,0x345,0x0}}, {0x1FBE,{0x3B9,0x0,0x0}},
     305  {0x1FC1,{0xA8,0x342,0x0}}, {0x1FC2,{0x1F74,0x345,0x0}}, {0x1FC3,{0x3B7,0x345,0x0}},
     306  {0x1FC4,{0x1F75,0x345,0x0}}, {0x1FC6,{0x3B7,0x342,0x0}}, {0x1FC7,{0x1FC6,0x345,0x0}},
     307  {0x1FC8,{0x395,0x300,0x0}}, {0x1FC9,{0x395,0x301,0x0}}, {0x1FCA,{0x397,0x300,0x0}},
     308  {0x1FCB,{0x397,0x301,0x0}}, {0x1FCC,{0x397,0x345,0x0}}, {0x1FCD,{0x1FBF,0x300,0x0}},
     309  {0x1FCE,{0x1FBF,0x301,0x0}}, {0x1FCF,{0x1FBF,0x342,0x0}}, {0x1FD0,{0x3B9,0x306,0x0}},
     310  {0x1FD1,{0x3B9,0x304,0x0}}, {0x1FD2,{0x3CA,0x300,0x0}}, {0x1FD3,{0x3CA,0x301,0x0}},
     311  {0x1FD6,{0x3B9,0x342,0x0}}, {0x1FD7,{0x3CA,0x342,0x0}}, {0x1FD8,{0x399,0x306,0x0}},
     312  {0x1FD9,{0x399,0x304,0x0}}, {0x1FDA,{0x399,0x300,0x0}}, {0x1FDB,{0x399,0x301,0x0}},
     313  {0x1FDD,{0x1FFE,0x300,0x0}}, {0x1FDE,{0x1FFE,0x301,0x0}}, {0x1FDF,{0x1FFE,0x342,0x0}},
     314  {0x1FE0,{0x3C5,0x306,0x0}}, {0x1FE1,{0x3C5,0x304,0x0}}, {0x1FE2,{0x3CB,0x300,0x0}},
     315  {0x1FE3,{0x3CB,0x301,0x0}}, {0x1FE4,{0x3C1,0x313,0x0}}, {0x1FE5,{0x3C1,0x314,0x0}},
     316  {0x1FE6,{0x3C5,0x342,0x0}}, {0x1FE7,{0x3CB,0x342,0x0}}, {0x1FE8,{0x3A5,0x306,0x0}},
     317  {0x1FE9,{0x3A5,0x304,0x0}}, {0x1FEA,{0x3A5,0x300,0x0}}, {0x1FEB,{0x3A5,0x301,0x0}},
     318  {0x1FEC,{0x3A1,0x314,0x0}}, {0x1FED,{0xA8,0x300,0x0}}, {0x1FEE,{0xA8,0x301,0x0}},
     319  {0x1FEF,{0x60,0x0,0x0}}, {0x1FF2,{0x1F7C,0x345,0x0}}, {0x1FF3,{0x3C9,0x345,0x0}},
     320  {0x1FF4,{0x1F79,0x345,0x0}}, {0x1FF6,{0x3C9,0x342,0x0}}, {0x1FF7,{0x1FF6,0x345,0x0}},
     321  {0x1FF8,{0x39F,0x300,0x0}}, {0x1FF9,{0x39F,0x301,0x0}}, {0x1FFA,{0x3A9,0x300,0x0}},
     322  {0x1FFB,{0x3A9,0x301,0x0}}, {0x1FFC,{0x3A9,0x345,0x0}}, {0x1FFD,{0xB4,0x0,0x0}},
     323  {0x2000,{0x2002,0x0,0x0}}, {0x2001,{0x2003,0x0,0x0}}, {0x2126,{0x3A9,0x0,0x0}},
     324  {0x212A,{0x4B,0x0,0x0}}, {0x212B,{0xC5,0x0,0x0}}, {0x2204,{0x2203,0x338,0x0}},
     325  {0x2209,{0x2208,0x338,0x0}}, {0x220C,{0x220B,0x338,0x0}}, {0x2224,{0x2223,0x338,0x0}},
     326  {0x2226,{0x2225,0x338,0x0}}, {0x2241,{0x7E,0x338,0x0}}, {0x2244,{0x2243,0x338,0x0}},
     327  {0x2247,{0x2245,0x338,0x0}}, {0x2249,{0x2248,0x338,0x0}}, {0x2260,{0x3D,0x338,0x0}},
     328  {0x2262,{0x2261,0x338,0x0}}, {0x226D,{0x224D,0x338,0x0}}, {0x226E,{0x3C,0x338,0x0}},
     329  {0x226F,{0x3E,0x338,0x0}}, {0x2270,{0x2264,0x338,0x0}}, {0x2271,{0x2265,0x338,0x0}},
     330  {0x2274,{0x2272,0x338,0x0}}, {0x2275,{0x2273,0x338,0x0}}, {0x2278,{0x2276,0x338,0x0}},
     331  {0x2279,{0x2277,0x338,0x0}}, {0x2280,{0x227A,0x338,0x0}}, {0x2281,{0x227B,0x338,0x0}},
     332  {0x2284,{0x2282,0x338,0x0}}, {0x2285,{0x2283,0x338,0x0}}, {0x2288,{0x2286,0x338,0x0}},
     333  {0x2289,{0x2287,0x338,0x0}}, {0x22AC,{0x22A2,0x338,0x0}}, {0x22AD,{0x22A8,0x338,0x0}},
     334  {0x22AE,{0x22A9,0x338,0x0}}, {0x22AF,{0x22AB,0x338,0x0}}, {0x22E0,{0x227C,0x338,0x0}},
     335  {0x22E1,{0x227D,0x338,0x0}}, {0x22E2,{0x2291,0x338,0x0}}, {0x22E3,{0x2292,0x338,0x0}},
     336  {0x22EA,{0x22B2,0x338,0x0}}, {0x22EB,{0x22B3,0x338,0x0}}, {0x22EC,{0x22B4,0x338,0x0}},
     337  {0x22ED,{0x22B5,0x338,0x0}}, {0x2329,{0x3008,0x0,0x0}}, {0x232A,{0x3009,0x0,0x0}},
     338  {0x304C,{0x304B,0x3099,0x0}}, {0x304E,{0x304D,0x3099,0x0}}, {0x3050,{0x304F,0x3099,0x0}},
     339  {0x3052,{0x3051,0x3099,0x0}}, {0x3054,{0x3053,0x3099,0x0}}, {0x3056,{0x3055,0x3099,0x0}},
     340  {0x3058,{0x3057,0x3099,0x0}}, {0x305A,{0x3059,0x3099,0x0}}, {0x305C,{0x305B,0x3099,0x0}},
     341  {0x305E,{0x305D,0x3099,0x0}}, {0x3060,{0x305F,0x3099,0x0}}, {0x3062,{0x3061,0x3099,0x0}},
     342  {0x3065,{0x3064,0x3099,0x0}}, {0x3067,{0x3066,0x3099,0x0}}, {0x3069,{0x3068,0x3099,0x0}},
     343  {0x3070,{0x306F,0x3099,0x0}}, {0x3071,{0x306F,0x309A,0x0}}, {0x3073,{0x3072,0x3099,0x0}},
     344  {0x3074,{0x3072,0x309A,0x0}}, {0x3076,{0x3075,0x3099,0x0}}, {0x3077,{0x3075,0x309A,0x0}},
     345  {0x3079,{0x3078,0x3099,0x0}}, {0x307A,{0x3078,0x309A,0x0}}, {0x307C,{0x307B,0x3099,0x0}},
     346  {0x307D,{0x307B,0x309A,0x0}}, {0x3094,{0x3046,0x3099,0x0}}, {0x309E,{0x309D,0x3099,0x0}},
     347  {0x30AC,{0x30AB,0x3099,0x0}}, {0x30AE,{0x30AD,0x3099,0x0}}, {0x30B0,{0x30AF,0x3099,0x0}},
     348  {0x30B2,{0x30B1,0x3099,0x0}}, {0x30B4,{0x30B3,0x3099,0x0}}, {0x30B6,{0x30B5,0x3099,0x0}},
     349  {0x30B8,{0x30B7,0x3099,0x0}}, {0x30BA,{0x30B9,0x3099,0x0}}, {0x30BC,{0x30BB,0x3099,0x0}},
     350  {0x30BE,{0x30BD,0x3099,0x0}}, {0x30C0,{0x30BF,0x3099,0x0}}, {0x30C2,{0x30C1,0x3099,0x0}},
     351  {0x30C5,{0x30C4,0x3099,0x0}}, {0x30C7,{0x30C6,0x3099,0x0}}, {0x30C9,{0x30C8,0x3099,0x0}},
     352  {0x30D0,{0x30CF,0x3099,0x0}}, {0x30D1,{0x30CF,0x309A,0x0}}, {0x30D3,{0x30D2,0x3099,0x0}},
     353  {0x30D4,{0x30D2,0x309A,0x0}}, {0x30D6,{0x30D5,0x3099,0x0}}, {0x30D7,{0x30D5,0x309A,0x0}},
     354  {0x30D9,{0x30D8,0x3099,0x0}}, {0x30DA,{0x30D8,0x309A,0x0}}, {0x30DC,{0x30DB,0x3099,0x0}},
     355  {0x30DD,{0x30DB,0x309A,0x0}}, {0x30F4,{0x30A6,0x3099,0x0}}, {0x30F7,{0x30EF,0x3099,0x0}},
     356  {0x30F8,{0x30F0,0x3099,0x0}}, {0x30F9,{0x30F1,0x3099,0x0}}, {0x30FA,{0x30F2,0x3099,0x0}},
     357  {0x30FE,{0x30FD,0x3099,0x0}}, {0xF900,{0x8C48,0x0,0x0}}, {0xF901,{0x66F4,0x0,0x0}},
     358  {0xF902,{0x8ECA,0x0,0x0}}, {0xF903,{0x8CC8,0x0,0x0}}, {0xF904,{0x6ED1,0x0,0x0}},
     359  {0xF905,{0x4E32,0x0,0x0}}, {0xF906,{0x53E5,0x0,0x0}}, {0xF907,{0x9F9C,0x0,0x0}},
     360  {0xF908,{0x9F9C,0x0,0x0}}, {0xF909,{0x5951,0x0,0x0}}, {0xF90A,{0x91D1,0x0,0x0}},
     361  {0xF90B,{0x5587,0x0,0x0}}, {0xF90C,{0x5948,0x0,0x0}}, {0xF90D,{0x61F6,0x0,0x0}},
     362  {0xF90E,{0x7669,0x0,0x0}}, {0xF90F,{0x7F85,0x0,0x0}}, {0xF910,{0x863F,0x0,0x0}},
     363  {0xF911,{0x87BA,0x0,0x0}}, {0xF912,{0x88F8,0x0,0x0}}, {0xF913,{0x908F,0x0,0x0}},
     364  {0xF914,{0x6A02,0x0,0x0}}, {0xF915,{0x6D1B,0x0,0x0}}, {0xF916,{0x70D9,0x0,0x0}},
     365  {0xF917,{0x73DE,0x0,0x0}}, {0xF918,{0x843D,0x0,0x0}}, {0xF919,{0x916A,0x0,0x0}},
     366  {0xF91A,{0x99F1,0x0,0x0}}, {0xF91B,{0x4E82,0x0,0x0}}, {0xF91C,{0x5375,0x0,0x0}},
     367  {0xF91D,{0x6B04,0x0,0x0}}, {0xF91E,{0x721B,0x0,0x0}}, {0xF91F,{0x862D,0x0,0x0}},
     368  {0xF920,{0x9E1E,0x0,0x0}}, {0xF921,{0x5D50,0x0,0x0}}, {0xF922,{0x6FEB,0x0,0x0}},
     369  {0xF923,{0x85CD,0x0,0x0}}, {0xF924,{0x8964,0x0,0x0}}, {0xF925,{0x62C9,0x0,0x0}},
     370  {0xF926,{0x81D8,0x0,0x0}}, {0xF927,{0x881F,0x0,0x0}}, {0xF928,{0x5ECA,0x0,0x0}},
     371  {0xF929,{0x6717,0x0,0x0}}, {0xF92A,{0x6D6A,0x0,0x0}}, {0xF92B,{0x72FC,0x0,0x0}},
     372  {0xF92C,{0x90CE,0x0,0x0}}, {0xF92D,{0x4F86,0x0,0x0}}, {0xF92E,{0x51B7,0x0,0x0}},
     373  {0xF92F,{0x52DE,0x0,0x0}}, {0xF930,{0x64C4,0x0,0x0}}, {0xF931,{0x6AD3,0x0,0x0}},
     374  {0xF932,{0x7210,0x0,0x0}}, {0xF933,{0x76E7,0x0,0x0}}, {0xF934,{0x8001,0x0,0x0}},
     375  {0xF935,{0x8606,0x0,0x0}}, {0xF936,{0x865C,0x0,0x0}}, {0xF937,{0x8DEF,0x0,0x0}},
     376  {0xF938,{0x9732,0x0,0x0}}, {0xF939,{0x9B6F,0x0,0x0}}, {0xF93A,{0x9DFA,0x0,0x0}},
     377  {0xF93B,{0x788C,0x0,0x0}}, {0xF93C,{0x797F,0x0,0x0}}, {0xF93D,{0x7DA0,0x0,0x0}},
     378  {0xF93E,{0x83C9,0x0,0x0}}, {0xF93F,{0x9304,0x0,0x0}}, {0xF940,{0x9E7F,0x0,0x0}},
     379  {0xF941,{0x8AD6,0x0,0x0}}, {0xF942,{0x58DF,0x0,0x0}}, {0xF943,{0x5F04,0x0,0x0}},
     380  {0xF944,{0x7C60,0x0,0x0}}, {0xF945,{0x807E,0x0,0x0}}, {0xF946,{0x7262,0x0,0x0}},
     381  {0xF947,{0x78CA,0x0,0x0}}, {0xF948,{0x8CC2,0x0,0x0}}, {0xF949,{0x96F7,0x0,0x0}},
     382  {0xF94A,{0x58D8,0x0,0x0}}, {0xF94B,{0x5C62,0x0,0x0}}, {0xF94C,{0x6A13,0x0,0x0}},
     383  {0xF94D,{0x6DDA,0x0,0x0}}, {0xF94E,{0x6F0F,0x0,0x0}}, {0xF94F,{0x7D2F,0x0,0x0}},
     384  {0xF950,{0x7E37,0x0,0x0}}, {0xF951,{0x96FB,0x0,0x0}}, {0xF952,{0x52D2,0x0,0x0}},
     385  {0xF953,{0x808B,0x0,0x0}}, {0xF954,{0x51DC,0x0,0x0}}, {0xF955,{0x51CC,0x0,0x0}},
     386  {0xF956,{0x7A1C,0x0,0x0}}, {0xF957,{0x7DBE,0x0,0x0}}, {0xF958,{0x83F1,0x0,0x0}},
     387  {0xF959,{0x9675,0x0,0x0}}, {0xF95A,{0x8B80,0x0,0x0}}, {0xF95B,{0x62CF,0x0,0x0}},
     388  {0xF95C,{0x6A02,0x0,0x0}}, {0xF95D,{0x8AFE,0x0,0x0}}, {0xF95E,{0x4E39,0x0,0x0}},
     389  {0xF95F,{0x5BE7,0x0,0x0}}, {0xF960,{0x6012,0x0,0x0}}, {0xF961,{0x7387,0x0,0x0}},
     390  {0xF962,{0x7570,0x0,0x0}}, {0xF963,{0x5317,0x0,0x0}}, {0xF964,{0x78FB,0x0,0x0}},
     391  {0xF965,{0x4FBF,0x0,0x0}}, {0xF966,{0x5FA9,0x0,0x0}}, {0xF967,{0x4E0D,0x0,0x0}},
     392  {0xF968,{0x6CCC,0x0,0x0}}, {0xF969,{0x6578,0x0,0x0}}, {0xF96A,{0x7D22,0x0,0x0}},
     393  {0xF96B,{0x53C3,0x0,0x0}}, {0xF96C,{0x585E,0x0,0x0}}, {0xF96D,{0x7701,0x0,0x0}},
     394  {0xF96E,{0x8449,0x0,0x0}}, {0xF96F,{0x8AAA,0x0,0x0}}, {0xF970,{0x6BBA,0x0,0x0}},
     395  {0xF971,{0x8FB0,0x0,0x0}}, {0xF972,{0x6C88,0x0,0x0}}, {0xF973,{0x62FE,0x0,0x0}},
     396  {0xF974,{0x82E5,0x0,0x0}}, {0xF975,{0x63A0,0x0,0x0}}, {0xF976,{0x7565,0x0,0x0}},
     397  {0xF977,{0x4EAE,0x0,0x0}}, {0xF978,{0x5169,0x0,0x0}}, {0xF979,{0x51C9,0x0,0x0}},
     398  {0xF97A,{0x6881,0x0,0x0}}, {0xF97B,{0x7CE7,0x0,0x0}}, {0xF97C,{0x826F,0x0,0x0}},
     399  {0xF97D,{0x8AD2,0x0,0x0}}, {0xF97E,{0x91CF,0x0,0x0}}, {0xF97F,{0x52F5,0x0,0x0}},
     400  {0xF980,{0x5442,0x0,0x0}}, {0xF981,{0x5973,0x0,0x0}}, {0xF982,{0x5EEC,0x0,0x0}},
     401  {0xF983,{0x65C5,0x0,0x0}}, {0xF984,{0x6FFE,0x0,0x0}}, {0xF985,{0x792A,0x0,0x0}},
     402  {0xF986,{0x95AD,0x0,0x0}}, {0xF987,{0x9A6A,0x0,0x0}}, {0xF988,{0x9E97,0x0,0x0}},
     403  {0xF989,{0x9ECE,0x0,0x0}}, {0xF98A,{0x529B,0x0,0x0}}, {0xF98B,{0x66C6,0x0,0x0}},
     404  {0xF98C,{0x6B77,0x0,0x0}}, {0xF98D,{0x8F62,0x0,0x0}}, {0xF98E,{0x5E74,0x0,0x0}},
     405  {0xF98F,{0x6190,0x0,0x0}}, {0xF990,{0x6200,0x0,0x0}}, {0xF991,{0x649A,0x0,0x0}},
     406  {0xF992,{0x6F23,0x0,0x0}}, {0xF993,{0x7149,0x0,0x0}}, {0xF994,{0x7489,0x0,0x0}},
     407  {0xF995,{0x79CA,0x0,0x0}}, {0xF996,{0x7DF4,0x0,0x0}}, {0xF997,{0x806F,0x0,0x0}},
     408  {0xF998,{0x8F26,0x0,0x0}}, {0xF999,{0x84EE,0x0,0x0}}, {0xF99A,{0x9023,0x0,0x0}},
     409  {0xF99B,{0x934A,0x0,0x0}}, {0xF99C,{0x5217,0x0,0x0}}, {0xF99D,{0x52A3,0x0,0x0}},
     410  {0xF99E,{0x54BD,0x0,0x0}}, {0xF99F,{0x70C8,0x0,0x0}}, {0xF9A0,{0x88C2,0x0,0x0}},
     411  {0xF9A1,{0x8AAA,0x0,0x0}}, {0xF9A2,{0x5EC9,0x0,0x0}}, {0xF9A3,{0x5FF5,0x0,0x0}},
     412  {0xF9A4,{0x637B,0x0,0x0}}, {0xF9A5,{0x6BAE,0x0,0x0}}, {0xF9A6,{0x7C3E,0x0,0x0}},
     413  {0xF9A7,{0x7375,0x0,0x0}}, {0xF9A8,{0x4EE4,0x0,0x0}}, {0xF9A9,{0x56F9,0x0,0x0}},
     414  {0xF9AA,{0x5BE7,0x0,0x0}}, {0xF9AB,{0x5DBA,0x0,0x0}}, {0xF9AC,{0x601C,0x0,0x0}},
     415  {0xF9AD,{0x73B2,0x0,0x0}}, {0xF9AE,{0x7469,0x0,0x0}}, {0xF9AF,{0x7F9A,0x0,0x0}},
     416  {0xF9B0,{0x8046,0x0,0x0}}, {0xF9B1,{0x9234,0x0,0x0}}, {0xF9B2,{0x96F6,0x0,0x0}},
     417  {0xF9B3,{0x9748,0x0,0x0}}, {0xF9B4,{0x9818,0x0,0x0}}, {0xF9B5,{0x4F8B,0x0,0x0}},
     418  {0xF9B6,{0x79AE,0x0,0x0}}, {0xF9B7,{0x91B4,0x0,0x0}}, {0xF9B8,{0x96B8,0x0,0x0}},
     419  {0xF9B9,{0x60E1,0x0,0x0}}, {0xF9BA,{0x4E86,0x0,0x0}}, {0xF9BB,{0x50DA,0x0,0x0}},
     420  {0xF9BC,{0x5BEE,0x0,0x0}}, {0xF9BD,{0x5C3F,0x0,0x0}}, {0xF9BE,{0x6599,0x0,0x0}},
     421  {0xF9BF,{0x6A02,0x0,0x0}}, {0xF9C0,{0x71CE,0x0,0x0}}, {0xF9C1,{0x7642,0x0,0x0}},
     422  {0xF9C2,{0x84FC,0x0,0x0}}, {0xF9C3,{0x907C,0x0,0x0}}, {0xF9C4,{0x9F8D,0x0,0x0}},
     423  {0xF9C5,{0x6688,0x0,0x0}}, {0xF9C6,{0x962E,0x0,0x0}}, {0xF9C7,{0x5289,0x0,0x0}},
     424  {0xF9C8,{0x677B,0x0,0x0}}, {0xF9C9,{0x67F3,0x0,0x0}}, {0xF9CA,{0x6D41,0x0,0x0}},
     425  {0xF9CB,{0x6E9C,0x0,0x0}}, {0xF9CC,{0x7409,0x0,0x0}}, {0xF9CD,{0x7559,0x0,0x0}},
     426  {0xF9CE,{0x786B,0x0,0x0}}, {0xF9CF,{0x7D10,0x0,0x0}}, {0xF9D0,{0x985E,0x0,0x0}},
     427  {0xF9D1,{0x516D,0x0,0x0}}, {0xF9D2,{0x622E,0x0,0x0}}, {0xF9D3,{0x9678,0x0,0x0}},
     428  {0xF9D4,{0x502B,0x0,0x0}}, {0xF9D5,{0x5D19,0x0,0x0}}, {0xF9D6,{0x6DEA,0x0,0x0}},
     429  {0xF9D7,{0x8F2A,0x0,0x0}}, {0xF9D8,{0x5F8B,0x0,0x0}}, {0xF9D9,{0x6144,0x0,0x0}},
     430  {0xF9DA,{0x6817,0x0,0x0}}, {0xF9DB,{0x7387,0x0,0x0}}, {0xF9DC,{0x9686,0x0,0x0}},
     431  {0xF9DD,{0x5229,0x0,0x0}}, {0xF9DE,{0x540F,0x0,0x0}}, {0xF9DF,{0x5C65,0x0,0x0}},
     432  {0xF9E0,{0x6613,0x0,0x0}}, {0xF9E1,{0x674E,0x0,0x0}}, {0xF9E2,{0x68A8,0x0,0x0}},
     433  {0xF9E3,{0x6CE5,0x0,0x0}}, {0xF9E4,{0x7406,0x0,0x0}}, {0xF9E5,{0x75E2,0x0,0x0}},
     434  {0xF9E6,{0x7F79,0x0,0x0}}, {0xF9E7,{0x88CF,0x0,0x0}}, {0xF9E8,{0x88E1,0x0,0x0}},
     435  {0xF9E9,{0x91CC,0x0,0x0}}, {0xF9EA,{0x96E2,0x0,0x0}}, {0xF9EB,{0x533F,0x0,0x0}},
     436  {0xF9EC,{0x6EBA,0x0,0x0}}, {0xF9ED,{0x541D,0x0,0x0}}, {0xF9EE,{0x71D0,0x0,0x0}},
     437  {0xF9EF,{0x7498,0x0,0x0}}, {0xF9F0,{0x85FA,0x0,0x0}}, {0xF9F1,{0x96A3,0x0,0x0}},
     438  {0xF9F2,{0x9C57,0x0,0x0}}, {0xF9F3,{0x9E9F,0x0,0x0}}, {0xF9F4,{0x6797,0x0,0x0}},
     439  {0xF9F5,{0x6DCB,0x0,0x0}}, {0xF9F6,{0x81E8,0x0,0x0}}, {0xF9F7,{0x7ACB,0x0,0x0}},
     440  {0xF9F8,{0x7B20,0x0,0x0}}, {0xF9F9,{0x7C92,0x0,0x0}}, {0xF9FA,{0x72C0,0x0,0x0}},
     441  {0xF9FB,{0x7099,0x0,0x0}}, {0xF9FC,{0x8B58,0x0,0x0}}, {0xF9FD,{0x4EC0,0x0,0x0}},
     442  {0xF9FE,{0x8336,0x0,0x0}}, {0xF9FF,{0x523A,0x0,0x0}}, {0xFA00,{0x5207,0x0,0x0}},
     443  {0xFA01,{0x5EA6,0x0,0x0}}, {0xFA02,{0x62D3,0x0,0x0}}, {0xFA03,{0x7CD6,0x0,0x0}},
     444  {0xFA04,{0x5B85,0x0,0x0}}, {0xFA05,{0x6D1E,0x0,0x0}}, {0xFA06,{0x66B4,0x0,0x0}},
     445  {0xFA07,{0x8F3B,0x0,0x0}}, {0xFA08,{0x884C,0x0,0x0}}, {0xFA09,{0x964D,0x0,0x0}},
     446  {0xFA0A,{0x898B,0x0,0x0}}, {0xFA0B,{0x5ED3,0x0,0x0}}, {0xFA0C,{0x5140,0x0,0x0}},
     447  {0xFA0D,{0x55C0,0x0,0x0}}, {0xFA10,{0x585A,0x0,0x0}}, {0xFA12,{0x6674,0x0,0x0}},
     448  {0xFA15,{0x51DE,0x0,0x0}}, {0xFA16,{0x732A,0x0,0x0}}, {0xFA17,{0x76CA,0x0,0x0}},
     449  {0xFA18,{0x793C,0x0,0x0}}, {0xFA19,{0x795E,0x0,0x0}}, {0xFA1A,{0x7965,0x0,0x0}},
     450  {0xFA1B,{0x798F,0x0,0x0}}, {0xFA1C,{0x9756,0x0,0x0}}, {0xFA1D,{0x7CBE,0x0,0x0}},
     451  {0xFA1E,{0x7FBD,0x0,0x0}}, {0xFA20,{0x8612,0x0,0x0}}, {0xFA22,{0x8AF8,0x0,0x0}},
     452  {0xFA25,{0x9038,0x0,0x0}}, {0xFA26,{0x90FD,0x0,0x0}}, {0xFA2A,{0x98EF,0x0,0x0}},
     453  {0xFA2B,{0x98FC,0x0,0x0}}, {0xFA2C,{0x9928,0x0,0x0}}, {0xFA2D,{0x9DB4,0x0,0x0}},
     454  {0xFB1F,{0x5F2,0x5B7,0x0}}, {0xFB2A,{0x5E9,0x5C1,0x0}}, {0xFB2B,{0x5E9,0x5C2,0x0}},
     455  {0xFB2C,{0x5E9,0x5BC,0x5C1}}, {0xFB2D,{0x5E9,0x5BC,0x5C2}}, {0xFB2E,{0x5D0,0x5B7,0x0}},
     456  {0xFB2F,{0x5D0,0x5B8,0x0}}, {0xFB30,{0x5D0,0x5BC,0x0}}, {0xFB31,{0x5D1,0x5BC,0x0}},
     457  {0xFB32,{0x5D2,0x5BC,0x0}}, {0xFB33,{0x5D3,0x5BC,0x0}}, {0xFB34,{0x5D4,0x5BC,0x0}},
     458  {0xFB35,{0x5D5,0x5BC,0x0}}, {0xFB36,{0x5D6,0x5BC,0x0}}, {0xFB38,{0x5D8,0x5BC,0x0}},
     459  {0xFB39,{0x5D9,0x5BC,0x0}}, {0xFB3A,{0x5DA,0x5BC,0x0}}, {0xFB3B,{0x5DB,0x5BC,0x0}},
     460  {0xFB3C,{0x5DC,0x5BC,0x0}}, {0xFB3E,{0x5DE,0x5BC,0x0}}, {0xFB40,{0x5E0,0x5BC,0x0}},
     461  {0xFB41,{0x5E1,0x5BC,0x0}}, {0xFB43,{0x5E3,0x5BC,0x0}}, {0xFB44,{0x5E4,0x5BC,0x0}},
     462  {0xFB46,{0x5E6,0x5BC,0x0}}, {0xFB47,{0x5E7,0x5BC,0x0}}, {0xFB48,{0x5E8,0x5BC,0x0}},
     463  {0xFB49,{0x5E9,0x5BC,0x0}}, {0xFB4A,{0x5EA,0x5BC,0x0}}, {0xFB4B,{0x5D5,0x5B9,0x0}},
     464  {0xFB4C,{0x5D1,0x5BF,0x0}}, {0xFB4D,{0x5DB,0x5BF,0x0}}, {0xFB4E,{0x5E4,0x5BF,0x0}}
    465465};
    466466
     
    14641464 * column
    14651465 */
    1466 /*unsigned long *unicode_cat_data;*/
     1466/*mg_u_long *unicode_cat_data;*/
    14671467
    14681468void create_unicat_data () {
     
    14701470  int min_start=0;
    14711471  int min_end=0;
    1472   register unsigned long min_value=0; /* filling the whole byte */
     1472  register mg_u_long min_value=0; /* filling the whole byte */
    14731473 
    14741474  const unirange *letter_here = letter_info;
     
    14801480
    14811481  if (unicode_cat_data != NULL) return;
    1482   unicode_cat_data = (unsigned long *) malloc (0x10000/4);
     1482  unicode_cat_data = (mg_u_long *) malloc (0x10000/4);
    14831483  if (unicode_cat_data == NULL) return;
    14841484 
     
    15291529   
    15301530      } else {
    1531     register unsigned long mask = 3 << ((i % 16) * 2);
     1531    register mg_u_long mask = 3 << ((i % 16) * 2);
    15321532    unicode_cat_data[i/16] = (unicode_cat_data[i/16] & (~mask)) |
    15331533                  (min_value & mask);
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/win32in.c

    r16583 r25147  
    33#include "win32in.h"
    44
    5 unsigned long htonl(unsigned long x) {
     5mg_u_long htonl(mg_u_long x) {
    66#if defined (LITTLE_ENDIAN) || defined (_LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN)
    77    x = ((x >> 24) & 0x000000FF) | ((x >> 8) & 0x0000FF00) |
     
    2424}
    2525
    26 unsigned long ntohl(unsigned long x) {
     26mg_u_long ntohl(mg_u_long x) {
    2727#if defined (LITTLE_ENDIAN) || defined (_LITTLE_ENDIAN) || defined(__LITTLE_ENDIAN)
    2828    x = ((x >> 24) & 0x000000FF) | ((x >> 8) & 0x0000FF00) |
     
    5050
    5151main () {
    52     long x;
     52    mg_s_long x;
    5353    short sx;
    5454
  • main/trunk/greenstone2/common-src/indexers/mgpp/lib/win32in.h

    r16583 r25147  
    66
    77#include "longlong.h"
     8#include "mglong.h"
    89#ifdef __cplusplus
    910extern "C" {
    1011#endif
    1112
    12 unsigned long htonl(unsigned long x);
    13 unsigned long ntohl(unsigned long x);
     13mg_u_long htonl(mg_u_long x);
     14mg_u_long ntohl(mg_u_long x);
    1415mg_ullong ntohll(mg_ullong x);
    1516unsigned short htons(unsigned short x);
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/FIvfLevelInfo.cpp

    r16583 r25147  
    7979 
    8080  // read in the array size
    81   unsigned long arrSize = 0;
     81  mg_u_long arrSize = 0;
    8282  if (!ReadVarLenUL (f, arrSize)) return false;
    8383 
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/FIvfLevelInfo.h

    r16583 r25147  
    3131#endif
    3232
     33#include "mglong.h"
    3334#include <stdio.h>
    3435#include "UCArray.h"
     
    3839public:
    3940  UCArray levelTag;
    40   unsigned long numEntries; // N for level
    41   unsigned long approxWeightsDiskPtr;
    42   unsigned long exactWeightsDiskPtr;
     41  mg_u_long numEntries; // N for level
     42  mg_u_long approxWeightsDiskPtr;
     43  mg_u_long exactWeightsDiskPtr;
    4344  bool workInLevel;  // this is just a working variable,
    4445                     // it is not saved or read from the file
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/FText.cpp

    r16583 r25147  
    4141}
    4242
    43 #define BITADDRLEN (sizeof(unsigned long) + sizeof(unsigned char))
     43#define BITADDRLEN (sizeof(mg_u_long) + sizeof(unsigned char))
    4444
    4545 
     
    8585bool FTextLevel::Read (FILE *f) {
    8686  // read in the array size
    87   unsigned long arrSize = 0;
     87  mg_u_long arrSize = 0;
    8888  if (!ReadVarLenUL (f, arrSize)) return false;
    8989
     
    141141
    142142bool TextIdx::Read (FILE *f, const TextLevelInfo &levelInfo,
    143             unsigned long docNum) {
     143            mg_u_long docNum) {
    144144  if (!SeekTextIdx (f, levelInfo, docNum)) return false;
    145145  return Read (f);
     
    166166
    167167bool SeekTextIdx (FILE *f, const TextLevelInfo &levelInfo,
    168           unsigned long docNum) {
     168          mg_u_long docNum) {
    169169  if (docNum == 0 || docNum > levelInfo.numEntries) return false;
    170170 
    171   unsigned long seekPos = levelInfo.textIdxPtr + (docNum-1) * TEXTIDXLEN;
     171  mg_u_long seekPos = levelInfo.textIdxPtr + (docNum-1) * TEXTIDXLEN;
    172172  if (fseek (f, seekPos, SEEK_SET) != 0) return false;
    173173 
     
    176176
    177177
    178 bool ReadTextIdxArray (FILE *f, TextIdxArray &a, unsigned long arrSize) {
     178bool ReadTextIdxArray (FILE *f, TextIdxArray &a, mg_u_long arrSize) {
    179179  // clear the array
    180180  a.erase (a.begin(), a.end());
     
    218218}
    219219 
    220 void CompressTextInfo::SetStart (unsigned long startPos,
     220void CompressTextInfo::SetStart (mg_u_long startPos,
    221221                 unsigned char startBit,
    222222                 unsigned char startWhich) {
     
    232232}
    233233
    234 void CompressTextInfo::SetEnd (unsigned long endPos,
     234void CompressTextInfo::SetEnd (mg_u_long endPos,
    235235                   unsigned char endBit) {
    236236  if (inDoc) {
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/FText.h

    r16583 r25147  
    3838class BitAddr {
    3939public:
    40   unsigned long byte;
     40  mg_u_long byte;
    4141  unsigned char bit;
    4242
     
    5252public:
    5353  UCArray levelTag;
    54   unsigned long textIdxPtr;
    55   unsigned long numEntries;
     54  mg_u_long textIdxPtr;
     55  mg_u_long numEntries;
    5656
    5757  TextLevelInfo ();
     
    9696  // does a seek and reads the appropriate record
    9797  bool Read (FILE *f, const TextLevelInfo &levelInfo,
    98          unsigned long docNum);
     98         mg_u_long docNum);
    9999
    100100  bool Read (FILE *f);
     
    109109
    110110bool SeekTextIdx (FILE *f, const TextLevelInfo &levelInfo,
    111           unsigned long docNum);
     111          mg_u_long docNum);
    112112
    113113
     
    115115typedef vector<TextIdx> TextIdxArray;
    116116
    117 bool ReadTextIdxArray (FILE *f, TextIdxArray &a, unsigned long arrSize);
     117bool ReadTextIdxArray (FILE *f, TextIdxArray &a, mg_u_long arrSize);
    118118bool WriteTextIdxArray (FILE *f, const TextIdxArray &a);
    119119
     
    135135  // set the start of a level (closing off the last opening
    136136  // tag if needed)
    137   void SetStart (unsigned long startPos,
     137  void SetStart (mg_u_long startPos,
    138138         unsigned char startBit,
    139139         unsigned char startWhich);
     
    141141  // if in a document, it will set the end, add the document to the
    142142  // list of document ptrs, and then call ResetStart
    143   void SetEnd (unsigned long endPos,
     143  void SetEnd (mg_u_long endPos,
    144144           unsigned char endBit);
    145145};
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/FragLevelConvert.cpp

    r16583 r25147  
    3131
    3232bool FragLevelConvert::Read (FILE *invfFile,
    33                  unsigned long levelPtr,
    34                  unsigned long _numFrags,
    35                  unsigned long _numLevelDocs) {
     33                 mg_u_long levelPtr,
     34                 mg_u_long _numFrags,
     35                 mg_u_long _numLevelDocs) {
    3636  levelStarts.erase (levelStarts.begin(), levelStarts.end());
    3737  numFrags = _numFrags;
     
    4343  stdio_bitio_buffer buffer(invfFile);
    4444 
    45   unsigned long pTag = numLevelDocs*2;
    46   unsigned long B = BIO_Bblock_Init (numFrags+pTag, pTag);
    47   unsigned long fragNum = 0;
    48   unsigned long i;
     45  mg_u_long pTag = numLevelDocs*2;
     46  mg_u_long B = BIO_Bblock_Init (numFrags+pTag, pTag);
     47  mg_u_long fragNum = 0;
     48  mg_u_long i;
    4949  for (i=0; i<numLevelDocs; ++i) {
    50     unsigned long delta = buffer.bblock_decode (B, NULL)-1;
     50    mg_u_long delta = buffer.bblock_decode (B, NULL)-1;
    5151    fragNum += delta;
    5252
     
    7070}
    7171
    72 bool FragLevelConvert::FragToLevel (unsigned long fragNum,
    73                     unsigned long &levelDocNum) const {
     72bool FragLevelConvert::FragToLevel (mg_u_long fragNum,
     73                    mg_u_long &levelDocNum) const {
    7474  // do binary search for something containing this fragment number
    75   unsigned long low = 1, high = numLevelDocs;
    76   unsigned long mid;
     75  mg_u_long low = 1, high = numLevelDocs;
     76  mg_u_long mid;
    7777
    7878  while ((mid = (low+high)/2) >= 1 && low <= high) {
     
    8989
    9090bool FragLevelConvert::LevelToLevel (FragLevelConvert sectionLevelConvert,
    91          unsigned long levelNum, unsigned long &DocNum) {
     91         mg_u_long levelNum, mg_u_long &DocNum) {
    9292 
    9393  if (levelNum==1) {
     
    9595    return true;
    9696  }
    97   unsigned long levelfragnum = sectionLevelConvert.levelStarts[levelNum-1]+1;
     97  mg_u_long levelfragnum = sectionLevelConvert.levelStarts[levelNum-1]+1;
    9898
    9999  if (FragToLevel(levelfragnum, DocNum)) {
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/FragLevelConvert.h

    r16583 r25147  
    2323#define FRAGLEVELCONVERT_H
    2424
     25#include "mglong.h"
    2526#include <stdio.h>
    2627#include "UCArray.h"
    27 
    2828
    2929/*Notes about levelStarts (kjm18) - this is my interpretation of
     
    4545protected:
    4646  // note fragment start is one before before real start
    47   vector<unsigned long> levelStarts;
    48   unsigned long numFrags;
    49   unsigned long numLevelDocs;
     47  vector<mg_u_long> levelStarts;
     48  mg_u_long numFrags;
     49  mg_u_long numLevelDocs;
    5050 
    5151public:
    5252  FragLevelConvert ();
    5353
    54   bool Read (FILE *invfFile, unsigned long levelPtr,
    55          unsigned long _numFrags, unsigned long _numLevelDocs);
     54  bool Read (FILE *invfFile, mg_u_long levelPtr,
     55         mg_u_long _numFrags, mg_u_long _numLevelDocs);
    5656
    57   bool FragToLevel (unsigned long fragNum, unsigned long &levelDocNum) const;
     57  bool FragToLevel (mg_u_long fragNum, mg_u_long &levelDocNum) const;
    5858
    5959  // this function converts from one level number to another
     
    6464  // coresponding level
    6565  bool LevelToLevel (FragLevelConvert sectionLevelConvert,
    66            unsigned long levelNum, unsigned long &DocNum);
     66           mg_u_long levelNum, mg_u_long &DocNum);
    6767};
    6868
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/GSDLQueryParser.cpp

    r16583 r25147  
    140140}
    141141
    142 static unsigned long GetStemMethod(LexEl &el, int defaultStemMethod) {
     142static mg_u_long GetStemMethod(LexEl &el, int defaultStemMethod) {
    143143  // here expect el to contain some of c,s,i,u,f,a -- see mg_files.h CHAR_FLAG_STEM_* constants
    144   unsigned long stem = (unsigned long)defaultStemMethod;
     144  mg_u_long stem = (mg_u_long)defaultStemMethod;
    145145     
    146146  UCArray::const_iterator here = el.text.begin();
     
    205205    if (termNode.stemMethod == STEM_INVALID) { // error so backtrack
    206206      here = oldHere;
    207       termNode.stemMethod = (unsigned long)defaultStemMethod;
     207      termNode.stemMethod = (mg_u_long)defaultStemMethod;
    208208    }
    209209      } else here = oldHere; //ignore - wrong syntax
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/IndexData.cpp

    r16583 r25147  
    163163  // read in the information from the dictionary
    164164  block_dict_el tagEl;
    165   unsigned long tagElNum;
     165  mg_u_long tagElNum;
    166166  if (!SearchBlockDictEl (dictFile, biTags, bdh.entries_per_tblk,
    167167              bdh.tag_dict_size, level, tagEl, tagElNum))
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/IndexData.h

    r16583 r25147  
    5959  // level specific information
    6060  UCArray curLevel; // last level that was loaded
    61   unsigned long curLevelNum;
     61  mg_u_long curLevelNum;
    6262  FragLevelConvert levelConverter;
    6363  ApproxWeightsData weightData;
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/MGQuery.cpp

    r16583 r25147  
    4040void PrintNode (ostream &s, QueryNode *node, int indent) {
    4141  if (node == NULL) {
    42     PrintIndentText (s, "NULL\n", indent);
     42    PrintIndentText (s, (char*)"NULL\n", indent);
    4343  } else {
    4444    node->Print (s, indent+2);
     
    102102
    103103  // combine document numbers and corresponding ranks
    104   unsigned long leftI = 0;
    105   unsigned long rightI = 0;
    106   unsigned long outI = 0;
     104  mg_u_long leftI = 0;
     105  mg_u_long rightI = 0;
     106  mg_u_long outI = 0;
    107107  while (leftI < result.docs.size() &&
    108108     rightI < rightResult.docs.size()) {
     
    146146
    147147void AndQueryNode::Print (ostream &s, int indent) const {
    148   PrintIndentText (s, "leftNode:\n", indent);
     148  PrintIndentText (s, (char*)"leftNode:\n", indent);
    149149  PrintNode (s, leftNode, indent+2);
    150   PrintIndentText (s, "AND\n", indent);
    151   PrintIndentText (s, "rightNode:\n", indent);
     150  PrintIndentText (s, (char*)"AND\n", indent);
     151  PrintIndentText (s, (char*)"rightNode:\n", indent);
    152152  PrintNode (s, rightNode, indent+2);
    153153}
     
    187187
    188188  // combine document numbers and corresponding ranks
    189   unsigned long leftSize = leftResult.docs.size();
    190   unsigned long rightSize = rightResult.docs.size();
    191   unsigned long leftI = 0;
    192   unsigned long rightI = 0;
    193   unsigned long leftDocNum = 0;
    194   unsigned long rightDocNum = 0;
     189  mg_u_long leftSize = leftResult.docs.size();
     190  mg_u_long rightSize = rightResult.docs.size();
     191  mg_u_long leftI = 0;
     192  mg_u_long rightI = 0;
     193  mg_u_long leftDocNum = 0;
     194  mg_u_long rightDocNum = 0;
    195195  while (leftI < leftSize || rightI < rightSize) {
    196196    // check leftI
    197197    if (leftI < leftResult.docs.size())
    198198      leftDocNum = leftResult.docs[leftI];
    199     else leftDocNum = ULONG_MAX;
     199    else leftDocNum = (mg_u_long)ULONG_MAX;
    200200   
    201201    // check rightI
    202202    if (rightI < rightResult.docs.size())
    203203      rightDocNum = rightResult.docs[rightI];
    204     else rightDocNum = ULONG_MAX;
     204    else rightDocNum = (mg_u_long)ULONG_MAX;
    205205   
    206206    // combine
     
    250250
    251251void OrQueryNode::Print (ostream &s, int indent) const {
    252   PrintIndentText (s, "leftNode:\n", indent);
     252  PrintIndentText (s, (char*)"leftNode:\n", indent);
    253253  PrintNode (s, leftNode, indent+2);
    254   PrintIndentText (s, "OR\n", indent);
    255   PrintIndentText (s, "rightNode:\n", indent);
     254  PrintIndentText (s, (char*)"OR\n", indent);
     255  PrintIndentText (s, (char*)"rightNode:\n", indent);
    256256  PrintNode (s, rightNode, indent+2);
    257257}
     
    297297
    298298  // combine document numbers and corresponding ranks
    299   unsigned long queryI = 0;
    300   unsigned long notI = 0;
    301   unsigned long outI = 0;
     299  mg_u_long queryI = 0;
     300  mg_u_long notI = 0;
     301  mg_u_long outI = 0;
    302302  while (queryI < result.docs.size() &&
    303303     notI < notResult.docs.size()) {
     
    342342
    343343void NotQueryNode::Print (ostream &s, int indent) const {
    344   PrintIndentText (s, "queryNode:\n", indent);
     344  PrintIndentText (s, (char*)"queryNode:\n", indent);
    345345  PrintNode (s, queryNode, indent+2);
    346   PrintIndentText (s, "NOT\n", indent);
    347   PrintIndentText (s, "notNode:\n", indent);
     346  PrintIndentText (s, (char*)"NOT\n", indent);
     347  PrintIndentText (s, (char*)"notNode:\n", indent);
    348348  PrintNode (s, notNode, indent+2);
    349349}
     
    361361  // get information about this tag
    362362  block_dict_el tagEl;
    363   unsigned long tagElNum;
     363  mg_u_long tagElNum;
    364364  if (!SearchBlockDictEl (indexData.dictFile, indexData.biTags,
    365365              indexData.bdh.entries_per_tblk,
     
    373373  stdio_bitio_buffer buffer(indexData.invfFile);
    374374 
    375   unsigned long pTag = tagEl.frag_occur*2;
    376   unsigned long B = BIO_Bblock_Init (indexData.bdh.num_frags+pTag, pTag);
    377   unsigned long fragNum = 0;
    378   unsigned long i;
     375  mg_u_long pTag = tagEl.frag_occur*2;
     376  mg_u_long B = BIO_Bblock_Init (indexData.bdh.num_frags+pTag, pTag);
     377  mg_u_long fragNum = 0;
     378  mg_u_long i;
    379379  FragRange thisFrag;
    380380  for (i=0; i<tagEl.frag_occur; ++i) {
    381381    // get start
    382     unsigned long delta = buffer.bblock_decode (B, NULL)-1;
     382    mg_u_long delta = buffer.bblock_decode (B, NULL)-1;
    383383    fragNum += delta;
    384384
     
    427427
    428428  // get a list of term numbers
    429   vector<unsigned long> equivNums;
     429  vector<mg_u_long> equivNums;
    430430  FindWordNumbers (indexData, term, stemMethod, equivNums);
    431431
     
    435435  FragData tempFragData2;
    436436  UCArray equivWord;
    437   vector<unsigned long>::iterator here = equivNums.begin();
    438   vector<unsigned long>::iterator end = equivNums.end();
     437  vector<mg_u_long>::iterator here = equivNums.begin();
     438  vector<mg_u_long>::iterator end = equivNums.end();
    439439  while (here != end) {
    440440    // get the information for this word
     
    565565
    566566void ProxMatchQueryNode::Print (ostream &s, int indent) const {
    567   PrintIndentText (s, "PROXMATCH\n", indent);
     567  PrintIndentText (s, (char*)"PROXMATCH\n", indent);
    568568  if (tagNodePtr != NULL) tagNodePtr->Print (s, indent+2);
    569569 
     
    583583void BrowseQueryNode::Calculate (IndexData &indexData, BrowseQueryResult &result) const {
    584584
    585   unsigned long number=0;
     585  mg_u_long number=0;
    586586  FindNearestWordNumber(indexData, term, number);
    587587  if (number + startPosition > 0 ) {
     
    604604
    605605void BrowseQueryNode::Print (ostream &s, int indent) const {
    606   PrintIndentText(s, "BROWSEQUERYNODE\n", indent);
     606  PrintIndentText(s, (char*)"BROWSEQUERYNODE\n", indent);
    607607  PrintIndent (s, indent+2);
    608608  s << "TERM:"<<term<<"\n";
     
    631631
    632632  // make weights into ranks if needed
    633   unsigned long i;
     633  mg_u_long i;
    634634  if (queryInfo.sortByRank || queryInfo.needRankInfo) {
    635635    for (i=0; i<result.ranks.size(); ++i) {
     
    639639  }
    640640 
    641   unsigned long resultsSize = queryInfo.maxDocs;
     641  mg_u_long resultsSize = queryInfo.maxDocs;
    642642  if (resultsSize == 0 || resultsSize > result.docs.size())
    643643    resultsSize = result.docs.size();
     
    655655           result.docs.begin()+resultsSize,
    656656           result.ranks.begin()+resultsSize,
    657            (unsigned long) result.ranks.size()-resultsSize,
     657           (mg_u_long) result.ranks.size()-resultsSize,
    658658           gtRank);
    659659
     
    665665  if (queryInfo.exactWeights &&
    666666      (queryInfo.sortByRank || queryInfo.needRankInfo)) {
    667     unsigned long exactDiskPtr =
     667    mg_u_long exactDiskPtr =
    668668      indexData.levels.levelInfo[indexData.curLevel].exactWeightsDiskPtr;
    669669   
     
    737737  }
    738738 
    739   unsigned long DocNum = 0;
    740  
    741   for (unsigned long i=0; i<realresult.docs.size(); ++i) {
     739  mg_u_long DocNum = 0;
     740 
     741  for (mg_u_long i=0; i<realresult.docs.size(); ++i) {
    742742
    743743    // do an if ! here????
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/MGQuery.h

    r16583 r25147  
    107107
    108108
    109 #define NO_TERM_RANGE_START (LONG_MIN/2)
    110 #define NO_TERM_RANGE_END   (LONG_MAX/2)
     109#define NO_TERM_RANGE_START (INT_MIN/2)
     110#define NO_TERM_RANGE_END   (INT_MAX/2)
    111111
    112112/* NOTE: range stuff - the range values are for the previous term relative
     
    123123public:
    124124  UCArray term;
    125   unsigned long termWeight;
    126   unsigned long stemMethod;
    127   signed long startRange; // range relative to last term
    128   signed long endRange;
     125  mg_u_long termWeight;
     126  mg_u_long stemMethod;
     127  mg_s_long startRange; // range relative to last term
     128  mg_s_long endRange;
    129129 
    130130  void Clear ();
     
    161161 public:
    162162  UCArray term;
    163   signed long startPosition;
    164   unsigned long numTerms;
     163  mg_s_long startPosition;
     164  mg_u_long numTerms;
    165165
    166166  void Clear();
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Makefile.in

    r22070 r25147  
    5353CC = @CC@
    5454CXX = @CXX@
    55 CFLAGS = @CFLAGS@ @COMPAT32BITFLAGS@ -ansi -fPIC -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
    56 CXXFLAGS = @CXXFLAGS@ @COMPAT32BITFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
     55CFLAGS = @CFLAGS@ -ansi -fPIC -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
     56CXXFLAGS = @CXXFLAGS@ -fPIC -DSILENT -DSHORT_SUFFIX $(AFFLAGS)
    5757DEFS = @DEFS@
    5858RANLIB = @RANLIB@
     
    6060INSTALL_DATA = @INSTALL_DATA@
    6161INSTALL_PROGRAM = @INSTALL_PROGRAM@
    62 LDFLAGS = @LDFLAGS@ @COMPAT32BITFLAGS@
     62LDFLAGS = @LDFLAGS@
    6363LIBS = ../lib/libmgpplib.a $(AFLIBS) -lstdc++ ../../../packages/iconv/lib/libiconv.a @LIBS@
    6464TOUCH = echo timestamp >
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/QueryResultsSort.h

    r16583 r25147  
    4545void PushHeap (DocNumArray::iterator docNumHeap,
    4646           RandomAccessIterator parallelHeap,
    47            unsigned long heapSize,
     47           mg_u_long heapSize,
    4848           const Compare &comp) {
    49   unsigned long holeIndex = heapSize-1;
    50   unsigned long parent = (holeIndex - 1) / 2;
     49  mg_u_long holeIndex = heapSize-1;
     50  mg_u_long parent = (holeIndex - 1) / 2;
    5151  while (holeIndex > 0 && comp (*(parallelHeap+parent),
    5252                *(parallelHeap+holeIndex))) {
     
    6363void AdjustHeap (DocNumArray::iterator docNumHeap,
    6464             RandomAccessIterator parallelHeap,
    65              unsigned long holeIndex,
    66              unsigned long heapSize,
     65             mg_u_long holeIndex,
     66             mg_u_long heapSize,
    6767             const Compare &comp) {
    68   unsigned long secondChild = 2 * holeIndex + 2;
     68  mg_u_long secondChild = 2 * holeIndex + 2;
    6969  while (secondChild < heapSize) {
    7070    if (comp(*(parallelHeap + secondChild),
     
    8787void PopHeap (DocNumArray::iterator docNumHeap,
    8888          RandomAccessIterator parallelHeap,
    89           unsigned long heapSize,
     89          mg_u_long heapSize,
    9090          const Compare &comp) {
    9191  swap (*(parallelHeap), *(parallelHeap+heapSize-1));
    9292  swap (*(docNumHeap), *(docNumHeap+heapSize-1));
    93   AdjustHeap (docNumHeap, parallelHeap, (unsigned long)0, heapSize-1, comp);
     93  AdjustHeap (docNumHeap, parallelHeap, (mg_u_long)0, heapSize-1, comp);
    9494}
    9595
     
    9797void MakeHeap (DocNumArray::iterator docNumHeap,
    9898           RandomAccessIterator parallelHeap,
    99            unsigned long size,
     99           mg_u_long size,
    100100           const Compare &comp) {
    101101  if (size < 2) return;
    102102 
    103   unsigned long i = 0;
     103  mg_u_long i = 0;
    104104  for (i=1; i<=size; ++i)
    105105    PushHeap (docNumHeap, parallelHeap, i, comp);
     
    110110void SortHeap (DocNumArray::iterator docNumHeap,
    111111           RandomAccessIterator parallelHeap,
    112            unsigned long size,
     112           mg_u_long size,
    113113           const Compare &comp) {
    114114  if (size < 2) return;
    115115
    116   unsigned long i;
     116  mg_u_long i;
    117117  for (i=size; i>1; --i)
    118118    PopHeap (docNumHeap, parallelHeap, i, comp);
     
    123123void SelectAddHeap (DocNumArray::iterator docNumHeap,
    124124            RandomAccessIterator parallelHeap,
    125             unsigned long heapSize,
     125            mg_u_long heapSize,
    126126            DocNumArray::iterator docNumAdd,
    127127            RandomAccessIterator parallelAdd,
    128             unsigned long addSize,
     128            mg_u_long addSize,
    129129            const Compare &comp) {
    130   unsigned long i;
     130  mg_u_long i;
    131131  for (i=0; i<addSize; ++i) {
    132132    if (comp(*(parallelAdd+i), *(parallelHeap))) {
    133133      swap (*(docNumHeap), *(docNumAdd+i));
    134134      swap (*(parallelHeap), *(parallelAdd+i));
    135       AdjustHeap (docNumHeap, parallelHeap, (unsigned long)0, heapSize, comp);
     135      AdjustHeap (docNumHeap, parallelHeap, (mg_u_long)0, heapSize, comp);
    136136    }
    137137  }
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Queryer.cpp

    r19822 r25147  
    6363int main (int argc, char **argv) {
    6464  int ch;
    65   char *textfilename = "";
    66   char *indexfilename = "";
    67   char *basePath = "";
     65  char *textfilename = (char*)"";
     66  char *indexfilename = (char*)"";
     67  char *basePath = (char*)"";
    6868 
    6969  opterr = 0;
     
    186186    // print
    187187    UCArray docText;
    188     unsigned long docNum = 0;
     188    mg_u_long docNum = 0;
    189189    cin >> docNum;
    190190    cin.getline(query, 2048, '\n'); // eat up return
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Terms.cpp

    r16583 r25147  
    5050    << t.stemMethod << ")equiv terms(";
    5151 
    52   unsigned long i;
     52  mg_u_long i;
    5353  for (i=0; i<t.equivTerms.size(); ++i) {
    5454    s << t.equivTerms[i] << ", ";
     
    8383
    8484  s << "termFreqs: ";
    85   for (unsigned long i=0; i<termFreqs.size(); ++i)
     85  for (mg_u_long i=0; i<termFreqs.size(); ++i)
    8686    s << termFreqs[i] << ", ";
    8787 
     
    9494ostream &operator<< (ostream &s, const QueryResult &r) {
    9595  s << "docs: ";
    96   unsigned long i;
     96  mg_u_long i;
    9797  for (i=0; i<r.docs.size(); ++i)
    9898    s << r.docs[i] << ", ";
     
    136136ostream &operator<< (ostream &s, const ExtQueryResult &r) {
    137137  s << "docs: ";
    138   unsigned long i;
     138  mg_u_long i;
    139139  for (i=0; i<r.docs.size(); ++i)
    140140    s << r.docs[i] << ", ";
     
    181181ostream &operator<< (ostream &s, const BrowseQueryResult &r) {
    182182  s << "terms: ";
    183   unsigned long i;
     183  mg_u_long i;
    184184  for (i=0; i<r.termFreqs.size(); ++i)
    185185    s << r.termFreqs[i] << ", ";
     
    207207void FindWordNumbers (IndexData &indexData,
    208208              const UCArray &term,
    209               unsigned long stemMethod,
    210               vector<unsigned long> &equivWords) {
     209              mg_u_long stemMethod,
     210              vector<mg_u_long> &equivWords) {
    211211  equivWords.erase (equivWords.begin(), equivWords.end());
    212212
     
    222222    // don't need to stem the word,
    223223    // find the word number(s) for this term
    224     unsigned long wordElNum = 0;
    225     unsigned long numLevels = indexData.bdh.num_levels;
     224    mg_u_long wordElNum = 0;
     225    mg_u_long numLevels = indexData.bdh.num_levels;
    226226    word_block_dict_el wordDictEl;
    227227    wordDictEl.SetNumLevels (numLevels);
     
    245245  unsigned char mgWord[MAXSTEMLEN + 1];
    246246  UCArray stemTerm;
    247   unsigned long stemmerNum = 0;
     247  mg_u_long stemmerNum = 0;
    248248
    249249  /* [JFG - Mar 06: Accent folding patch] */
     
    266266  // need to look up this term in the appropriate dictionary
    267267  stem_block_dict_el stemDictEl;
    268   unsigned long stemElNum;
     268  mg_u_long stemElNum;
    269269  bool result = false;
    270270 
     
    287287void ReadTermFragData (IndexData &indexData,
    288288               bool needFragFreqs,
    289                unsigned long termNum,
     289               mg_u_long termNum,
    290290               FragData &fragData,
    291291               FragRangeArray *fragLimits,
     
    294294
    295295  // look up the word in the dictionary
    296   unsigned long numLevels = indexData.bdh.num_levels;
     296  mg_u_long numLevels = indexData.bdh.num_levels;
    297297  word_block_dict_el wordDictEl;
    298298  wordDictEl.SetNumLevels (numLevels);
     
    311311  stdio_bitio_buffer buffer (indexData.invfFile);
    312312   
    313   unsigned long B = BIO_Bblock_Init (indexData.bdh.num_frags,
     313  mg_u_long B = BIO_Bblock_Init (indexData.bdh.num_frags,
    314314                     wordDictEl.frag_occur);
    315   unsigned long fragNum = 0;
    316   unsigned long termFreq = 0;
    317 
    318   unsigned long fragLimitI = 0;
    319   unsigned long i;
     315  mg_u_long fragNum = 0;
     316  mg_u_long termFreq = 0;
     317
     318  mg_u_long fragLimitI = 0;
     319  mg_u_long i;
    320320  for (i=0; i<wordDictEl.frag_occur; ++i) {
    321321    fragNum += buffer.bblock_decode (B, NULL);
     
    359359
    360360  // do or
    361   unsigned long f1I = 0, f1Size = f1.fragNums.size();
    362   unsigned long f2I = 0, f2Size = f2.fragNums.size();
     361  mg_u_long f1I = 0, f1Size = f1.fragNums.size();
     362  mg_u_long f2I = 0, f2Size = f2.fragNums.size();
    363363  while (f1I < f1Size || f2I < f2Size) {
    364364    if (f2I < f2Size &&
     
    395395             FragData &fragData,
    396396             const FragData &comFragData,
    397              signed long startRange,
    398              signed long endRange,
     397             mg_s_long startRange,
     398             mg_s_long endRange,
    399399             const FragRangeArray *fragLimits) {
    400400  // sanity check on range
    401401  if (startRange > endRange) {
    402     signed long temp = endRange;
     402    mg_s_long temp = endRange;
    403403    endRange = startRange;
    404404    startRange = temp;
     
    409409    fragData.matchDocs = comFragData.matchDocs;
    410410 
    411   unsigned long fragDataI = 0;
    412   unsigned long fragDataSize = fragData.fragNums.size();
    413   unsigned long comFragDataI = 0;
    414   unsigned long comFragDataSize = comFragData.fragNums.size();
    415   unsigned long fragLimitI = 0;
    416   unsigned long fragLimitSize = (fragLimits==NULL) ? 0 : (*fragLimits).size();
    417   unsigned long outI = 0;
     411  mg_u_long fragDataI = 0;
     412  mg_u_long fragDataSize = fragData.fragNums.size();
     413  mg_u_long comFragDataI = 0;
     414  mg_u_long comFragDataSize = comFragData.fragNums.size();
     415  mg_u_long fragLimitI = 0;
     416  mg_u_long fragLimitSize = (fragLimits==NULL) ? 0 : (*fragLimits).size();
     417  mg_u_long outI = 0;
    418418
    419419  while (fragDataI < fragDataSize &&
    420420     comFragDataI < comFragDataSize) {
    421     signed long fragNum = (signed long)fragData.fragNums[fragDataI];
    422     signed long comFragNum = (signed long)comFragData.fragNums[comFragDataI];
     421    mg_s_long fragNum = (mg_s_long)fragData.fragNums[fragDataI];
     422    mg_s_long comFragNum = (mg_s_long)comFragData.fragNums[comFragDataI];
    423423   
    424424    // go to the right fragment limit (for the com frag)
    425425    if (fragLimits != NULL) {
    426426      while (fragLimitI+1 < fragLimitSize &&
    427          comFragNum > (signed long)(*fragLimits)[fragLimitI+1].rangeStart) {
     427         comFragNum > (mg_s_long)(*fragLimits)[fragLimitI+1].rangeStart) {
    428428    ++fragLimitI;
    429429      }
     
    432432    if (fragNum <= comFragNum+startRange ||
    433433    (fragLimits!=NULL &&
    434      fragNum<=(signed long)(*fragLimits)[fragLimitI].rangeStart)) {
     434     fragNum<=(mg_s_long)(*fragLimits)[fragLimitI].rangeStart)) {
    435435      ++fragDataI;
    436436     
    437437    } else if (fragNum > comFragNum+endRange ||
    438438           (fragLimits!=NULL &&
    439         fragNum>(signed long)(*fragLimits)[fragLimitI].rangeEnd)) {
     439        fragNum>(mg_s_long)(*fragLimits)[fragLimitI].rangeEnd)) {
    440440      ++comFragDataI;
    441441     
     
    471471             const UCArray &tag,
    472472             const UCArray &term,
    473              unsigned long stemMethod,
    474              unsigned long termWeight,
     473             mg_u_long stemMethod,
     474             mg_u_long termWeight,
    475475             UCArrayVector &equivTerms,
    476476             QueryResult &result) {
     
    480480
    481481  // log (N / ft)
    482   unsigned long N = indexData.levels.levelInfo[indexData.curLevel].numEntries;
     482  mg_u_long N = indexData.levels.levelInfo[indexData.curLevel].numEntries;
    483483  float wordLog = log((double)N / (double)termData.matchDocs);
    484484
     
    491491  float Wdt;
    492492 
    493   unsigned long termDataI = 0;
    494   unsigned long termDataSize = termData.fragNums.size();
    495   unsigned long levelDocNum = 0;
    496  
    497   unsigned long termDocFreq = 0;
    498   unsigned long lastLevelDocNum = 0;
    499   unsigned long overallwordfreq = 0;
     493  mg_u_long termDataI = 0;
     494  mg_u_long termDataSize = termData.fragNums.size();
     495  mg_u_long levelDocNum = 0;
     496 
     497  mg_u_long termDocFreq = 0;
     498  mg_u_long lastLevelDocNum = 0;
     499  mg_u_long overallwordfreq = 0;
    500500 
    501501  while (termDataI < termDataSize) {
     
    552552                const UCArray &tag,
    553553                const UCArray &term,
    554                 unsigned long stemMethod,
    555                 unsigned long termWeight,
     554                mg_u_long stemMethod,
     555                mg_u_long termWeight,
    556556                UCArrayVector &equivTerms,
    557557                QueryResult &result) {
     
    571571  float Wdt;
    572572 
    573   unsigned long termDataI = 0;
    574   unsigned long termDataSize = termData.fragNums.size();
    575   unsigned long levelDocNum = 0;
    576  
    577   unsigned long termDocFreq = 0;
    578   unsigned long lastLevelDocNum = 0;
    579   unsigned long overallwordfreq = 0;
    580   unsigned long resultI = 0;
    581   unsigned long resultSize = result.docs.size();
    582   unsigned long resultOutI = 0;
     573  mg_u_long termDataI = 0;
     574  mg_u_long termDataSize = termData.fragNums.size();
     575  mg_u_long levelDocNum = 0;
     576 
     577  mg_u_long termDocFreq = 0;
     578  mg_u_long lastLevelDocNum = 0;
     579  mg_u_long overallwordfreq = 0;
     580  mg_u_long resultI = 0;
     581  mg_u_long resultSize = result.docs.size();
     582  mg_u_long resultOutI = 0;
    583583 
    584584 
     
    664664  bool needRanks = (queryInfo.sortByRank || queryInfo.needRankInfo);
    665665
    666   unsigned long termDataI = 0;
    667   unsigned long termDataSize = termData.fragNums.size();
    668   unsigned long levelDocNum = 0;
    669  
    670   unsigned long lastLevelDocNum = 0;
    671 
    672   unsigned long resultI = 0;
    673   unsigned long resultSize = result.docs.size();
    674   unsigned long resultOutI = 0;
     666  mg_u_long termDataI = 0;
     667  mg_u_long termDataSize = termData.fragNums.size();
     668  mg_u_long levelDocNum = 0;
     669 
     670  mg_u_long lastLevelDocNum = 0;
     671
     672  mg_u_long resultI = 0;
     673  mg_u_long resultSize = result.docs.size();
     674  mg_u_long resultOutI = 0;
    675675 
    676676  while (termDataI < termDataSize) {
     
    732732void FindNearestWordNumber (IndexData &indexData,
    733733                const UCArray &term,
    734                 unsigned long &number) {
     734                mg_u_long &number) {
    735735
    736736    // find the word number for this term
    737     unsigned long wordElNum = 0;
    738     unsigned long numLevels = indexData.bdh.num_levels;
     737    mg_u_long wordElNum = 0;
     738    mg_u_long numLevels = indexData.bdh.num_levels;
    739739    word_block_dict_el wordDictEl;
    740740    wordDictEl.SetNumLevels (numLevels);
     
    748748
    749749void GetTermList(IndexData &indexData,
    750          unsigned long startTerm,
    751          unsigned long numTerms,
     750         mg_u_long startTerm,
     751         mg_u_long numTerms,
    752752         TermFreqArray &terms) {
    753753
     
    777777
    778778void GetTermList(IndexData &indexData,
    779          unsigned long startTerm,
    780          unsigned long numTerms,
     779         mg_u_long startTerm,
     780         mg_u_long numTerms,
    781781         UCArrayVector &terms) {
    782782
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Terms.h

    r16583 r25147  
    2424
    2525#include "IndexData.h"
     26#include "mglong.h"
    2627
    2728#if defined(GSDL_USE_OBJECTSPACE)
     
    3839  // general query information
    3940  UCArray docLevel;
    40   unsigned long maxDocs; // 0 = all
     41  mg_u_long maxDocs; // 0 = all
    4142  bool sortByRank;
    4243  bool exactWeights;
     
    5758  int stemMethod;
    5859  UCArrayVector equivTerms; // the stemmed and casefolded variants of the term
    59   unsigned long matchDocs; // tf for level - num levels
     60  mg_u_long matchDocs; // tf for level - num levels
    6061               // containing this term
    61   unsigned long termFreq;  // overall term freq - num words that
     62  mg_u_long termFreq;  // overall term freq - num words that
    6263                // are this term
    6364  void Clear ();
     
    7273
    7374typedef vector<float> RankArray;
    74 typedef vector<unsigned long> DocNumArray;
     75typedef vector<mg_u_long> DocNumArray;
    7576
    7677class QueryResult {
     
    8182  TermFreqArray termFreqs;
    8283
    83   unsigned long actualNumDocs;
     84  mg_u_long actualNumDocs;
    8485  void Clear ();
    8586  QueryResult ();
     
    9091bool operator== (const QueryResult &r1, const QueryResult &r2);
    9192
    92 typedef vector<unsigned long> FragNumArray;
    93 typedef vector<unsigned long> FragFreqArray;
     93typedef vector<mg_u_long> FragNumArray;
     94typedef vector<mg_u_long> FragFreqArray;
    9495
    9596class FragData {
    9697public:
    97   unsigned long matchDocs;    // ft for level
     98  mg_u_long matchDocs;    // ft for level
    9899  FragNumArray fragNums;
    99100  FragFreqArray fragFreqs;
     
    106107class FragRange {
    107108public:
    108   unsigned long rangeStart;
    109   unsigned long rangeEnd;
     109  mg_u_long rangeStart;
     110  mg_u_long rangeEnd;
    110111
    111112  void Clear () { rangeStart = rangeEnd = 0; }
     
    119120void FindWordNumbers (IndexData &indexData,
    120121              const UCArray &term,
    121               unsigned long stemMethod,
    122               vector<unsigned long> &equivWords);
     122              mg_u_long stemMethod,
     123              vector<mg_u_long> &equivWords);
    123124
    124125void ReadTermFragData (IndexData &indexData,
    125126               bool needFragFreqs,
    126                unsigned long termNum,
     127               mg_u_long termNum,
    127128               FragData &fragData,
    128129               FragRangeArray *fragLimits,
     
    138139             FragData &fragData,
    139140             const FragData &comFragData,
    140              signed long startRange,
    141              signed long endRange,
     141             mg_s_long startRange,
     142             mg_s_long endRange,
    142143             const FragRangeArray *fragLimits);
    143144
     
    147148             const UCArray &tag,
    148149             const UCArray &term,
    149              unsigned long stemMethod,
    150              unsigned long termWeight,
     150             mg_u_long stemMethod,
     151             mg_u_long termWeight,
    151152             UCArrayVector &equivTerms,
    152153             QueryResult &result);
     
    157158                const UCArray &tag,
    158159                const UCArray &term,
    159                 unsigned long stemMethod,
    160                 unsigned long termWeight,
     160                mg_u_long stemMethod,
     161                mg_u_long termWeight,
    161162                UCArrayVector &equivTerms,
    162163                QueryResult &result);
     
    201202void FindNearestWordNumber (IndexData &indexData,
    202203                const UCArray &term,
    203                 unsigned long &number);
     204                mg_u_long &number);
    204205
    205206void GetTermList(IndexData &indexData,
    206          unsigned long startTerm,
    207          unsigned long numTerms,
     207         mg_u_long startTerm,
     208         mg_u_long numTerms,
    208209         TermFreqArray &terms);
    209210
    210211void GetTermList (IndexData &indexData,
    211          unsigned long startTerm,
    212          unsigned long numTerms,
     212         mg_u_long startTerm,
     213         mg_u_long numTerms,
    213214         UCArrayVector &terms);
    214215
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/TextEl.cpp

    r16583 r25147  
    246246}
    247247 
    248 static void AddTextEl (TextElArray &doc, unsigned long &docLen,
     248static void AddTextEl (TextElArray &doc, mg_u_long &docLen,
    249249               const TextEl &el) {
    250250  doc.push_back (el);
     
    258258
    259259bool ReadDoc (FileBuf &buf, const UCArray &docTag,
    260           TextElArray &doc, unsigned long &docLen,
     260          TextElArray &doc, mg_u_long &docLen,
    261261          bool compatMode) {
    262262  bool compatInPara = false;
     
    316316// copy of readdoc to get TextElArray from u_char buffer
    317317bool ReadDoc(u_char ** buffer, const UCArray &docTag,
    318          TextElArray &doc, unsigned long &docLen,
     318         TextElArray &doc, mg_u_long &docLen,
    319319         bool compatMode) {
    320320  bool compatInPara = false;
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/TextEl.h

    r16583 r25147  
    6060// returns true if a document could be found
    6161bool ReadDoc (FileBuf &buf, const UCArray &docTag,
    62           TextElArray &doc, unsigned long &docLen,
     62          TextElArray &doc, mg_u_long &docLen,
    6363          bool compatMode=false);
    6464
    6565bool ReadDoc(u_char **buffer, const UCArray &docTag,
    66          TextElArray &doc, unsigned long &docLen,
     66         TextElArray &doc, mg_u_long &docLen,
    6767         bool compatMode=false);
    6868
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/TextGet.cpp

    r16583 r25147  
    187187                  huff_type type) {
    188188  huff_data * hd;
    189   u_long **   vals;
     189  mg_u_long **   vals;
    190190
    191191  if (!(hd = new huff_data))
     
    326326  if (text_fast_comp_dict == NULL) return false;
    327327 
    328   u_long *p, *end;
     328  uintptr_t *p, *end;
    329329  u_char *fixup;
    330   u_long mem;
    331   u_long fixup_mem;
     330  mg_u_long mem;
     331  mg_u_long fixup_mem;
    332332  int i;  /* [RPAP - Jan 97: Endian Ordering] */
    333333
     
    343343  }
    344344
    345   end = (u_long *) (((u_char *) cd) + mem);
     345  end = (uintptr_t *) (((u_char *) cd) + mem);
    346346  fread (cd, sizeof (u_char), mem, text_fast_comp_dict);
    347347
     
    354354  fread (fixup, fixup_mem, sizeof (u_char), text_fast_comp_dict);
    355355
    356   for (p = (u_long *) cd; (u_long) p < (u_long) end; ++p)
     356  for (p = (uintptr_t *) cd; (uintptr_t) p < (uintptr_t) end; ++p)
    357357    if (IS_FIXUP (p))
    358358      {
    359359    NTOHUL(*p);  /* [RPAP - Jan 97: Endian Ordering] */
    360     *p = *p + (u_long) cd;
     360    *p = *p + (uintptr_t) cd;
    361361      }
    362362
     
    464464
    465465  // seek to the appropriate place and read the level information
    466   bool res = ((fseek (levelFile, sizeof (u_long), SEEK_SET) == 0) &&
     466  bool res = ((fseek (levelFile, sizeof (mg_u_long), SEEK_SET) == 0) &&
    467467          levels.Read (levelFile));
    468468
     
    507507
    508508  // read in the compressed text header
    509   if ((fseek (textFile, sizeof (u_long), SEEK_SET) != 0) || !cth.Read (textFile))
     509  if ((fseek (textFile, sizeof (mg_u_long), SEEK_SET) != 0) || !cth.Read (textFile))
    510510    return false;
    511511
     
    535535
    536536bool GetDocIdx (TextData &td, const UCArray &docLevel,
    537         unsigned long docNum, TextIdx &docIdx) {
     537        mg_u_long docNum, TextIdx &docIdx) {
    538538  // make sure the text index file was opened successfully
    539539  if (td.textIdxFile == NULL) return false;
     
    551551#define MY_HUFF_DECODE(len, code, mcodes)               \
    552552  do {                                  \
    553     register unsigned long *__min_code = (mcodes);          \
    554     register unsigned long *__mclen = __min_code;           \
    555     register unsigned long __code = 0;                  \
     553    register mg_u_long *__min_code = (mcodes);          \
     554    register mg_u_long *__mclen = __min_code;           \
     555    register mg_u_long __code = 0;                  \
    556556    do                                  \
    557557      {                                 \
     
    565565
    566566bool GetDocText (TextData &td, const UCArray &docLevel,
    567          unsigned long docNum, UCArray &docText) {
     567         mg_u_long docNum, UCArray &docText) {
    568568  // erase the current text
    569569  docText.erase (docText.begin(), docText.end());
     
    581581  auxiliary_dict *ad = cd.ad;
    582582  int which = docIdx.which;
    583   unsigned long num_bits = (docIdx.end.byte*8+(8-docIdx.end.bit)) -
     583  mg_u_long num_bits = (docIdx.end.byte*8+(8-docIdx.end.bit)) -
    584584    (docIdx.start.byte*8+(8-docIdx.start.bit));
    585   unsigned long bits = 0;
     585  mg_u_long bits = 0;
    586586
    587587  if (docText.capacity() < docText.size() + num_bits + 1) {
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/TextGet.h

    r16583 r25147  
    4949// get information about where a document starts and finishes
    5050bool GetDocIdx (TextData &td, const UCArray &docLevel,
    51         unsigned long docNum, TextIdx &docIdx);
     51        mg_u_long docNum, TextIdx &docIdx);
    5252
    5353
    5454// decompress a document's text
    5555bool GetDocText (TextData &td, const UCArray &docLevel,
    56          unsigned long docNum, UCArray &docText);
     56         mg_u_long docNum, UCArray &docText);
    5757
    5858#endif
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/UCArray.cpp

    r16583 r25147  
    104104
    105105
    106 bool ReadVarLenUL (FILE *f, unsigned long &n) {
    107   register unsigned long temp = 0;
     106bool ReadVarLenUL (FILE *f, mg_u_long &n) {
     107  register mg_u_long temp = 0;
    108108  register unsigned int bitPos = 0;
    109109  unsigned char b = 0;
     
    121121}
    122122
    123 bool WriteVarLenUL (FILE *f, unsigned long n) {
    124   register unsigned long temp = n;
     123bool WriteVarLenUL (FILE *f, mg_u_long n) {
     124  register mg_u_long temp = n;
    125125  register unsigned char b = 0;
    126126  do {
     
    135135
    136136
    137 bool ReadUL (FILE *f, unsigned long &n) {
    138   if (fread (&n, sizeof (unsigned long), 1, f) <= 0) return false;
     137bool ReadUL (FILE *f, mg_u_long &n) {
     138  if (fread (&n, sizeof (mg_u_long), 1, f) <= 0) return false;
    139139  NTOHUL (n);
    140140  return true;
     
    142142
    143143
    144 bool WriteUL (FILE *f, unsigned long n) {
     144bool WriteUL (FILE *f, mg_u_long n) {
    145145  HTONUL (n);
    146   return (fwrite (&n, sizeof (unsigned long), 1, f) > 0);
     146  return (fwrite (&n, sizeof (mg_u_long), 1, f) > 0);
    147147}
    148148
     
    174174
    175175  // read in the array size
    176   unsigned long arraySize = 0;
     176  mg_u_long arraySize = 0;
    177177  if (!ReadVarLenUL (f, arraySize)) return false;
    178178
     
    382382
    383383
    384 unsigned long PrefixLen (const UCArray &a1, const UCArray &a2) {
    385   unsigned long l = (a1.size() < a2.size()) ? a1.size() : a2.size();
    386   unsigned long i = 0;
     384mg_u_long PrefixLen (const UCArray &a1, const UCArray &a2) {
     385  mg_u_long l = (a1.size() < a2.size()) ? a1.size() : a2.size();
     386  mg_u_long i = 0;
    387387
    388388  UCArray::const_iterator a1Here = a1.begin();
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/UCArray.h

    r18717 r25147  
    2222#ifndef UCARRAY_H
    2323#define UCARRAY_H
     24
     25#include "mglong.h"
    2426
    2527#if defined(WIN32) || defined(_WIN32) || defined(__WIN32__)
     
    8183
    8284// used for reading and writing variable length unsigned longs
    83 bool ReadVarLenUL (FILE *f, unsigned long &n);
    84 bool WriteVarLenUL (FILE *f, unsigned long n);
     85bool ReadVarLenUL (FILE *f, mg_u_long &n);
     86bool WriteVarLenUL (FILE *f, mg_u_long n);
    8587
    86 // used for reading and writing unsigned longs
    87 bool ReadUL (FILE *f, unsigned long &n);
    88 bool WriteUL (FILE *f, unsigned long n);
     88// used for reading and writing unsigned longs 
     89bool ReadUL (FILE *f, mg_u_long &n);
     90bool WriteUL (FILE *f, mg_u_long n);
    8991
    9092// used for reading and writing floats
     
    123125typedef vector<UCArray> UCArrayVector;
    124126
    125 unsigned long PrefixLen (const UCArray &a1, const UCArray &a2);
     127mg_u_long PrefixLen (const UCArray &a1, const UCArray &a2);
    126128
    127129// prev == NULL if no previous string
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Weights.cpp

    r16583 r25147  
    2424#include "sysfuncs.h"
    2525
    26 #define MAXBITS (sizeof(unsigned long) * 8)
     26#define MAXBITS (sizeof(mg_u_long) * 8)
    2727
    2828
     
    5353}
    5454
    55 bool ApproxWeightsData::Read (FILE *approxWeightsFile, unsigned long diskPtr,
    56                   unsigned long _numLevelDocs) {
     55bool ApproxWeightsData::Read (FILE *approxWeightsFile, mg_u_long diskPtr,
     56                  mg_u_long _numLevelDocs) {
    5757  Free ();
    5858 
     
    6969
    7070  // allocate buffer for the weights
    71   unsigned long arrSize = (bits*numLevelDocs+sizeof(unsigned long)-1) / 32;
    72   weightBuf = new unsigned long[arrSize];
     71  mg_u_long arrSize = (bits*numLevelDocs+sizeof(mg_u_long)-1) / 32;
     72  weightBuf = new mg_u_long[arrSize];
    7373
    7474  // read in the weights
    75   unsigned long i;
     75  mg_u_long i;
    7676  for (i=0; i<arrSize; ++i) {
    7777    ReadUL (approxWeightsFile, weightBuf[i]);
     
    8181  // (if not small enough table == NULL
    8282  if (bits <= 12) {
    83     unsigned long i, tableSize = (1 << bits);
     83    mg_u_long i, tableSize = (1 << bits);
    8484    table = new float[tableSize];
    8585    table[0] = L;
     
    9191}
    9292
    93 float ApproxWeightsData::GetLowerApproxDocWeight (unsigned long levelDocNum) {
     93float ApproxWeightsData::GetLowerApproxDocWeight (mg_u_long levelDocNum) {
    9494  // sanity check
    9595  if (bits == 0 || weightBuf == NULL) return 1.0;
    9696
    97   register unsigned long c, pos;
    98   register unsigned long *dw;
     97  register mg_u_long c, pos;
     98  register mg_u_long *dw;
    9999
    100100  // get the compressed version of the weight
     
    114114
    115115
    116 float GetExactDocWeight (FILE *exactWeightsFile, unsigned long diskPtr,
    117              unsigned long levelDocNum) {
     116float GetExactDocWeight (FILE *exactWeightsFile, mg_u_long diskPtr,
     117             mg_u_long levelDocNum) {
    118118  // go to the appropriate place in the weights file
    119119  fseek (exactWeightsFile, diskPtr+sizeof(float)*levelDocNum, SEEK_SET);
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/Weights.h

    r16583 r25147  
    2323#define WEIGHTS_H
    2424
     25#include "mglong.h"
    2526#include <stdio.h>
    2627
     
    2930public:
    3031  unsigned char bits;
    31   unsigned long mask;
     32  mg_u_long mask;
    3233  double L;
    3334  double B;
    34   unsigned long numLevelDocs;
    35   unsigned long *weightBuf;
     35  mg_u_long numLevelDocs;
     36  mg_u_long *weightBuf;
    3637  float *table;   // precomputed translation table
    3738 
     
    4142  void Free (); // frees any allocated memory
    4243 
    43   bool Read (FILE *approxWeightsFile, unsigned long diskPtr,
    44          unsigned long _numLevelDocs);
     44  bool Read (FILE *approxWeightsFile, mg_u_long diskPtr,
     45         mg_u_long _numLevelDocs);
    4546
    46   float GetLowerApproxDocWeight (unsigned long levelDocNum);
     47  float GetLowerApproxDocWeight (mg_u_long levelDocNum);
    4748};
    4849
     
    5051// diskPtr points to the start of the exact document weights
    5152// for this level
    52 float GetExactDocWeight (FILE *exactWeightsFile, unsigned long diskPtr,
    53              unsigned long levelDocNum);
     53float GetExactDocWeight (FILE *exactWeightsFile, mg_u_long diskPtr,
     54             mg_u_long levelDocNum);
    5455
    5556
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/WordData.h

    r16583 r25147  
    2424
    2525 public:
    26   unsigned long docCount;
    27   unsigned long wordCount;
     26  mg_u_long docCount;
     27  mg_u_long wordCount;
    2828
    2929  inline void read(FILE *f)
     
    3636    }
    3737
    38   inline unsigned long documents()
     38  inline mg_u_long documents()
    3939    {
    4040      return docCount;
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/build.h

    r16583 r25147  
    7777
    7878
    79 extern unsigned long invf_buffer_size;
     79extern mg_u_long invf_buffer_size;
    8080/*
    8181 * The amount of memory to allocate to the invertion buffer.
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/comp_dict.cpp

    r16583 r25147  
    4242huff_data char_huff[2];
    4343huff_data lens_huff[2];
    44 u_long *char_codes[2], *lens_codes[2];
    45 u_long Words_disk = 0;
    46 u_long Chars_disk = 0;
     44mg_u_long *char_codes[2], *lens_codes[2];
     45mg_u_long Words_disk = 0;
     46mg_u_long Chars_disk = 0;
    4747
    4848
     
    5555  dict_hash_table *ht;
    5656  u_char **words;
    57   u_long ht_size;
     57  mg_u_long ht_size;
    5858
    5959  ht_size = prime (cfh->hd.num_codes * HASH_RATIO);
     
    9999
    100100      memcpy (allwords + 1, prev + 1, copy);
    101       fread (allwords + copy + 1, sizeof (u_char), val, dict);
     101      size_t numbytes = fread (allwords + copy + 1, sizeof (u_char), val, dict);
     102      if (numbytes != val)
     103    {
     104#ifdef DEBUG
     105      fprintf(stderr, "[mgpp/text/comp_dict.cpp L104] number of bytes read by fread does not match the requested amount\n");
     106#endif
     107    }
    102108      *allwords = val + copy;
    103109
     
    108114    {
    109115      register u_char **wptr;
    110       register unsigned long tsize = ht->size;
    111       register unsigned long hashval, step;
     116      register mg_u_long tsize = ht->size;
     117      register mg_u_long hashval, step;
    112118
    113119      HASH (hashval, step, allwords, tsize);
     
    166172    return COMPERROR;
    167173
    168   Words_disk = sizeof (u_long);
     174  Words_disk = sizeof (mg_u_long);
    169175
    170176  if (Read_cdh (dict, &cdh, NULL, &Words_disk) == -1)
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/comp_dict.h

    r16583 r25147  
    2424typedef struct dict_hash_table
    2525  {
    26     u_long size;
     26    mg_u_long size;
    2727    huff_data *hd;
    28     u_long *codes;
     28    mg_u_long *codes;
    2929    u_char **words;
    3030    u_char **table[1];
     
    4040extern huff_data char_huff[2];
    4141extern huff_data lens_huff[2];
    42 extern u_long *char_codes[2], *lens_codes[2];
    43 extern u_long Words_disk;
    44 extern u_long Chars_disk;
     42extern mg_u_long *char_codes[2], *lens_codes[2];
     43extern mg_u_long Words_disk;
     44extern mg_u_long Chars_disk;
    4545
    4646
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/hash.h

    r16583 r25147  
    2626    do {                        \
    2727        register u_char *p=wd;          \
    28         register long len = *p++;       \
    29         register unsigned long hval;        \
     28        register mg_s_long len = *p++;      \
     29        register mg_u_long hval;        \
    3030        if (len>25) len = 25;           \
    3131        for (hval=0; len; --len)        \
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/invf.cpp

    r16583 r25147  
    104104}
    105105
    106 void word_dict_el::SetNumLevels (unsigned long numLevels) {
     106void word_dict_el::SetNumLevels (mg_u_long numLevels) {
    107107  if (levelFreqs != NULL) delete [] levelFreqs;
    108   levelFreqs = new unsigned long [numLevels];
    109 }
    110  
    111 bool word_dict_el::Read (FILE *f, unsigned long numLevels) {
     108  levelFreqs = new mg_u_long [numLevels];
     109}
     110 
     111bool word_dict_el::Read (FILE *f, mg_u_long numLevels) {
    112112  if (!dict_el::Read (f)) return false;
    113113
    114114  if (levelFreqs == NULL) return false;
    115115 
    116   unsigned long i;
     116  mg_u_long i;
    117117  for (i=0; i<numLevels; ++i) {
    118118    if (!ReadUL (f, levelFreqs[i])) return false;
     
    123123
    124124bool word_dict_el::Write (FILE *f, const UCArray *lastEl,
    125               unsigned long numLevels) const {
     125              mg_u_long numLevels) const {
    126126  if (!dict_el::Write (f, lastEl)) return false;
    127127
    128128  if (levelFreqs == NULL) return false;
    129129
    130   unsigned long i;
     130  mg_u_long i;
    131131  for (i=0; i<numLevels; ++i) {
    132132    if (!WriteUL (f, levelFreqs[i])) return false;
     
    229229}
    230230
    231 void word_block_dict_el::SetNumLevels (unsigned long numLevels) {
     231void word_block_dict_el::SetNumLevels (mg_u_long numLevels) {
    232232  if (levelFreqs != NULL) delete [] levelFreqs;
    233   levelFreqs = new unsigned long [numLevels];
    234 }
    235 
    236 bool word_block_dict_el::Read (FILE *f, unsigned long numLevels) {
     233  levelFreqs = new mg_u_long [numLevels];
     234}
     235
     236bool word_block_dict_el::Read (FILE *f, mg_u_long numLevels) {
    237237  if (!block_dict_el::Read (f)) return false;
    238238 
    239239  if (levelFreqs == NULL) return false;
    240240 
    241   unsigned long i;
     241  mg_u_long i;
    242242  for (i=0; i<numLevels; ++i) {
    243243    if (!ReadUL (f, levelFreqs[i])) return false;
     
    248248
    249249bool word_block_dict_el::Write (FILE *f, const UCArray *lastEl,
    250                 unsigned long numLevels) const {
     250                mg_u_long numLevels) const {
    251251  if (!block_dict_el::Write (f, lastEl)) return false;
    252252 
    253253  if (levelFreqs == NULL) return false;
    254254 
    255   unsigned long i;
     255  mg_u_long i;
    256256  for (i=0; i<numLevels; ++i) {
    257257    if (!WriteUL (f, levelFreqs[i])) return false;
     
    288288 
    289289  // read in the array size
    290   unsigned long arraySize = 0;
     290  mg_u_long arraySize = 0;
    291291  if (!ReadVarLenUL (f, arraySize)) return false;
    292292 
     
    383383 
    384384  // read in the array size
    385   unsigned long arraySize = 0;
     385  mg_u_long arraySize = 0;
    386386  if (!ReadVarLenUL (f, arraySize)) return false;
    387387 
    388388  // read in the array
    389   unsigned long wordNum;
     389  mg_u_long wordNum;
    390390  while (arraySize > 0) {
    391391    if (!ReadUL (f, wordNum)) return false;
     
    404404  if (!WriteVarLenUL (f, equivWords.size())) return false;
    405405
    406   vector<unsigned long>::const_iterator here = equivWords.begin();
    407   vector<unsigned long>::const_iterator end = equivWords.end();
     406  vector<mg_u_long>::const_iterator here = equivWords.begin();
     407  vector<mg_u_long>::const_iterator end = equivWords.end();
    408408  while (here != end) {
    409409    if (!WriteUL (f, (*here))) return false;
     
    464464
    465465bool SearchElNum (const block_idx &bIdx,
    466           unsigned long entriesPerBlock,
    467           unsigned long elNum,
    468           unsigned long &blockIdxNum,
    469           unsigned long &blockStartElNum) {
     466          mg_u_long entriesPerBlock,
     467          mg_u_long elNum,
     468          mg_u_long &blockIdxNum,
     469          mg_u_long &blockStartElNum) {
    470470  blockIdxNum = 0;
    471471  blockStartElNum = 0;
     
    481481
    482482bool SearchEl (const block_idx &bIdx,
    483            unsigned long entriesPerBlock,
     483           mg_u_long entriesPerBlock,
    484484           const UCArray &el,
    485            unsigned long &blockIdxNum,
    486            unsigned long &blockStartElNum) {
     485           mg_u_long &blockIdxNum,
     486           mg_u_long &blockStartElNum) {
    487487  blockIdxNum = 0;
    488488  blockStartElNum = 0;
    489489
    490   unsigned long begin = 0;
    491   unsigned long bIdxEnd = bIdx.size();
    492   unsigned long end = bIdxEnd;
    493   unsigned long mid;
     490  mg_u_long begin = 0;
     491  mg_u_long bIdxEnd = bIdx.size();
     492  mg_u_long end = bIdxEnd;
     493  mg_u_long mid;
    494494  while (begin < end) {
    495495    mid = (begin+end)/2;
     
    517517bool SearchBlockDictElNum (FILE *dictFile,
    518518               const block_idx &bIdx,
    519                unsigned long entriesPerBlock,
    520                unsigned long dictSize,
    521                unsigned long elNum,
     519               mg_u_long entriesPerBlock,
     520               mg_u_long dictSize,
     521               mg_u_long elNum,
    522522               block_dict_el &dictEl) {
    523523  UCArrayClear (dictEl.el);
     
    525525
    526526  // find the block that contains the element
    527   unsigned long blockIdxNum, curElNum;
     527  mg_u_long blockIdxNum, curElNum;
    528528  if (!SearchElNum (bIdx, entriesPerBlock, elNum,
    529529            blockIdxNum, curElNum))
     
    541541bool SearchBlockDictEl (FILE *dictFile,
    542542            const block_idx &bIdx,
    543             unsigned long entriesPerBlock,
    544             unsigned long dictSize,
     543            mg_u_long entriesPerBlock,
     544            mg_u_long dictSize,
    545545            const UCArray &el,
    546546            block_dict_el &dictEl,
    547             unsigned long &elNum) {
     547            mg_u_long &elNum) {
    548548  UCArrayClear (dictEl.el);
    549549
    550550  // find the block that contains the element
    551   unsigned long blockIdxNum;
     551  mg_u_long blockIdxNum;
    552552  if (!SearchEl (bIdx, entriesPerBlock, el,
    553553         blockIdxNum, elNum))
    554554    return false;
    555555
    556   unsigned long blockEndElNum = elNum + entriesPerBlock;
     556  mg_u_long blockEndElNum = elNum + entriesPerBlock;
    557557  if (blockEndElNum > dictSize) blockEndElNum = dictSize;
    558558
     
    576576bool SearchWordBlockDictElNum (FILE *dictFile,
    577577                   const block_idx &bIdx,
    578                    unsigned long entriesPerBlock,
    579                    unsigned long dictSize,
    580                    unsigned long numLevels,
    581                    unsigned long elNum,
     578                   mg_u_long entriesPerBlock,
     579                   mg_u_long dictSize,
     580                   mg_u_long numLevels,
     581                   mg_u_long elNum,
    582582                   word_block_dict_el &dictEl) {
    583583  UCArrayClear (dictEl.el);
     
    585585
    586586  // find the block that contains the element
    587   unsigned long blockIdxNum, curElNum;
     587  mg_u_long blockIdxNum, curElNum;
    588588  if (!SearchElNum (bIdx, entriesPerBlock, elNum,
    589589            blockIdxNum, curElNum))
     
    601601bool SearchWordBlockDictEl (FILE *dictFile,
    602602                const block_idx &bIdx,
    603                 unsigned long entriesPerBlock,
    604                 unsigned long dictSize,
    605                 unsigned long numLevels,
     603                mg_u_long entriesPerBlock,
     604                mg_u_long dictSize,
     605                mg_u_long numLevels,
    606606                const UCArray &el,
    607607                word_block_dict_el &dictEl,
    608                 unsigned long &elNum) {
     608                mg_u_long &elNum) {
    609609  UCArrayClear (dictEl.el);
    610610
    611611  // find the block that contains the element
    612   unsigned long blockIdxNum;
     612  mg_u_long blockIdxNum;
    613613  if (!SearchEl (bIdx, entriesPerBlock, el,
    614614         blockIdxNum, elNum))
    615615    return false;
    616616
    617   unsigned long blockEndElNum = elNum + entriesPerBlock;
     617  mg_u_long blockEndElNum = elNum + entriesPerBlock;
    618618  if (blockEndElNum > dictSize) blockEndElNum = dictSize;
    619619
     
    637637bool SearchStemBlockDictElNum (FILE *dictFile,
    638638                   const block_idx &bIdx,
    639                    unsigned long entriesPerBlock,
    640                    unsigned long dictSize,
    641                    unsigned long elNum,
     639                   mg_u_long entriesPerBlock,
     640                   mg_u_long dictSize,
     641                   mg_u_long elNum,
    642642                   stem_block_dict_el &dictEl) {
    643643  UCArrayClear (dictEl.el);
     
    645645
    646646  // find the block that contains the element
    647   unsigned long blockIdxNum, curElNum;
     647  mg_u_long blockIdxNum, curElNum;
    648648  if (!SearchElNum (bIdx, entriesPerBlock, elNum,
    649649            blockIdxNum, curElNum))
     
    661661bool SearchStemBlockDictEl (FILE *dictFile,
    662662                const block_idx &bIdx,
    663                 unsigned long entriesPerBlock,
    664                 unsigned long dictSize,
     663                mg_u_long entriesPerBlock,
     664                mg_u_long dictSize,
    665665                const UCArray &el,
    666666                stem_block_dict_el &dictEl,
    667                 unsigned long &elNum) {
     667                mg_u_long &elNum) {
    668668  UCArrayClear (dictEl.el);
    669669
    670670  // find the block that contains the element
    671   unsigned long blockIdxNum;
     671  mg_u_long blockIdxNum;
    672672  if (!SearchEl (bIdx, entriesPerBlock, el,
    673673         blockIdxNum, elNum))
    674674    return false;
    675675
    676   unsigned long blockEndElNum = elNum + entriesPerBlock;
     676  mg_u_long blockEndElNum = elNum + entriesPerBlock;
    677677  if (blockEndElNum > dictSize) blockEndElNum = dictSize;
    678678
     
    696696bool PartialMatchSearchWordBlockDictEl (FILE *dictFile,
    697697                 const block_idx &bIdx,
    698                  unsigned long entriesPerBlock,
    699                  unsigned long dictSize,
    700                  unsigned long numLevels,
     698                 mg_u_long entriesPerBlock,
     699                 mg_u_long dictSize,
     700                 mg_u_long numLevels,
    701701                 const UCArray &el,
    702702                 word_block_dict_el &dictEl,
    703                  vector<unsigned long> &elNumList,
     703                 vector<mg_u_long> &elNumList,
    704704                 bool casefold) {
    705705
    706706  UCArrayClear (dictEl.el);
    707707  elNumList.erase (elNumList.begin(), elNumList.end());
    708   unsigned long elNum;
     708  mg_u_long elNum;
    709709  // find the block that contains the element
    710   unsigned long blockIdxNum;
     710  mg_u_long blockIdxNum;
    711711  // will this work??
    712712  if (!SearchEl (bIdx, entriesPerBlock, el,
     
    714714    return false;
    715715  }
    716   unsigned long blockEndElNum = elNum + entriesPerBlock;
     716  mg_u_long blockEndElNum = elNum + entriesPerBlock;
    717717  if (blockEndElNum > dictSize) blockEndElNum = dictSize;
    718718 
     
    770770bool NearestSearchWordBlockDictEl (FILE *dictFile,
    771771                   const block_idx &bIdx,
    772                    unsigned long entriesPerBlock,
    773                    unsigned long dictSize,
    774                    unsigned long numLevels,
     772                   mg_u_long entriesPerBlock,
     773                   mg_u_long dictSize,
     774                   mg_u_long numLevels,
    775775                   const UCArray &el,
    776776                   word_block_dict_el &dictEl,
    777                    unsigned long &elNum) {
     777                   mg_u_long &elNum) {
    778778
    779779  UCArrayClear (dictEl.el);
    780780
    781781  // find the block that contains the element
    782   unsigned long blockIdxNum;
     782  mg_u_long blockIdxNum;
    783783  if (!SearchEl (bIdx, entriesPerBlock, el,
    784784         blockIdxNum, elNum))
    785785    return false;
    786786
    787   unsigned long blockEndElNum = elNum + entriesPerBlock;
     787  mg_u_long blockEndElNum = elNum + entriesPerBlock;
    788788  if (blockEndElNum > dictSize) blockEndElNum = dictSize;
    789789
     
    809809bool SearchWordBlockDictElNumRange (FILE *dictFile,
    810810                    const block_idx &bIdx,
    811                     unsigned long entriesPerBlock,
    812                     unsigned long dictSize,
    813                     unsigned long numLevels,
    814                     unsigned long elNum,
    815                     unsigned long numWords,
     811                    mg_u_long entriesPerBlock,
     812                    mg_u_long dictSize,
     813                    mg_u_long numLevels,
     814                    mg_u_long elNum,
     815                    mg_u_long numWords,
    816816                    UCArrayVector &terms) {
    817817
     
    825825 
    826826  // find the block that contains the element
    827   unsigned long blockIdxNum, curElNum;
     827  mg_u_long blockIdxNum, curElNum;
    828828  if (!SearchElNum (bIdx, entriesPerBlock, elNum,
    829829            blockIdxNum, curElNum))
    830830    return false;
    831831
    832   unsigned long lastElNum = elNum + numWords - 1;
     832  mg_u_long lastElNum = elNum + numWords - 1;
    833833  if (lastElNum > dictSize) lastElNum = dictSize;
    834834
     
    859859bool SearchWordBlockDictElNumRange (FILE *dictFile,
    860860                    const block_idx &bIdx,
    861                     unsigned long entriesPerBlock,
    862                     unsigned long dictSize,
    863                     unsigned long numLevels,
    864                     unsigned long elNum,
    865                     unsigned long numWords,
     861                    mg_u_long entriesPerBlock,
     862                    mg_u_long dictSize,
     863                    mg_u_long numLevels,
     864                    mg_u_long elNum,
     865                    mg_u_long numWords,
    866866                    word_block_dict_el_array &terms) {
    867867
     
    876876 
    877877  // find the block that contains the element
    878   unsigned long blockIdxNum, curElNum;
     878  mg_u_long blockIdxNum, curElNum;
    879879  if (!SearchElNum (bIdx, entriesPerBlock, elNum,
    880880            blockIdxNum, curElNum))
    881881    return false;
    882882
    883   unsigned long lastElNum = elNum + numWords - 1;
     883  mg_u_long lastElNum = elNum + numWords - 1;
    884884  if (lastElNum > dictSize) lastElNum = dictSize;
    885885
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/invf.h

    r16583 r25147  
    2525#define H_INVF
    2626
     27#include "mglong.h"
    2728#include <stdio.h>
    2829
     
    3233// header info for .invf.dict file
    3334struct invf_dict_header {
    34   unsigned long lookback;
    35   unsigned long word_dict_start;
    36   unsigned long word_dict_size;
    37   unsigned long tag_dict_start;
    38   unsigned long tag_dict_size;
    39   unsigned long num_docs;
    40   unsigned long num_frags;
    41   unsigned long num_words;
    42   unsigned long total_bytes;
    43   unsigned long index_string_bytes;
    44   unsigned long num_levels;
     35  mg_u_long lookback;
     36  mg_u_long word_dict_start;
     37  mg_u_long word_dict_size;
     38  mg_u_long tag_dict_start;
     39  mg_u_long tag_dict_size;
     40  mg_u_long num_docs;
     41  mg_u_long num_frags;
     42  mg_u_long num_words;
     43  mg_u_long total_bytes;
     44  mg_u_long index_string_bytes;
     45  mg_u_long num_levels;
    4546
    4647  invf_dict_header ();
     
    5556struct dict_el {
    5657  UCArray el; // word or tag
    57   unsigned long frag_occur;
    58   unsigned long freq;
     58  mg_u_long frag_occur;
     59  mg_u_long freq;
    5960
    6061  virtual void Clear ();
     
    6970
    7071struct word_dict_el : public dict_el {
    71   unsigned long *levelFreqs;
     72  mg_u_long *levelFreqs;
    7273
    7374  void Clear ();
     
    7576  ~word_dict_el ();
    7677
    77   void SetNumLevels (unsigned long numLevels);
     78  void SetNumLevels (mg_u_long numLevels);
    7879
    7980  // SetNumLevels should be called before either
     
    8182 
    8283  // Read assumes that the last word is in el
    83   bool Read (FILE *f, unsigned long numLevels);
     84  bool Read (FILE *f, mg_u_long numLevels);
    8485  bool Write (FILE *f, const UCArray *lastEl,
    85           unsigned long numLevels) const;
     86          mg_u_long numLevels) const;
    8687};
    8788
     
    100101  // for blocked dictionaries
    101102
    102   unsigned long entries_per_wblk; // word blocks
    103   unsigned long num_wblks;
    104   unsigned long max_wblk_size;
    105   unsigned long wblk_start;
    106   unsigned long wblk_idx_start;
    107  
    108   unsigned long entries_per_tblk; // tag blocks
    109   unsigned long num_tblks;
    110   unsigned long max_tblk_size;
    111   unsigned long tblk_start;
    112   unsigned long tblk_idx_start;
     103  mg_u_long entries_per_wblk; // word blocks
     104  mg_u_long num_wblks;
     105  mg_u_long max_wblk_size;
     106  mg_u_long wblk_start;
     107  mg_u_long wblk_idx_start;
     108 
     109  mg_u_long entries_per_tblk; // tag blocks
     110  mg_u_long num_tblks;
     111  mg_u_long max_tblk_size;
     112  mg_u_long tblk_start;
     113  mg_u_long tblk_idx_start;
    113114 
    114115  block_dict_header ();
     
    122123struct block_dict_el {
    123124  UCArray el; // word or tag
    124   unsigned long frag_occur; // # entries in invf file - if have a
     125  mg_u_long frag_occur; // # entries in invf file - if have a
    125126  // word level index, this is the same as freq, otherwise, its the number
    126127  // of fragments containing this word
    127   unsigned long freq; // # of times this word occurs
    128   unsigned long invf_ptr; // pointer into inverted file
     128  mg_u_long freq; // # of times this word occurs
     129  mg_u_long invf_ptr; // pointer into inverted file
    129130
    130131  virtual void Clear ();
     
    140141
    141142struct word_block_dict_el : public block_dict_el {
    142   unsigned long *levelFreqs; // freq of the word at each level
     143  mg_u_long *levelFreqs; // freq of the word at each level
    143144
    144145  void Clear ();
     
    146147  ~word_block_dict_el ();
    147148
    148   void SetNumLevels (unsigned long numLevels);
     149  void SetNumLevels (mg_u_long numLevels);
    149150
    150151  // SetNumLevels should be called before either
     
    152153 
    153154  // Read assumes that the last word is in el
    154   bool Read (FILE *f, unsigned long numLevels);
     155  bool Read (FILE *f, mg_u_long numLevels);
    155156  bool Write (FILE *f, const UCArray *lastEl,
    156           unsigned long numLevels) const;
     157          mg_u_long numLevels) const;
    157158};
    158159
     
    161162struct block_idx_info {
    162163  UCArray el;
    163   unsigned long block_ptr;
     164  mg_u_long block_ptr;
    164165
    165166  block_idx_info ();
     
    179180
    180181struct stem_idx_header {
    181   unsigned long lookback;
    182   unsigned long dict_size;
    183 
    184   unsigned long entries_per_block;
    185   unsigned long num_blocks;
    186   unsigned long max_block_size;
    187   unsigned long blocks_start;
    188   unsigned long block_idx_start;
    189  
    190   unsigned long stemmer_num;
    191   unsigned long stem_method;
     182  mg_u_long lookback;
     183  mg_u_long dict_size;
     184
     185  mg_u_long entries_per_block;
     186  mg_u_long num_blocks;
     187  mg_u_long max_block_size;
     188  mg_u_long blocks_start;
     189  mg_u_long block_idx_start;
     190 
     191  mg_u_long stemmer_num;
     192  mg_u_long stem_method;
    192193
    193194  stem_idx_header ();
     
    200201struct stem_block_dict_el {
    201202  UCArray el; // word or tag
    202   vector<unsigned long> equivWords;
     203  vector<mg_u_long> equivWords;
    203204 
    204205  stem_block_dict_el ();
     
    220221// with num entries, and a pointer into invf file
    221222struct invf_file_header {
    222   unsigned long no_of_words;
    223   unsigned long no_of_tags;
    224   unsigned long skip_mode;
    225   unsigned long word_level_index; // 1 if word level index
    226   unsigned long params[16];
     223  mg_u_long no_of_words;
     224  mg_u_long no_of_tags;
     225  mg_u_long skip_mode;
     226  mg_u_long word_level_index; // 1 if word level index
     227  mg_u_long params[16];
    227228
    228229  invf_file_header ();
     
    242243// the block index is sorted by DictCompare (or DictLTUCArray)
    243244bool SearchElNum (const block_idx &bIdx,
    244           unsigned long entriesPerBlock,
    245           unsigned long elNum,
    246           unsigned long &blockIdxNum,
    247           unsigned long &blockStartElNum);
     245          mg_u_long entriesPerBlock,
     246          mg_u_long elNum,
     247          mg_u_long &blockIdxNum,
     248          mg_u_long &blockStartElNum);
    248249bool SearchEl (const block_idx &bIdx,
    249            unsigned long entriesPerBlock,
     250           mg_u_long entriesPerBlock,
    250251           const UCArray &el,
    251            unsigned long &blockIdxNum,
    252            unsigned long &blockStartElNum);
     252           mg_u_long &blockIdxNum,
     253           mg_u_long &blockStartElNum);
    253254
    254255
     
    258259bool SearchBlockDictElNum (FILE *dictFile,
    259260               const block_idx &bIdx,
    260                unsigned long entriesPerBlock,
    261                unsigned long dictSize,
    262                unsigned long elNum,
     261               mg_u_long entriesPerBlock,
     262               mg_u_long dictSize,
     263               mg_u_long elNum,
    263264               block_dict_el &dictEl);
    264265bool SearchBlockDictEl (FILE *dictFile,
    265266            const block_idx &bIdx,
    266             unsigned long entriesPerBlock,
    267             unsigned long dictSize,
     267            mg_u_long entriesPerBlock,
     268            mg_u_long dictSize,
    268269            const UCArray &el,
    269270            block_dict_el &dictEl,
    270             unsigned long &elNum);
     271            mg_u_long &elNum);
    271272
    272273// assumes the numLevels has been set for dictEl
    273274bool SearchWordBlockDictElNum (FILE *dictFile,
    274275                   const block_idx &bIdx,
    275                    unsigned long entriesPerBlock,
    276                    unsigned long dictSize,
    277                    unsigned long numLevels,
    278                    unsigned long elNum,
     276                   mg_u_long entriesPerBlock,
     277                   mg_u_long dictSize,
     278                   mg_u_long numLevels,
     279                   mg_u_long elNum,
    279280                   word_block_dict_el &dictEl);
    280281bool SearchWordBlockDictEl (FILE *dictFile,
    281282                const block_idx &bIdx,
    282                 unsigned long entriesPerBlock,
    283                 unsigned long dictSize,
    284                 unsigned long numLevels,
     283                mg_u_long entriesPerBlock,
     284                mg_u_long dictSize,
     285                mg_u_long numLevels,
    285286                const UCArray &el,
    286287                word_block_dict_el &dictEl,
    287                 unsigned long &elNum);
     288                mg_u_long &elNum);
    288289
    289290bool SearchStemBlockDictElNum (FILE *dictFile,
    290291                   const block_idx &bIdx,
    291                    unsigned long entriesPerBlock,
    292                    unsigned long dictSize,
    293                    unsigned long elNum,
     292                   mg_u_long entriesPerBlock,
     293                   mg_u_long dictSize,
     294                   mg_u_long elNum,
    294295                   stem_block_dict_el &dictEl);
    295296bool SearchStemBlockDictEl (FILE *dictFile,
    296297                const block_idx &bIdx,
    297                 unsigned long entriesPerBlock,
    298                 unsigned long dictSize,
     298                mg_u_long entriesPerBlock,
     299                mg_u_long dictSize,
    299300                const UCArray &el,
    300301                stem_block_dict_el &dictEl,
    301                 unsigned long &elNum);
     302                mg_u_long &elNum);
    302303
    303304//-----------------------------------------------------
     
    307308bool PartialMatchSearchWordBlockDictEl (FILE *dictFile,
    308309                 const block_idx &bIdx,
    309                  unsigned long entriesPerBlock,
    310                  unsigned long dictSize,
    311                  unsigned long numLevels,
     310                 mg_u_long entriesPerBlock,
     311                 mg_u_long dictSize,
     312                 mg_u_long numLevels,
    312313                 const UCArray &el,
    313314                 word_block_dict_el &dictEl,
    314                  vector<unsigned long> &elNumList,
     315                 vector<mg_u_long> &elNumList,
    315316                 bool casefold);
    316317//----------------------------------------------------------
     
    320321bool NearestSearchWordBlockDictEl (FILE *dictFile,
    321322                const block_idx &bIdx,
    322                 unsigned long entriesPerBlock,
    323                 unsigned long dictSize,
    324                 unsigned long numLevels,
     323                mg_u_long entriesPerBlock,
     324                mg_u_long dictSize,
     325                mg_u_long numLevels,
    325326                const UCArray &el,
    326327                word_block_dict_el &dictEl,
    327                 unsigned long &elNum);
     328                mg_u_long &elNum);
    328329
    329330// returns a list of word_block_dict_el, with no levelfreqs
    330331bool SearchWordBlockDictElNumRange (FILE *dictFile,
    331332                    const block_idx &bIdx,
    332                     unsigned long entriesPerBlock,
    333                     unsigned long dictSize,
    334                     unsigned long numLevels,
    335                     unsigned long elNum,
    336                     unsigned long numWords,
     333                    mg_u_long entriesPerBlock,
     334                    mg_u_long dictSize,
     335                    mg_u_long numLevels,
     336                    mg_u_long elNum,
     337                    mg_u_long numWords,
    337338                    word_block_dict_el_array &terms);
    338339                   
     
    340341bool SearchWordBlockDictElNumRange (FILE *dictFile,
    341342                    const block_idx &bIdx,
    342                     unsigned long entriesPerBlock,
    343                     unsigned long dictSize,
    344                     unsigned long numLevels,
    345                     unsigned long elNum,
    346                     unsigned long numWords,
     343                    mg_u_long entriesPerBlock,
     344                    mg_u_long dictSize,
     345                    mg_u_long numLevels,
     346                    mg_u_long elNum,
     347                    mg_u_long numWords,
    347348                    UCArrayVector &terms);
    348349                   
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/ivf.pass1.cpp

    r16583 r25147  
    5151// structure to determine level information
    5252struct LevelWorker {
    53   unsigned long lastLevelDocNum;
    54   unsigned long count;
     53  mg_u_long lastLevelDocNum;
     54  mg_u_long count;
    5555
    5656  LevelWorker () {
     
    6262// note: the word is stored in the map
    6363struct IvfWordInfo {
    64   unsigned long wordCount;      // word frequency
    65   unsigned long fragCount;      // number of fragments that contain the word
    66   unsigned long lastFragNum;    // last fragment to contain the word
    67   unsigned long chunkWordCount; // word frequency within this chunk
    68   unsigned long chunkFragCount; // number of fragments within this chunk that
     64  mg_u_long wordCount;      // word frequency
     65  mg_u_long fragCount;      // number of fragments that contain the word
     66  mg_u_long lastFragNum;    // last fragment to contain the word
     67  mg_u_long chunkWordCount; // word frequency within this chunk
     68  mg_u_long chunkFragCount; // number of fragments within this chunk that
    6969                                //   contain the word
    7070
     
    8181// tags don't require as much information
    8282struct IvfTagInfo {
    83   unsigned long tagCount;       // tag frequency
    84   unsigned long fragCount;      // number of fragments that contain the tag
    85   unsigned long lastFragNum;    // last fragment to contain the tag
    86   unsigned long chunkFragCount; // number of fragments within this chunk that
     83  mg_u_long tagCount;       // tag frequency
     84  mg_u_long fragCount;      // number of fragments that contain the tag
     85  mg_u_long lastFragNum;    // last fragment to contain the tag
     86  mg_u_long chunkFragCount; // number of fragments within this chunk that
    8787                                //   contain the tag
    8888
     
    109109IvfTagInfoItArray ivfTagInfoOccurOrder;
    110110
    111 static unsigned long chunksWritten;
    112 static unsigned long maxMemNeeded;
    113 
    114 static unsigned long numDocs;
    115 static unsigned long numChunkDocs;
    116 
    117 static unsigned long numFrags;
    118 static unsigned long numChunkFrags;
    119 
    120 static unsigned long numWords;
     111static mg_u_long chunksWritten;
     112static mg_u_long maxMemNeeded;
     113
     114static mg_u_long numDocs;
     115static mg_u_long numChunkDocs;
     116
     117static mg_u_long numFrags;
     118static mg_u_long numChunkFrags;
     119
     120static mg_u_long numWords;
    121121
    122122// the number of document numbers in the inverted file
    123 static unsigned long numChunkEntries;
     123static mg_u_long numChunkEntries;
    124124
    125125// next entry in the inverted file to check memory
    126126// requirements for the current chunk
    127 static unsigned long entryCheckPoint;
     127static mg_u_long entryCheckPoint;
    128128
    129129// information about all the different levels
     
    173173              MAGIC_CHUNK, MG_MESSAGE)))
    174174    return COMPERROR;
    175   fwrite ("    ", sizeof (u_long), 1, ic);  // Space for the maxmem
     175  fwrite ("    ", sizeof (mg_u_long), 1, ic);   // Space for the maxmem
    176176  icb.attachFile (ic);
    177177  icb.encodeStart();
     
    195195
    196196  numChunkEntries = 0;
    197   entryCheckPoint = (unsigned long) ((invf_buffer_size * INIT_CHECK_FRAC) / CHECK_DIV);
     197  entryCheckPoint = (mg_u_long) ((invf_buffer_size * INIT_CHECK_FRAC) / CHECK_DIV);
    198198
    199199  // init the level information
     
    347347
    348348
    349 static unsigned long MemoryRequired (bool wordLevelIndex) {
    350   register unsigned long total = 0;
     349static mg_u_long MemoryRequired (bool wordLevelIndex) {
     350  register mg_u_long total = 0;
    351351
    352352  // add memory required for word entries
     
    372372    if (info.chunkFragCount > 0) {
    373373      // two d entries for each frag entry
    374       unsigned long pTag = info.chunkFragCount*2;
     374      mg_u_long pTag = info.chunkFragCount*2;
    375375      total += BIO_Bblock_Bound (numChunkFrags+pTag, pTag);
    376376    }
     
    385385
    386386/*
    387 static void PrintChunkInfo (unsigned long mem) {
     387static void PrintChunkInfo (mg_u_long mem) {
    388388  cout << "Chunk Number: " << chunksWritten << "\n";
    389389  cout << "numChunkDocs " << numChunkDocs << "\n";
     
    396396  IvfTagInfoMap::iterator tagMapHere = ivfTagInfo.begin();
    397397  IvfTagInfoMap::iterator tagMapEnd = ivfTagInfo.end();
    398   unsigned long tagNum = 0;
     398  mg_u_long tagNum = 0;
    399399  while (tagMapHere != tagMapEnd) {
    400400    cout << (*tagMapHere).first << " " << tagNum
     
    406406*/
    407407
    408 static void OutputChunkInfo (unsigned long mem, bool /*wordLevelIndex*/) {
     408static void OutputChunkInfo (mg_u_long mem, bool /*wordLevelIndex*/) {
    409409  ++chunksWritten;
    410410
     
    493493  // check the amount of memory needed for this chunk
    494494  if (numChunkEntries >= entryCheckPoint) {
    495     unsigned long mem = MemoryRequired (wordLevelIndex);
     495    mg_u_long mem = MemoryRequired (wordLevelIndex);
    496496    if (mem >= invf_buffer_size * CHECK_CLOSE) {
    497497      if (mem > maxMemNeeded) maxMemNeeded = mem;
    498498      OutputChunkInfo (mem, wordLevelIndex);
    499       entryCheckPoint = (unsigned long)
     499      entryCheckPoint = (mg_u_long)
    500500    ((invf_buffer_size * INIT_CHECK_FRAC) / CHECK_DIV);
    501501     
    502502    } else {
    503       entryCheckPoint = (unsigned long)
     503      entryCheckPoint = (mg_u_long)
    504504    (entryCheckPoint * ((CHECK_FRAC * (invf_buffer_size - mem)) / mem) +
    505505     entryCheckPoint);
     
    513513
    514514
    515 static void CalcInvfDictSize (unsigned long &totalBytes,
    516                   unsigned long &indexStringBytes) {
     515static void CalcInvfDictSize (mg_u_long &totalBytes,
     516                  mg_u_long &indexStringBytes) {
    517517  totalBytes = 0;   // The sum of the length of all words, including
    518518            // the length byte
     
    526526  IvfWordInfoMap::iterator wordEnd = ivfWordInfo.end();
    527527  while (wordHere != wordEnd) {
    528     unsigned long wordSize = (*wordHere).first.size();
     528    mg_u_long wordSize = (*wordHere).first.size();
    529529    totalBytes += wordSize + 1;
    530530    indexStringBytes += wordSize + 2;
     
    541541  IvfTagInfoMap::iterator tagEnd = ivfTagInfo.end();
    542542  while (tagHere != tagEnd) {
    543     unsigned long tagSize = (*tagHere).first.size();
     543    mg_u_long tagSize = (*tagHere).first.size();
    544544    totalBytes += tagSize + 1;
    545545    indexStringBytes += tagSize + 2;
     
    642642
    643643  // write out the updated header
    644   fseek (sp, sizeof (u_long), SEEK_SET);
     644  fseek (sp, sizeof (mg_u_long), SEEK_SET);
    645645  if (!idh.Write (sp)) { fclose (sp); return; }
    646646 
     
    691691
    692692  // write out the word translation table
    693   unsigned long wordDictSize = ivfWordInfoOccurOrder.size();
     693  mg_u_long wordDictSize = ivfWordInfoOccurOrder.size();
    694694  IvfWordInfoItArray::iterator wordItHere = ivfWordInfoOccurOrder.begin();
    695695  IvfWordInfoItArray::iterator wordItEnd = ivfWordInfoOccurOrder.end();
    696   unsigned long oN = 0;
     696  mg_u_long oN = 0;
    697697  while (wordItHere != wordItEnd) {
    698698    register IvfWordInfo &ivfWordInfo = (*(*wordItHere)).second;
     
    703703
    704704  // write out the tag translation table
    705   unsigned long tagDictSize = ivfTagInfoOccurOrder.size();
     705  mg_u_long tagDictSize = ivfTagInfoOccurOrder.size();
    706706  IvfTagInfoItArray::iterator tagItHere = ivfTagInfoOccurOrder.begin();
    707707  IvfTagInfoItArray::iterator tagItEnd = ivfTagInfoOccurOrder.end();
     
    737737
    738738  char *temp_str = msg_prefix;
    739   msg_prefix = "ivf.pass1";
     739  msg_prefix = (char*)"ivf.pass1";
    740740
    741741  // output the last chunk
    742742  if (numChunkDocs > 0) {
    743     unsigned long mem = MemoryRequired (wordLevelIndex);
     743    mg_u_long mem = MemoryRequired (wordLevelIndex);
    744744    OutputChunkInfo (mem, wordLevelIndex);
    745745    if (mem > maxMemNeeded) maxMemNeeded = mem;
     
    751751
    752752  // write out the maximum memory required and close the file
    753   fseek (ic, sizeof (long), 0);
     753  fseek (ic, sizeof (mg_u_long), 0);
    754754  WriteUL (ic, maxMemNeeded);
    755755  fclose (ic);
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/ivf.pass2.cpp

    r19822 r25147  
    7979
    8080
    81 static unsigned long numDocs = 0;
    82 static unsigned long numChunkDocs = 0;
    83 static unsigned long numDocsInChunk = 0;
    84 
    85 static unsigned long numFrags = 0;
    86 static unsigned long numFragsInChunk = 0;
    87 static unsigned long chunkStartFragNum = 0;
     81static mg_u_long numDocs = 0;
     82static mg_u_long numChunkDocs = 0;
     83static mg_u_long numDocsInChunk = 0;
     84
     85static mg_u_long numFrags = 0;
     86static mg_u_long numFragsInChunk = 0;
     87static mg_u_long chunkStartFragNum = 0;
    8888
    8989
     
    9191
    9292struct BitPtr {
    93   unsigned long start;
    94   unsigned long here;
    95   unsigned long lastFragNum;
    96   unsigned long lgB;
     93  mg_u_long start;
     94  mg_u_long here;
     95  mg_u_long lastFragNum;
     96  mg_u_long lgB;
    9797 
    9898  void Clear () { start = here = lastFragNum = lgB = 0; }
     
    102102class WordBitPtrs {
    103103protected:
    104   unsigned long numWords;
    105   unsigned long numTags;
    106   unsigned long size;
     104  mg_u_long numWords;
     105  mg_u_long numTags;
     106  mg_u_long size;
    107107  BitPtr *wordBitPtrs;
    108108
    109   void CheckBufOverrun (unsigned long num) {
     109  void CheckBufOverrun (mg_u_long num) {
    110110    if (wordBitPtrs[num].here > wordBitPtrs[num+1].start) {
    111111      cerr << "numDocs: " << numDocs << "\n";
     
    127127  WordBitPtrs () { wordBitPtrs = NULL; Clear(); }
    128128  ~WordBitPtrs ();
    129   void SetSize (unsigned long _numWords,
    130         unsigned long _numTags);
     129  void SetSize (mg_u_long _numWords,
     130        mg_u_long _numTags);
    131131
    132132  void ResetPtrs () {
    133133    if (wordBitPtrs == NULL) return;
    134     unsigned long i;
     134    mg_u_long i;
    135135    for (i=0; i<size; ++i) wordBitPtrs[i].Clear();
    136136  }
    137137 
    138   BitPtr &GetWordBitPtr (unsigned long wordNum)
     138  BitPtr &GetWordBitPtr (mg_u_long wordNum)
    139139    { return wordBitPtrs[wordNum]; }
    140   unsigned long &GetWordStart (unsigned long wordNum)
     140  mg_u_long &GetWordStart (mg_u_long wordNum)
    141141    { return wordBitPtrs[wordNum].start; }
    142   unsigned long &GetWordHere (unsigned long wordNum)
     142  mg_u_long &GetWordHere (mg_u_long wordNum)
    143143    { return wordBitPtrs[wordNum].here; }
    144   void CheckWordBufOverrun (unsigned long wordNum)
     144  void CheckWordBufOverrun (mg_u_long wordNum)
    145145    { CheckBufOverrun (wordNum); }
    146146
    147   BitPtr &GetTagBitPtr (unsigned long tagNum)
     147  BitPtr &GetTagBitPtr (mg_u_long tagNum)
    148148    { return wordBitPtrs[tagNum + numWords]; }
    149   unsigned long &GetTagStart (unsigned long tagNum)
     149  mg_u_long &GetTagStart (mg_u_long tagNum)
    150150    { return wordBitPtrs[tagNum + numWords].start; }
    151   unsigned long &GetTagHere (unsigned long tagNum)
     151  mg_u_long &GetTagHere (mg_u_long tagNum)
    152152    { return wordBitPtrs[tagNum + numWords].here; }
    153   void CheckTagBufOverrun (unsigned long tagNum)
     153  void CheckTagBufOverrun (mg_u_long tagNum)
    154154    { CheckBufOverrun (tagNum + numWords); }
    155155
    156156  BitPtr &GetEndBitPtr ()
    157157    { return wordBitPtrs[size-1]; }
    158   unsigned long &GetEndStart ()
     158  mg_u_long &GetEndStart ()
    159159    { return wordBitPtrs[size-1].start; }
    160   unsigned long &GetEndHere ()
     160  mg_u_long &GetEndHere ()
    161161    { return wordBitPtrs[size-1].here; }
    162162};
     
    165165struct IP2TagInfo {
    166166  bool inTag;
    167   unsigned long startFrag;
    168   unsigned long tagNum;
     167  mg_u_long startFrag;
     168  mg_u_long tagNum;
    169169
    170170  IP2TagInfo () {
     
    183183class OccurToDictConverter {
    184184protected:
    185   unsigned long pos;
    186   unsigned long val;
     185  mg_u_long pos;
     186  mg_u_long val;
    187187  FILE *transFile;
    188188  random_bitio_buffer rbs;
    189189
    190   unsigned long wordDictSize;
    191   unsigned long tagDictSize;
     190  mg_u_long wordDictSize;
     191  mg_u_long tagDictSize;
    192192
    193193  void SeekStart ();
    194   unsigned long TranslateNum (unsigned long num);
     194  mg_u_long TranslateNum (mg_u_long num);
    195195 
    196196public:
     
    198198  ~OccurToDictConverter ();
    199199
    200   void Open (char *filename, unsigned long _wordDictSize,
    201          unsigned long _tagDictSize);
     200  void Open (char *filename, mg_u_long _wordDictSize,
     201         mg_u_long _tagDictSize);
    202202
    203203  // Close frees all allocated memory
    204204  void Close ();
    205205
    206   unsigned long TranslateWord (unsigned long occurNum)
     206  mg_u_long TranslateWord (mg_u_long occurNum)
    207207    { return TranslateNum (occurNum); }
    208   unsigned long TranslateTag (unsigned long occurNum)
     208  mg_u_long TranslateTag (mg_u_long occurNum)
    209209    { return TranslateNum (occurNum+wordDictSize); }
    210210};
     
    214214  mg_ullong start;
    215215  mg_ullong here;
    216   unsigned long lastFragNum;
    217   unsigned long B;
     216  mg_u_long lastFragNum;
     217  mg_u_long B;
    218218
    219219  void Clear () {
     
    230230protected:
    231231  InvfStateRec recCache [ISR_SIZE];
    232   unsigned long startNum;
     232  mg_u_long startNum;
    233233
    234234  FILE *stateFile;
     
    248248  // previous references to state records may be
    249249  // invalidated calling GetRec
    250   InvfStateRec &GetRec (unsigned long num);
     250  InvfStateRec &GetRec (mg_u_long num);
    251251};
    252252
     
    258258static stdio_bitio_buffer chunkBuf;
    259259
    260 static unsigned long ivfMemBufSize = 0;
     260static mg_u_long ivfMemBufSize = 0;
    261261static char *ivfMemBuf = NULL;
    262262
     
    290290}
    291291
    292 void WordBitPtrs::SetSize (unsigned long _numWords,
    293                unsigned long _numTags){
     292void WordBitPtrs::SetSize (mg_u_long _numWords,
     293               mg_u_long _numTags){
    294294  Clear();
    295295  numWords = _numWords;
     
    302302void OccurToDictConverter::SeekStart () {
    303303  if (transFile == NULL) return;
    304   rbs.SEEK_X (sizeof (unsigned long) * 8);
     304  rbs.SEEK_X (sizeof (mg_u_long) * 8);
    305305  pos = 0;
    306306}
    307307
    308 unsigned long OccurToDictConverter::TranslateNum (unsigned long num) {
     308mg_u_long OccurToDictConverter::TranslateNum (mg_u_long num) {
    309309  if (num < pos) SeekStart ();
    310310  while (pos <= num) {
     
    330330}
    331331
    332 void OccurToDictConverter::Open (char *filename, unsigned long _wordDictSize,
    333                  unsigned long _tagDictSize) {
     332void OccurToDictConverter::Open (char *filename, mg_u_long _wordDictSize,
     333                 mg_u_long _tagDictSize) {
    334334  if (transFile != NULL) Close ();
    335335
     
    374374  // open the state file
    375375  char path[512];
    376   sprintf (path, FILE_NAME_FORMAT ".%ld", get_basepath (), filename,
    377            ".invf.state", (long) getpid ());
     376  sprintf (path, FILE_NAME_FORMAT ".%d", get_basepath (), filename,
     377           ".invf.state", (mg_s_long) getpid ());
    378378  if (!(stateFile = fopen (path, "wb+"))) {
    379379    Message ("Unable to create \"%s\"", path);
     
    393393}
    394394
    395 InvfStateRec &InvfStateCache::GetRec (unsigned long num) {
     395InvfStateRec &InvfStateCache::GetRec (mg_u_long num) {
    396396  // see if cached
    397397  if ((num >= startNum) && (num < startNum + ISR_SIZE))
     
    406406  startNum = num - (num % ISR_SIZE);
    407407  fseek (stateFile, startNum*sizeof (InvfStateRec), SEEK_SET);
    408   fread ((char *) recCache, sizeof (InvfStateRec), ISR_SIZE, stateFile);
     408  size_t numbytes = fread ((char *) recCache, sizeof (InvfStateRec), ISR_SIZE, stateFile);
     409  if (numbytes != ISR_SIZE){
     410#ifdef DEBUG
     411    fprintf(stderr, "[mgpp/text/ivf.pass2.cpp L410] number of bytes read by fread does not match the requested amount\n");
     412#endif
     413  }
    409414
    410415  return recCache[num-startNum];
     
    413418
    414419
    415 static void ClearCharBuf (char *buf, unsigned long size) {
     420static void ClearCharBuf (char *buf, mg_u_long size) {
    416421  char *end = buf + size;
    417422  while (buf != end) *buf++ = 0;
     
    436441  fseek (dictFile, _idh.tag_dict_start, SEEK_SET);
    437442 
    438   unsigned long tagNum;
     443  mg_u_long tagNum;
    439444  dict_el thisEl;
    440445  for (tagNum = 0; tagNum < _idh.tag_dict_size; ++tagNum) {
     
    456461void CheckIntOverflow (mg_ullong totalIBits, mg_ullong lastTotalIBits) {
    457462  if (totalIBits < lastTotalIBits) {
    458     fprintf(stderr, "ERROR: The totalIBits counter (%d byte unsigned integer) has overflowed.\n", sizeof (mg_ullong));
     463    fprintf(stderr, "ERROR: The totalIBits counter (%lu byte unsigned integer) has overflowed.\n", sizeof (mg_ullong));
    459464    if (sizeof (mg_ullong) < 8) {
    460465      fprintf(stderr, "       Try compiling with GCC to enable use of 8 bytes for this counter.\n");
     
    481486  word_dict_el wordEl;
    482487  wordEl.SetNumLevels (_idh.num_levels);
    483   unsigned long dictWordNum, p;
     488  mg_u_long dictWordNum, p;
    484489  mg_ullong lastTotalIBits;
    485   unsigned long N = _idh.num_frags;
     490  mg_u_long N = _idh.num_frags;
    486491  for (dictWordNum=0; dictWordNum<_idh.word_dict_size; ++dictWordNum) {
    487492    // lastTotalIBits is used to detect integer overflow
     
    521526  // add the tag entries
    522527  dict_el tagEl;
    523   unsigned long dictTagNum;
     528  mg_u_long dictTagNum;
    524529  N = _idh.num_frags;
    525530  for (dictTagNum=0; dictTagNum<_idh.tag_dict_size; ++dictTagNum) {
     
    556561/*
    557562// assumes the chunk tag information has been placed in .first
    558 static void PrintChunkInfo (unsigned long chunkMem,
    559                 unsigned long numChunkWords,
    560                 unsigned long numChunkTags) {
    561   static unsigned long chunksRead = 0;
     563static void PrintChunkInfo (mg_u_long chunkMem,
     564                mg_u_long numChunkWords,
     565                mg_u_long numChunkTags) {
     566  static mg_u_long chunksRead = 0;
    562567  ++chunksRead;
    563568  cout << "Chunk Number: " << chunksRead << "\n";
     
    571576  TagMapDict::iterator tagMapEnd = tagMapDict.end();
    572577  while (tagMapHere != tagMapEnd) {
    573     unsigned long tagMapNum = (*tagMapHere).second.tagNum;
     578    mg_u_long tagMapNum = (*tagMapHere).second.tagNum;
    574579    cout << (*tagMapHere).first << " " << tagMapNum << " "
    575580     << bitPtrs.GetTagBitPtr(tagMapNum).here << "\n";
     
    590595
    591596  numFragsInChunk = chunkBuf.gamma_decode (NULL) - 1;
    592   unsigned long chunkMem = chunkBuf.gamma_decode (NULL) - 1;
     597  mg_u_long chunkMem = chunkBuf.gamma_decode (NULL) - 1;
    593598
    594599  if (chunkMem > ivfMemBufSize)
    595600    FatalError (1, "Chunk memory size is greater than maximum");
    596601 
    597   unsigned long numChunkWords = chunkBuf.gamma_decode (NULL) - 1;
    598   unsigned long numChunkTags = chunkBuf.gamma_decode (NULL) - 1;
     602  mg_u_long numChunkWords = chunkBuf.gamma_decode (NULL) - 1;
     603  mg_u_long numChunkTags = chunkBuf.gamma_decode (NULL) - 1;
    599604
    600605 
     
    606611  // "chunkWordCount" in "start" and the "chunkFragCount"
    607612  // in "here"
    608   unsigned long numOccur;
    609   unsigned long wordNum;
     613  mg_u_long numOccur;
     614  mg_u_long wordNum;
    610615  for (numOccur=0; numOccur<numChunkWords; ++numOccur) {
    611616    wordNum = occurConvert.TranslateWord (numOccur);
     
    616621    else wordPtr.here = wordPtr.start;
    617622  }
    618   unsigned long tagNum;
     623  mg_u_long tagNum;
    619624  for (numOccur=0; numOccur<numChunkTags; ++numOccur) {
    620625    tagNum = occurConvert.TranslateTag (numOccur);
     
    628633 
    629634  // create the bit ptrs in dictionary order
    630   unsigned long totalIBits = 0; // only dealing with memory
    631   unsigned long chunkWordCount, chunkFragCount;
     635  mg_u_long totalIBits = 0; // only dealing with memory
     636  mg_u_long chunkWordCount, chunkFragCount;
    632637  for (wordNum=0; wordNum<_idh.word_dict_size; ++wordNum) {
    633638    BitPtr &wordPtr = bitPtrs.GetWordBitPtr (wordNum);
     
    656661    tagPtr.lgB = 0;
    657662    if (chunkFragCount > 0) {
    658       unsigned long pTag = chunkFragCount*2;
     663      mg_u_long pTag = chunkFragCount*2;
    659664      tagPtr.lgB = floorlog_2 (BIO_Bblock_Init_W (numFragsInChunk+pTag,
    660665                          pTag));
    661       unsigned long bLen = BIO_Bblock_Bound (numFragsInChunk+pTag,
     666      mg_u_long bLen = BIO_Bblock_Bound (numFragsInChunk+pTag,
    662667                         pTag);
    663668//        cout << tagNum + _idh.word_dict_size << " ";
     
    732737  FILE *invfFile = create_file (filename, INVF_SUFFIX, "wb",
    733738                MAGIC_INVF, MG_ABORT);
    734   totalIBits += sizeof (unsigned long) * 8; // magic number
     739  totalIBits += sizeof (mg_u_long) * 8; // magic number
    735740  totalIBits += 8 * 200;                    // 200 byte gap -- why??????
    736741  fclose (invfFile);
     
    748753    // add this tag to the inverted list
    749754  BitPtr &tagBitPtr = bitPtrs.GetTagBitPtr (tInfo.tagNum);
    750   unsigned long endFrag = numFrags;
     755  mg_u_long endFrag = numFrags;
    751756  int b = 1 << tagBitPtr.lgB;
    752757
     
    822827      if (wordLevelIndex) ++numFrags;
    823828
    824       unsigned long wordNum = perf_hash (wordHashDict, mgWord);
     829      mg_u_long wordNum = perf_hash (wordHashDict, mgWord);
    825830
    826831      /*
     
    832837      // add this word to the inverted list
    833838      BitPtr &wordBitPtr = bitPtrs.GetWordBitPtr (wordNum);
    834       unsigned long fragNum = numFrags;
     839      mg_u_long fragNum = numFrags;
    835840      int b = 1 << wordBitPtr.lgB;
    836841 
     
    881886
    882887  // write out the word information
    883   unsigned long wordNum;
     888  mg_u_long wordNum;
    884889  int b;
    885   unsigned long currFragNum;
    886   unsigned long delta;
    887   unsigned long currFreq;
     890  mg_u_long currFragNum;
     891  mg_u_long delta;
     892  mg_u_long currFreq;
    888893  for (wordNum=0; wordNum<idh.word_dict_size; ++wordNum) {
    889894    // go to the end of the last inverted file entry
     
    916921
    917922  // write out the tag information
    918   unsigned long tagNum;
    919   unsigned long currTagStart;
    920   unsigned long currTagEnd;
     923  mg_u_long tagNum;
     924  mg_u_long currTagStart;
     925  mg_u_long currTagEnd;
    921926  for (tagNum=0; tagNum<idh.tag_dict_size; ++tagNum) {
    922927    // go to the end of the last inverted file entry
     
    9981003
    9991004
    1000 static void CondenseInvfFile (char *filename, unsigned long &bytesOutput) {
     1005static void CondenseInvfFile (char *filename, mg_u_long &bytesOutput) {
    10011006  FILE *inInvfFile = open_file (filename, INVF_SUFFIX, "rb",
    10021007                MAGIC_INVF, MG_ABORT);
     
    10051010
    10061011  // skip the magic number
    1007   fseek (outInvfFile, sizeof (unsigned long), SEEK_SET);
     1012  fseek (outInvfFile, sizeof (mg_u_long), SEEK_SET);
    10081013 
    10091014  // write the inverted file header -- use defaults for most things
     
    10171022
    10181023  // process each meaningful byte in the file
    1019   unsigned long numEntries = ifh.no_of_words + ifh.no_of_tags;
    1020   unsigned long entryNum;
     1024  mg_u_long numEntries = ifh.no_of_words + ifh.no_of_tags;
     1025  mg_u_long entryNum;
    10211026  mg_ullong lastStart = 0;
    10221027  for (entryNum = 0; entryNum < numEntries; ++entryNum) {
     
    10281033    lastStart = stateRec.start;
    10291034   
    1030     unsigned long oldEntryStart = stateRec.start >> 3;
    1031     unsigned long oldEntryStartOver = stateRec.start & 7; // should be 0
    1032     unsigned long oldEntryEnd = (stateRec.here + 7) >> 3;  // byte after end
    1033     unsigned long oldEntryEndOver = stateRec.here & 7;
     1035    mg_u_long oldEntryStart = stateRec.start >> 3;
     1036    mg_u_long oldEntryStartOver = stateRec.start & 7; // should be 0
     1037    mg_u_long oldEntryEnd = (stateRec.here + 7) >> 3;  // byte after end
     1038    mg_u_long oldEntryEndOver = stateRec.here & 7;
    10341039
    10351040    fseek (inInvfFile, oldEntryStart, SEEK_SET);
     
    10571062    Message ("Could not truncate invf.");
    10581063#else
    1059   ftruncate (fileno (outInvfFile), bytesOutput);
     1064  if(ftruncate (fileno (outInvfFile), bytesOutput) != 0)
     1065    {
     1066      fprintf(stderr, "Could not truncate invf");
     1067    }
    10601068#endif
    10611069
     
    10631071}
    10641072
    1065 static void OutputInvfIdx (char *filename, unsigned long invfNumBytes) {
     1073static void OutputInvfIdx (char *filename, mg_u_long invfNumBytes) {
    10661074  FILE *invfIdxFile = create_file (filename, INVF_IDX_SUFFIX, "wb",
    10671075                   MAGIC_INVI, MG_ABORT);
    10681076
    10691077  // process each meaningful byte in the file
    1070   unsigned long numEntries = idh.word_dict_size + idh.tag_dict_size;
    1071   unsigned long entryNum;
     1078  mg_u_long numEntries = idh.word_dict_size + idh.tag_dict_size;
     1079  mg_u_long entryNum;
    10721080  for (entryNum = 0; entryNum < numEntries; ++entryNum) {
    10731081    InvfStateRec &stateRec = invfState.GetRec (entryNum);
     
    11011109  // condense the inverted file and truncate it
    11021110  // this function also writes out the inverted header
    1103   unsigned long invfNumBytes = 0;
     1111  mg_u_long invfNumBytes = 0;
    11041112  CondenseInvfFile (filename, invfNumBytes);
    11051113
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/locallib.cpp

    r16583 r25147  
    7575
    7676int
    77 huffcodebits (unsigned long *A, int n)
     77huffcodebits (mg_u_long *A, int n)
    7878{
    7979  int i, j, tot = 0, bits = 0, v1, v2, *B;
     
    111111
    112112int
    113 modelbits (unsigned long *A, int n)
     113modelbits (mg_u_long *A, int n)
    114114{
    115115  int i, bits = 0, last, N = 0;
     
    159159
    160160
    161 int Read_cdh (FILE * f, compression_dict_header * cdh, u_long * /*mem*/,
    162           u_long * disk) {
     161int Read_cdh (FILE * f, compression_dict_header * cdh, mg_u_long * /*mem*/,
     162          mg_u_long * disk) {
    163163  if (disk)
    164164    (*disk) += sizeof (*cdh);
     
    185185
    186186int
    187 Read_cfh (FILE * f, comp_frags_header * cfh, u_long * mem, u_long * disk)
     187Read_cfh (FILE * f, comp_frags_header * cfh, mg_u_long * mem, mg_u_long * disk)
    188188{
    189189  int i;  /* [RPAP - Jan 97: Endian Ordering] */
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/locallib.h

    r16583 r25147  
    3131int vecentropy (int *A, int n);
    3232
    33 int huffcodebits (unsigned long *A, int n);
     33int huffcodebits (mg_u_long *A, int n);
    3434
    35 int modelbits (unsigned long *A, int n);
     35int modelbits (mg_u_long *A, int n);
    3636
    3737int prime (int p);
    3838
    3939
    40 int Read_cdh (FILE * f, compression_dict_header * cdh, u_long * mem, u_long * disk);
     40int Read_cdh (FILE * f, compression_dict_header * cdh, mg_u_long * mem, mg_u_long * disk);
    4141
    42 int Read_cfh (FILE * f, comp_frags_header * cfh, u_long * mem, u_long * disk);
     42int Read_cfh (FILE * f, comp_frags_header * cfh, mg_u_long * mem, mg_u_long * disk);
    4343
    4444
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mg_errors.cpp

    r19822 r25147  
    3333char *mg_errorstrs[] =
    3434{
    35   "No error",
    36   "Out of memory",
    37   "File \"%s\" not found",
    38   "Bad magic number in \"%s\"",
    39   "Error reading \"%s\"",
    40   "MG_BUFTOOSMALL",
    41   "Files required for level 2 and 3 inversion are missing"};
     35  (char*)"No error",
     36  (char*)"Out of memory",
     37  (char*)"File \"%s\" not found",
     38  (char*)"Bad magic number in \"%s\"",
     39  (char*)"Error reading \"%s\"",
     40  (char*)"MG_BUFTOOSMALL",
     41  (char*)"Files required for level 2 and 3 inversion are missing"};
    4242
    4343
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mg_files.cpp

    r22291 r25147  
    125125FILE *
    126126open_named_file (const char *name, const char *mode,
    127          u_long magic_num, int err_mode)
    128 {
    129   unsigned long magic;
     127         mg_u_long magic_num, int err_mode)
     128{
     129  mg_u_long magic;
    130130  FILE *f = NULL;
    131131  char *err;
     
    134134  if (!f)
    135135    {
    136       err = "Unable to open \"%s\"";
     136      err = (char*)"Unable to open \"%s\"";
    137137      goto error;
    138138    }
     
    142142      if (fread (&magic, sizeof (magic), 1, f) != 1)
    143143    {
    144       err = "No magic number \"%s\"";
     144      err = (char*)"No magic number \"%s\"";
    145145      goto error;
    146146    }
     
    150150      if (!IS_MAGIC (magic))
    151151    {
    152       err = "No MG magic number \"%s\"";
     152      err = (char*)"No MG magic number \"%s\"";
    153153      goto error;
    154154    }
     
    156156      if (magic != magic_num)
    157157    {
    158       err = "Wrong MG magic number \"%s\"";
     158      err = (char*)"Wrong MG magic number \"%s\"";
    159159      goto error;
    160160    }
     
    187187FILE *
    188188open_file (const char *name, const char *suffix, const char *mode,
    189        u_long magic_num, int err_mode)
     189       mg_u_long magic_num, int err_mode)
    190190{
    191191  char path[512];
     
    215215FILE *
    216216create_named_file (const char *name, const char *mode,
    217            u_long magic_num, int err_mode)
     217           mg_u_long magic_num, int err_mode)
    218218{
    219219  FILE *f = NULL;
     
    223223  if (!f)
    224224    {
    225       err = "Unable to open \"%s\"";
     225      err = (char*)"Unable to open \"%s\"";
    226226      goto error;
    227227    }
     
    231231    if (fwrite (&magic_num, sizeof (magic_num), 1, f) != 1)
    232232      {
    233     err = "Couldn't write magic number \"%s\"";
     233    err = (char*)"Couldn't write magic number \"%s\"";
    234234    goto error;
    235235      }
     
    267267FILE *
    268268create_file (const char *name, const char *suffix, const char *mode,
    269          u_long magic_num, int err_mode)
     269         mg_u_long magic_num, int err_mode)
    270270{
    271271  char path[512];
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mg_files.h

    r16583 r25147  
    2727/* Magic numbers for the different types of files */
    2828
    29 #define GEN_MAGIC(a,b,c,d) ((unsigned long)(((a)<<24) + ((b)<<16) + \
     29#define GEN_MAGIC(a,b,c,d) ((mg_u_long)(((a)<<24) + ((b)<<16) + \
    3030                        ((c)<<8) + (d)))
    3131
     
    5151#define MAGIC_PARAGRAPH     GEN_MAGIC('M','G','P', 0 )
    5252#define MAGIC_STEM_GEN(x)   GEN_MAGIC('M', 'G', 's', x)
    53 #define IS_MAGIC(a) ((((u_long)(a)) & 0xffff0000) == MAGIC_XXXX)
     53#define IS_MAGIC(a) ((((mg_u_long)(a)) & 0xffff0000) == MAGIC_XXXX)
    5454
    5555
     
    268268   an error message.   */
    269269FILE *open_named_file (const char *name, const char *mode,
    270                u_long magic_num, int err_mode);
     270               mg_u_long magic_num, int err_mode);
    271271
    272272
     
    286286   an error message.   */
    287287FILE *open_file (const char *name, const char *suffix, const char *mode,
    288          u_long magic_num, int err_mode);
     288         mg_u_long magic_num, int err_mode);
    289289
    290290
     
    305305   an error message.   */
    306306FILE *create_named_file (const char *name, const char *mode,
    307              u_long magic_num, int err_mode);
     307             mg_u_long magic_num, int err_mode);
    308308
    309309
     
    322322   an error message.   */
    323323FILE *create_file (const char *name, const char *suffix, const char *mode,
    324            u_long magic_num, int err_mode);
    325 
    326 
    327 
    328 
    329 #endif
     324           mg_u_long magic_num, int err_mode);
     325
     326
     327
     328
     329#endif
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_compression_dict.cpp

    r19822 r25147  
    5353#include "WordData.h"
    5454
    55 #define MAXBITS (sizeof(unsigned long) * 8)
     55#define MAXBITS (sizeof(mg_u_long) * 8)
    5656
    5757#define is_power_of_two(a) ((a) != 0 && (((a) & ((a)-1)) == 0))
     
    6363    float saving;
    6464    float char_bit_cost;
    65     u_long num_trans;
     65    mg_u_long num_trans;
    6666    u_char *word;
    6767  }
     
    6969
    7070static DictWordData *Words[2];
    71 static u_long Num[2];
    72 static u_long chars[2];
     71static mg_u_long Num[2];
     72static mg_u_long chars[2];
    7373
    7474#define KIND(p) (((p) >= Words[0] && (p) < Words[0] + Num[0]) ? 0 : 1)
     
    8080  {
    8181    DictWordData **wd;
    82     u_long num_wds;
    83     u_long chars;
     82    mg_u_long num_wds;
     83    mg_u_long chars;
    8484  }
    8585DictData;
     
    9090static compression_stats_header csh;
    9191
    92 static char *file_name = "";
    93 static u_long novel_method = MG_NOVEL_HUFFMAN_CHARS;
     92static char *file_name = (char*)"";
     93static mg_u_long novel_method = MG_NOVEL_HUFFMAN_CHARS;
    9494
    9595
     
    9898static void Method3 (int k);
    9999static void Select_all (void);
    100 static u_long WriteOutWords (char *, u_long, int);
     100static mg_u_long WriteOutWords (char *, mg_u_long, int);
    101101static int DecFreqIncWL (void *a, void *b);
    102102static int OccuranceOrder (void *a, void *b);
     
    111111  int lookback = 2;
    112112  double k = 0;
    113   u_long mem_reqd;
     113  mg_u_long mem_reqd;
    114114  opterr = 0;
    115115  msg_prefix = argv[0];
     
    224224{
    225225  FILE *f;
    226   unsigned long i;
     226  mg_u_long i;
    227227  f = open_file (filename, TEXT_STATS_DICT_SUFFIX, "rb",
    228228         MAGIC_STATS_DICT, MG_ABORT);  /* [RPAP - Feb 97: WIN32 Port] */
     
    429429CalcCharCounts (DictWordData ** wd, int num,
    430430        char *char_lens[2], char *len_lens[2],
    431         u_long escape[2])
    432 {
    433   long char_freqs[2][256];
    434   long len_freqs[2][16];
     431        mg_u_long escape[2])
     432{
     433  mg_s_long char_freqs[2][256];
     434  mg_s_long len_freqs[2][16];
    435435  huff_data hd;
    436436  int i;
     
    441441  for (i = 0; i < num; ++i, ++wd)
    442442    {
    443       u_long freq = (*wd)->documents();
     443      mg_u_long freq = (*wd)->documents();
    444444      u_char *buf = (*wd)->word;
    445445      int len = *buf++;
     
    448448      escape[idx] += freq;
    449449      for (; len; --len, ++buf)
    450     char_freqs[idx][(u_long) (*buf)] += freq;
     450    char_freqs[idx][(mg_u_long) (*buf)] += freq;
    451451    }
    452452  Generate_Huffman_Data (256, char_freqs[0], &hd, NULL);
     
    466466
    467467inline void CalcBitCostForWordData(DictWordData **word, int num,
    468                    double freqs_trans[2], u_long escape[2],
     468                   double freqs_trans[2], mg_u_long escape[2],
    469469                   char * char_lens[2], char *len_lens[2],
    470470                   double esc[2], int num_trans)
     
    477477      u_char *buf = (*word)->word;
    478478      int     len = *buf++;
    479       u_long  freq = (*word)->documents();
     479      mg_u_long  freq = (*word)->documents();
    480480      int     idx = KIND (*word);
    481481
    482482      cbc = len_lens[idx][len];
    483483      for (; len; --len, ++buf)
    484     cbc += char_lens[idx][(u_long) (*buf)];
     484    cbc += char_lens[idx][(mg_u_long) (*buf)];
    485485
    486486      (*word)->char_bit_cost = (cbc + esc[idx]) * freq;
     
    500500CalcBitCost (DictWordData ** discard_word, int discard_num,
    501501         DictWordData ** keep_word, int keep_num, double freqs_trans[2],
    502          u_long escape[2], int num_trans)
     502         mg_u_long escape[2], int num_trans)
    503503{
    504504  char *char_lens[2];
     
    544544
    545545inline void m3_storeWord(DictWordData **wordHeap, int wordNum, int num_trans,
    546              double freqs_trans[], u_long escape[], heap_comp hc)
     546             double freqs_trans[], mg_u_long escape[], heap_comp hc)
    547547{
    548548  DictWordData *word = wordHeap[0];
     
    573573  int recalcs = 0;
    574574  double freqs_trans[2], total;
    575   u_long escape[2];
     575  mg_u_long escape[2];
    576576  DictWordData **keep_heap, **discard_heap;
    577577
     
    769769
    770770
    771 static u_long
     771static mg_u_long
    772772Write_data (FILE * f, DictData * dd, int lookback)
    773773{
    774   u_long mem_reqd;
     774  mg_u_long mem_reqd;
    775775  huff_data *hd;
    776776  int i;
    777   u_long us = dd->num_wds;
    778   long *freqs;
    779   u_long huff_words_size[MAX_HUFFCODE_LEN + 1];
    780   u_long lencounts[MAX_HUFFCODE_LEN + 1];
     777  mg_u_long us = dd->num_wds;
     778  mg_s_long *freqs;
     779  mg_u_long huff_words_size[MAX_HUFFCODE_LEN + 1];
     780  mg_u_long lencounts[MAX_HUFFCODE_LEN + 1];
    781781  u_char *lastword[MAX_HUFFCODE_LEN + 1];
    782782
    783   if (!(freqs = new long [dd->num_wds]))
     783  if (!(freqs = new mg_s_long [dd->num_wds]))
    784784    FatalError (1, "Unable to allocate memory for freqs");
    785785
     
    871871{
    872872  unsigned int j;
    873   long freqs[256];
     873  mg_s_long freqs[256];
    874874  DictWordData **wd = dd->wd;
    875875  huff_data *hd;
     
    882882      int len = *buf++;
    883883      for (; len; --len, ++buf)
    884     freqs[(u_long) (*buf)] += (*wd)->documents();
     884    freqs[(mg_u_long) (*buf)] += (*wd)->documents();
    885885    }
    886886
     
    907907{
    908908  unsigned int j;
    909   long freqs[16];
     909  mg_s_long freqs[16];
    910910  DictWordData **wd = dd->wd;
    911911  huff_data *hd;
     
    934934
    935935
    936 static u_long
    937 WriteOutWords (char *file_name, u_long type, int lookback)
     936static mg_u_long
     937WriteOutWords (char *file_name, mg_u_long type, int lookback)
    938938{
    939939  FILE *f;
    940940  int i;
    941   u_long mem_reqd = 0;
     941  mg_u_long mem_reqd = 0;
    942942
    943943  compression_dict_header cdh;
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_decompress_text.cpp

    r19822 r25147  
    3939int main (int argc, char **argv) {
    4040  int ch;
    41   char *filename = "";
    42   char *basePath = "";
     41  char *filename = (char*)"";
     42  char *basePath = (char*)"";
    4343  UCArray level;
    4444  SetCStr (level, "Document", 8);
     
    7878 
    7979  TextLevelInfo levelInfo = td.levels.levelInfo[level];
    80   unsigned long docNum = 1;
     80  mg_u_long docNum = 1;
    8181  UCArray docText;
    8282  while (docNum <= levelInfo.numEntries) {
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_fast_comp_dict.cpp

    r19822 r25147  
    6767
    6868
    69 static u_long mem_for_comp_dict (char *filename);
     69static mg_u_long mem_for_comp_dict (char *filename);
    7070static void load_comp_dict (char *filename);
    7171static void save_fast_dict (char *filename);
     
    7676static void *cur;
    7777static u_char *fixup;
    78 static u_long mem, fixup_mem;
     78static mg_u_long mem, fixup_mem;
    7979
    8080int main (int argc, char **argv)
    8181{
    8282  int ch;
    83   char *filename = "";
     83  char *filename = (char*)"";
    8484  opterr = 0;
    8585  msg_prefix = argv[0];
     
    120120#endif
    121121
    122   if ((u_long) cur > (u_long) buffer + mem)
     122  if ((uintptr_t) cur > (uintptr_t) buffer + mem)
    123123    FatalError (1, "The buffer was not big enough for the dictionary");
    124124
     
    186186unfixup_buffer ()
    187187{
    188   u_long *p;
    189   for (p = (u_long *) buffer; (u_long) p < (u_long) cur; ++p)
     188  uintptr_t *p;
     189  for (p = (uintptr_t *) buffer; (uintptr_t) p < (uintptr_t) cur; ++p)
    190190    {
    191191      if (IS_FIXUP (p))
    192     *p = *p - (u_long) buffer;
    193     }
    194 }
    195 
    196 
    197 
    198 
    199 static u_long
     192    *p = *p - (uintptr_t) buffer;
     193    }
     194}
     195
     196
     197
     198
     199static mg_u_long
    200200mem_for_aux_dict (compression_dict_header * /*cdh*/, char *filename)
    201201{
    202202  int i;
    203   u_long mem = sizeof (auxiliary_dict);
     203  mg_u_long mem = sizeof (auxiliary_dict);
    204204  FILE *aux;
    205205
     
    224224
    225225
    226 static u_long
     226static mg_u_long
    227227mem_for_words (FILE * dict, compression_dict_header * cdh,
    228228           comp_frags_header * cfh)
    229229{
    230   u_long mem = 0;
    231   long i, lookback;
     230  mg_u_long mem = 0;
     231  mg_s_long i, lookback;
    232232  int ptrs_reqd = 0;
    233233  int mem_reqd = 0;
     
    254254}
    255255
    256 static u_long mem_skip_hd(FILE *dict, u_long mem)
     256static mg_u_long mem_skip_hd(FILE *dict, mg_u_long mem)
    257257{ huff_data hd;
    258258
     
    261261  if (hd.clens)
    262262    delete []hd.clens;
    263   mem += hd.num_codes * sizeof (unsigned long);
    264   mem += (MAX_HUFFCODE_LEN + 1) * sizeof (unsigned long *);
     263  mem += hd.num_codes * sizeof (mg_u_long);
     264  mem += (MAX_HUFFCODE_LEN + 1) * sizeof (mg_u_long *);
    265265  return mem;
    266266}
    267267
    268 static u_long mem_read_cfh(FILE *dict, compression_dict_header *cdh, comp_frags_header *cfh,
    269                u_long mem)
     268static mg_u_long mem_read_cfh(FILE *dict, compression_dict_header *cdh, comp_frags_header *cfh,
     269               mg_u_long mem)
    270270{
    271271  mem += sizeof (comp_frags_header);
     
    282282
    283283
    284 static u_long
     284static mg_u_long
    285285mem_for_comp_dict (char *filename)
    286286{
    287   u_long mem = sizeof (compression_dict);
     287  mg_u_long mem = sizeof (compression_dict);
    288288  compression_dict_header cdh;
    289289  comp_frags_header cfh;
     
    360360
    361361void *
    362 getmem (u_long size, int align)
     362getmem (mg_u_long size, int align)
    363363{
    364364  void *res;
    365   cur = (void *) (((u_long) cur + (align - 1)) & (~(align - 1)));
     365  cur = (void *) (((uintptr_t) cur + (align - 1)) & (~(align - 1)));
    366366  res = cur;
    367367  cur = (char *) cur + size;
    368   if ((u_long) cur > (u_long)buffer + mem)
     368  if ((uintptr_t) cur > (uintptr_t)buffer + mem)
    369369    FatalError (1, "The buffer was not big enough for the dictionary");
    370370  return res;
     
    538538
    539539
    540 static unsigned long **
    541 Generate_Fast_Huffman_Vals (huff_data * data, u_long * mem)
     540static mg_u_long **
     541Generate_Fast_Huffman_Vals (huff_data * data, mg_u_long * mem)
    542542{
    543543  int i;
    544   unsigned long *fcode[MAX_HUFFCODE_LEN + 1];
    545   unsigned long **values;
    546   unsigned long *vals;
     544  mg_u_long *fcode[MAX_HUFFCODE_LEN + 1];
     545  mg_u_long **values;
     546  mg_u_long *vals;
    547547
    548548  if (!data)
    549549    return (NULL);
    550   vals = (unsigned long *) getmem (data->num_codes * sizeof (*vals), sizeof (long *));
    551   values = (unsigned long **) getmem ((MAX_HUFFCODE_LEN + 1) * sizeof (unsigned long *),
    552            sizeof (long *));
    553 
    554   memset (values, '\0', (MAX_HUFFCODE_LEN + 1) * sizeof (unsigned long *));
     550  vals = (mg_u_long *) getmem (data->num_codes * sizeof (*vals), sizeof (mg_s_long *));
     551  values = (mg_u_long **) getmem ((MAX_HUFFCODE_LEN + 1) * sizeof (mg_u_long *),
     552           sizeof (mg_s_long *));
     553
     554  memset (values, '\0', (MAX_HUFFCODE_LEN + 1) * sizeof (mg_u_long *));
    555555
    556556  if (mem)
    557557    *mem += data->num_codes * sizeof (*vals) +
    558       (MAX_HUFFCODE_LEN + 1) * sizeof (unsigned long *);
     558      (MAX_HUFFCODE_LEN + 1) * sizeof (mg_u_long *);
    559559
    560560  fcode[0] = values[0] = &vals[0];
     
    576576{
    577577  huff_data *hd;
    578   u_long   **vals;
     578  mg_u_long   **vals;
    579579
    580580  hd = (huff_data *) getmem (sizeof (huff_data), sizeof (char *));
     
    683683
    684684  {
    685     u_long *p;
    686     for (p = (u_long *) buffer; (u_long) p < (u_long) cur; ++p)
     685    uintptr_t *p;
     686    for (p = (uintptr_t *) buffer; (uintptr_t) p < (uintptr_t) cur; ++p)
    687687      {
    688688    if (IS_FIXUP (p))
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_invf_dict.cpp

    r19822 r25147  
    4141#include "invf.h"
    4242
    43 static void process_files (char *filename, unsigned long entriesPerBlock) {
     43static void process_files (char *filename, mg_u_long entriesPerBlock) {
    4444  // open the dictionary
    4545  FILE *dictFile = open_file (filename, INVF_DICT_SUFFIX, "rb",
     
    8383 
    8484 
    85   unsigned long wordNum;
    86   unsigned long wordInvfPtr;
     85  mg_u_long wordNum;
     86  mg_u_long wordInvfPtr;
    8787  UCArray lastEl;
    8888  word_dict_el wordEl;
     
    102102      // see if this block is the longest so far
    103103      if (wordIdx.size() > 0) {
    104     unsigned long blockLen = elIdx.block_ptr -
     104    mg_u_long blockLen = elIdx.block_ptr -
    105105      (*(wordIdx.end()-1)).block_ptr;
    106106    if (blockLen > bdh.max_wblk_size) bdh.max_wblk_size = blockLen;
     
    116116    wordBlockEl.freq = wordEl.freq;
    117117    wordBlockEl.invf_ptr = wordInvfPtr;
    118     unsigned long tempI;
     118    mg_u_long tempI;
    119119    for (tempI=0; tempI<idh.num_levels; ++tempI)
    120120      wordBlockEl.levelFreqs[tempI] = wordEl.levelFreqs[tempI];
     
    138138  block_dict_el tagBlockEl;
    139139 
    140   unsigned long tagNum;
    141   unsigned long tagInvfPtr;
     140  mg_u_long tagNum;
     141  mg_u_long tagInvfPtr;
    142142  dict_el tagEl;
    143143  lastEl.erase (lastEl.begin(), lastEl.end());
     
    156156      // see if this block is the longest so far
    157157      if (tagIdx.size() > 0) {
    158     unsigned long blockLen = elIdx.block_ptr -
     158    mg_u_long blockLen = elIdx.block_ptr -
    159159      (*(tagIdx.end()-1)).block_ptr;
    160160    if (blockLen > bdh.max_tblk_size) bdh.max_tblk_size = blockLen;
     
    188188
    189189  // write out the blocked dictionary header
    190   fseek (blockDictFile, sizeof(unsigned long), SEEK_SET);
     190  fseek (blockDictFile, sizeof(mg_u_long), SEEK_SET);
    191191  bdh.Write (blockDictFile);
    192192
     
    208208
    209209int main (int argc, char **argv) {
    210   unsigned long entriesPerBlock = 16;
    211   char *filename = "";
     210  mg_u_long entriesPerBlock = 16;
     211  char *filename = (char*)"";
    212212  int ch;
    213213  msg_prefix = argv[0];
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_invf_dict_dump.cpp

    r19822 r25147  
    7272    fseek (dictFile, idh.word_dict_start, SEEK_SET);
    7373   
    74     unsigned long wordNum;
     74    mg_u_long wordNum;
    7575    word_dict_el wordEl;
    7676    wordEl.SetNumLevels (idh.num_levels);
     
    8787    fseek (dictFile, idh.tag_dict_start, SEEK_SET);
    8888   
    89     unsigned long tagNum;
     89    mg_u_long tagNum;
    9090    dict_el tagEl;
    9191    for (tagNum=0; tagNum<idh.tag_dict_size; ++tagNum) {
     
    103103
    104104int main (int argc, char **argv) {
    105   char *filename = "";
     105  char *filename = (char*)"";
    106106  int ch;
    107107  msg_prefix = argv[0];
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_invf_dump.cpp

    r19822 r25147  
    5252               invf_file_header &ifh,
    5353               word_dict_el &wordEl,
    54                unsigned long wordStart,
     54               mg_u_long wordStart,
    5555               bool printFrags) {
    5656  cout << wordEl.frag_occur << " \"" << wordEl.el << "\"\n";
     
    6262    stdio_bitio_buffer buffer(invfFile);
    6363   
    64     unsigned long B = BIO_Bblock_Init (idh.num_frags, wordEl.frag_occur);
    65     unsigned long fragNum = 0;
    66     unsigned long i;
     64    mg_u_long B = BIO_Bblock_Init (idh.num_frags, wordEl.frag_occur);
     65    mg_u_long fragNum = 0;
     66    mg_u_long i;
    6767    for (i=0; i<wordEl.frag_occur; ++i) {
    68       unsigned long delta = buffer.bblock_decode (B, NULL);
     68      mg_u_long delta = buffer.bblock_decode (B, NULL);
    6969      fragNum += delta;
    7070      cout << " " << fragNum;
    7171     
    7272      if (!ifh.word_level_index ) {
    73     unsigned long count = buffer.gamma_decode (NULL);
     73    mg_u_long count = buffer.gamma_decode (NULL);
    7474    cout << "(" << count << ")";
    7575      } else {
     
    8888              invf_file_header &/*ifh*/,
    8989              dict_el &tagEl,
    90               unsigned long tagStart,
     90              mg_u_long tagStart,
    9191              bool printFrags) {
    9292  cout << tagEl.frag_occur << " \"<" << tagEl.el << ">\"\n";
     
    9898    stdio_bitio_buffer buffer(invfFile);
    9999   
    100     unsigned long pTag = tagEl.frag_occur*2;
    101     unsigned long B = BIO_Bblock_Init (idh.num_frags+pTag, pTag);
    102     unsigned long fragNum = 0;
    103     unsigned long i;
     100    mg_u_long pTag = tagEl.frag_occur*2;
     101    mg_u_long B = BIO_Bblock_Init (idh.num_frags+pTag, pTag);
     102    mg_u_long fragNum = 0;
     103    mg_u_long i;
    104104    for (i=0; i<tagEl.frag_occur; ++i) {
    105       unsigned long delta = buffer.bblock_decode (B, NULL)-1;
     105      mg_u_long delta = buffer.bblock_decode (B, NULL)-1;
    106106      fragNum += delta;
    107107      cout << " " << fragNum;
     
    169169  // process all the words
    170170  if (printWords) {
    171     unsigned long wordNum;
    172     unsigned long wordStart;
     171    mg_u_long wordNum;
     172    mg_u_long wordStart;
    173173    word_dict_el wordEl;
    174174    wordEl.SetNumLevels (idh.num_levels);
     
    182182  // process all the tags
    183183  if (printTags) {
    184     unsigned long tagNum;
    185     unsigned long tagStart;
     184    mg_u_long tagNum;
     185    mg_u_long tagStart;
    186186    dict_el tagEl;
    187187    for (tagNum=0; tagNum<idh.tag_dict_size; ++tagNum) {
     
    199199
    200200int main (int argc, char **argv) {
    201   char *dir_name, *filename = "";
     201  char *dir_name, *filename = (char*)"";
    202202  int ch;
    203203  msg_prefix = argv[0];
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_passes.cpp

    r19822 r25147  
    7474
    7575
    76 unsigned long invf_buffer_size = 5 * 1024 * 1024;   /* 5Mb */
     76mg_u_long invf_buffer_size = 5 * 1024 * 1024;   /* 5Mb */
    7777
    7878static char Passes = 0;
     
    9090
    9191static pass_data PassData[MAX_PASSES] = {
    92   {"special", init_special, process_special, done_special},
    93   {"text.pass1", init_text_1, process_text_1, done_text_1},
    94   {"text.pass2", init_text_2, process_text_2, done_text_2},
    95   {"ivf.pass1", init_ivf_1, process_ivf_1, done_ivf_1},
    96   {"ivf.pass2", init_ivf_2, process_ivf_2, done_ivf_2},
     92  {(char*)"special", init_special, process_special, done_special},
     93  {(char*)"text.pass1", init_text_1, process_text_1, done_text_1},
     94  {(char*)"text.pass2", init_text_2, process_text_2, done_text_2},
     95  {(char*)"ivf.pass1", init_ivf_1, process_ivf_1, done_ivf_1},
     96  {(char*)"ivf.pass2", init_ivf_2, process_ivf_2, done_ivf_2},
    9797};
    9898
    99 static char *usage_str = "\nUSAGE:\n"
     99static char *usage_str = (char*)"\nUSAGE:\n"
    100100"  %s [-J doc-tag] [-K level-tag] [-L index-level]\n"
    101101"  %*s [-m invf-memory] [-T1] [-T2] [-I1] [-I2] [-S]\n"
     
    131131  int pass;
    132132
    133   unsigned long numBytes = 0;
    134   unsigned long numDocs = 0;
     133  mg_u_long numBytes = 0;
     134  mg_u_long numDocs = 0;
    135135
    136136  // initialise all the passes
     
    146146  FileBuf buf;
    147147  TextElArray doc;
    148   unsigned long docLen = 0;
     148  mg_u_long docLen = 0;
    149149
    150150  // read and process each file (start with an open file)
     
    222222    Passes |= IVF_PASS_2;
    223223      else
    224     Usage ("Invalid pass number");
     224    Usage ((char*)"Invalid pass number");
    225225      break;
    226226    case 'T':
     
    230230    Passes |= TEXT_PASS_2;
    231231      else
    232     Usage ("Invalid pass number");
     232    Usage ((char*)"Invalid pass number");
    233233      break;
    234234    case 'S':
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_passes_4jni.cpp

    r19822 r25147  
    7676
    7777
    78 unsigned long invf_buffer_size = 5 * 1024 * 1024;   /* 5Mb */
     78mg_u_long invf_buffer_size = 5 * 1024 * 1024;   /* 5Mb */
    7979
    8080static char Passes = 0;
     
    8585char *filename = NULL;
    8686
    87 unsigned long numBytes = 0;
    88 unsigned long numDocs = 0;
     87mg_u_long numBytes = 0;
     88mg_u_long numDocs = 0;
    8989int mgpp_passes_exit_value = 0;
    9090
     
    9898
    9999static pass_data PassData[MAX_PASSES] = {
    100   {"special", init_special, process_special, done_special},
    101   {"text.pass1", init_text_1, process_text_1, done_text_1},
    102   {"text.pass2", init_text_2, process_text_2, done_text_2},
    103   {"ivf.pass1", init_ivf_1, process_ivf_1, done_ivf_1},
    104   {"ivf.pass2", init_ivf_2, process_ivf_2, done_ivf_2},
     100  {(char*)"special", init_special, process_special, done_special},
     101  {(char*)"text.pass1", init_text_1, process_text_1, done_text_1},
     102  {(char*)"text.pass2", init_text_2, process_text_2, done_text_2},
     103  {(char*)"ivf.pass1", init_ivf_1, process_ivf_1, done_ivf_1},
     104  {(char*)"ivf.pass2", init_ivf_2, process_ivf_2, done_ivf_2},
    105105};
    106106
     
    223223 
    224224  TextElArray doc;
    225   unsigned long doc_len =  0;
     225  mg_u_long doc_len =  0;
    226226
    227227  while(ReadDoc(&buffer, tagInfo.docTag, doc, doc_len, false)) {
     
    266266  int pass;
    267267
    268   unsigned long numBytes = 0;
    269   unsigned long numDocs = 0;
     268  mg_u_long numBytes = 0;
     269  mg_u_long numDocs = 0;
    270270
    271271  // initialise all the passes
     
    281281  FileBuf buf;
    282282  TextElArray doc;
    283   unsigned long docLen = 0;
     283  mg_u_long docLen = 0;
    284284
    285285  // read and process each file (start with an open file)
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_perf_hash_build.cpp

    r19822 r25147  
    5353static void ProcessFiles (char *filename, int r) {
    5454  FILE *dictFile, *hashFile;
    55   unsigned long i;
     55  mg_u_long i;
    5656  invf_dict_header idh;
    5757  perf_hash_data *phd;
    5858  u_char *pool;
    59   unsigned long pool_left;
     59  mg_u_long pool_left;
    6060  u_char **starts;
    6161
     
    8686
    8787    // push string onto pool data
    88     register unsigned long l;
     88    register mg_u_long l;
    8989    l = wordEl.el.size() + 1;
    9090    if (pool_left < l) {
     
    119119int main (int argc, char **argv) {
    120120  int r = -1;
    121   char *filename = "";
     121  char *filename = (char*)"";
    122122  int ch;
    123123  msg_prefix = argv[0];
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_stem_idx.cpp

    r19822 r25147  
    5050#endif
    5151
    52 typedef vector<unsigned long> WordNumList;
     52typedef vector<mg_u_long> WordNumList;
    5353typedef map<UCArray, WordNumList, DictLTUCArray> StemMapDict;
    5454
     
    6767  fseek (dictFile, idh.word_dict_start, SEEK_SET);
    6868
    69   unsigned long wordNum;
     69  mg_u_long wordNum;
    7070  u_char mgWord[MAXSTEMLEN + 1];
    7171  word_dict_el wordEl;
     
    101101            int stemMethod,
    102102            int stemmerNum,
    103             unsigned long entriesPerBlock) {
     103            mg_u_long entriesPerBlock) {
    104104 
    105105  /* [JFG - Mar 06: Accent folding patch] */
     
    130130
    131131  block_idx stemIdx;
    132   unsigned long stemNum = 0;
     132  mg_u_long stemNum = 0;
    133133  stem_block_dict_el stemEl;
    134134  UCArray lastEl;
     
    146146      // see if this block is the longest so far
    147147      if (stemIdx.size() > 0) {
    148     unsigned long blockLen = elIdx.block_ptr -
     148    mg_u_long blockLen = elIdx.block_ptr -
    149149      (*(stemIdx.end()-1)).block_ptr;
    150150    if (blockLen > sih.max_block_size) sih.max_block_size = blockLen;
     
    172172 
    173173  // write out the stem dictionary header
    174   fseek (stemDictFile, sizeof(unsigned long), SEEK_SET);
     174  fseek (stemDictFile, sizeof(mg_u_long), SEEK_SET);
    175175  sih.Write (stemDictFile);
    176176
     
    189189
    190190int main (int argc, char **argv) {
    191   unsigned long entriesPerBlock = 16;
    192   char *filename = "";
     191  mg_u_long entriesPerBlock = 16;
     192  char *filename = (char*)"";
    193193  int ch;
    194194  int stemMethod = 0; // illegal value (no translation)
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/mgpp_weights_build.cpp

    r19822 r25147  
    5252#endif
    5353
    54 #define MAXBITS (sizeof(unsigned long) * 8)
     54#define MAXBITS (sizeof(mg_u_long) * 8)
    5555
    5656struct WBTagPtr {
    57   unsigned long tagNum;
    58   unsigned long tagPtr;
    59   unsigned long fragOccur;
     57  mg_u_long tagNum;
     58  mg_u_long tagPtr;
     59  mg_u_long fragOccur;
    6060 
    6161  WBTagPtr () {
     
    8080  // seek to the start of the tag information
    8181  fseek (dictFile, idh.tag_dict_start, SEEK_SET);
    82   fseek (invfIdxFile, sizeof(unsigned long) +
    83      idh.word_dict_size*sizeof(unsigned long), SEEK_SET);
    84  
    85   unsigned long tagNum;
    86   unsigned long tagPtr;
     82  fseek (invfIdxFile, sizeof(mg_u_long) +
     83     idh.word_dict_size*sizeof(mg_u_long), SEEK_SET);
     84 
     85  mg_u_long tagNum;
     86  mg_u_long tagPtr;
    8787  dict_el thisEl;
    8888  for (tagNum = 0; tagNum < idh.tag_dict_size; ++tagNum) {
     
    9696
    9797static void AddWeight (Weights &w,
    98                unsigned long levelDocNum,
    99                unsigned long termFreq,
     98               mg_u_long levelDocNum,
     99               mg_u_long termFreq,
    100100               float idf) {
    101101  double weight = termFreq * idf;
     
    105105static void GenerateLevelWeights (const invf_dict_header &idh,
    106106                  const invf_file_header &ifh,
    107                   unsigned long numLevelDocs,
    108                   unsigned long levelNum,
     107                  mg_u_long numLevelDocs,
     108                  mg_u_long levelNum,
    109109                  FILE *dictFile,
    110110                  FILE *invfFile,
     
    120120  // reset the files
    121121  fseek (dictFile, idh.word_dict_start, SEEK_SET);
    122   fseek (invfIdxFile, sizeof (unsigned long), SEEK_SET);
     122  fseek (invfIdxFile, sizeof (mg_u_long), SEEK_SET);
    123123 
    124124  // process each word adding its contributions to the document weights
    125   unsigned long wordNum;
    126   unsigned long wordStart;
     125  mg_u_long wordNum;
     126  mg_u_long wordStart;
    127127  word_dict_el wordEl;
    128128  wordEl.SetNumLevels (idh.num_levels);
     
    142142    stdio_bitio_buffer buffer (invfFile);
    143143   
    144     unsigned long B = BIO_Bblock_Init (idh.num_frags, wordEl.frag_occur);
    145     unsigned long fragNum = 0;
    146     unsigned long levelDocNum = 0;
    147     unsigned long lastLevelDocNum = 0;
    148     unsigned long termFreq = 0;
    149     unsigned long checkLevelFreq = 0;
    150    
    151     unsigned long count, i;
     144    mg_u_long B = BIO_Bblock_Init (idh.num_frags, wordEl.frag_occur);
     145    mg_u_long fragNum = 0;
     146    mg_u_long levelDocNum = 0;
     147    mg_u_long lastLevelDocNum = 0;
     148    mg_u_long termFreq = 0;
     149    mg_u_long checkLevelFreq = 0;
     150   
     151    mg_u_long count, i;
    152152    for (i=0; i<wordEl.frag_occur; ++i) {
    153153      fragNum += buffer.bblock_decode (B, NULL);
     
    201201
    202202static void WriteExactWeights (FILE *weightsFile,
    203                    unsigned long &diskPtr,
     203                   mg_u_long &diskPtr,
    204204                   const Weights &w) {
    205205  diskPtr = ftell(weightsFile);
     
    215215
    216216static void WriteApproxWeights (FILE *approxWeightsFile,
    217                 unsigned long &diskPtr,
     217                mg_u_long &diskPtr,
    218218                const Weights &w,
    219219                unsigned char bits) {
     
    246246 
    247247
    248   unsigned long max = (bits == 32) ? 0xffffffff : (1 << bits) - 1;;
    249   unsigned long i=0, buf=0, pos=0;
     248  mg_u_long max = (bits == 32) ? 0xffffffff : (1 << bits) - 1;;
     249  mg_u_long i=0, buf=0, pos=0;
    250250  here = w.begin();
    251251  end = w.end();
    252252  while (here != end) {
    253     unsigned long fx;
     253    mg_u_long fx;
    254254    wgt = sqrt (*here);
    255255    if (wgt == 0) {
     
    259259#endif
    260260    }
    261     fx = (unsigned long) floor (log (wgt / L) / log (B));
     261    fx = (mg_u_long) floor (log (wgt / L) / log (B));
    262262
    263263    if (fx > max) fx = max;
     
    281281int main (int argc, char **argv) {
    282282  unsigned char bits = 8;
    283   char *filename = "";
     283  char *filename = (char*)"";
    284284  int ch;
    285285  opterr = 0;
     
    354354  IvfLevelInfoMap::iterator levelHere = ivfLevel.levelInfo.begin();
    355355  IvfLevelInfoMap::iterator levelEnd = ivfLevel.levelInfo.end();
    356   unsigned long levelNum = 0;
     356  mg_u_long levelNum = 0;
    357357  while (levelHere != levelEnd) {
    358358    const UCArray &levelName = (*levelHere).first;
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/text.h

    r16583 r25147  
    109109
    110110struct compression_dict_header {
    111   u_long dict_type;
    112   u_long novel_method;
    113   u_long params[TEXT_PARAMS];
    114   u_long num_words[2];
    115   u_long num_word_chars[2];
    116   u_long lookback;
     111  mg_u_long dict_type;
     112  mg_u_long novel_method;
     113  mg_u_long params[TEXT_PARAMS];
     114  mg_u_long num_words[2];
     115  mg_u_long num_word_chars[2];
     116  mg_u_long lookback;
    117117};
    118118
     
    120120struct comp_frags_header {
    121121  huff_data hd;
    122   u_long uncompressed_size;
    123   u_long huff_words_size[MAX_HUFFCODE_LEN + 1];
     122  mg_u_long uncompressed_size;
     123  mg_u_long huff_words_size[MAX_HUFFCODE_LEN + 1];
    124124};
    125125
     
    130130
    131131struct compressed_text_header {
    132   u_long num_of_docs;
    133   u_long num_of_words; // number of words in collection
     132  mg_u_long num_of_docs;
     133  mg_u_long num_of_words; // number of words in collection
    134134  double num_of_bytes;
    135135
     
    145145
    146146struct compression_stats_header {
    147   u_long num_docs;
    148   u_long dummy;     // alignment
     147  mg_u_long num_docs;
     148  mg_u_long dummy;     // alignment
    149149  double num_bytes;
    150150};
     
    152152
    153153struct frags_stats_header {
    154   u_long num_frags;
    155   u_long mem_for_frags;
     154  mg_u_long num_frags;
     155  mg_u_long mem_for_frags;
    156156};
    157157
    158158
    159159struct aux_frags_header {
    160   u_long num_frags;
    161   u_long mem_for_frags;
     160  mg_u_long num_frags;
     161  mg_u_long mem_for_frags;
    162162};
    163163
     
    180180  compression_dict_header cdh;
    181181  comp_frags_header *cfh[2];
    182   unsigned long MemForCompDict;
     182  mg_u_long MemForCompDict;
    183183  u_char ***values[2];
    184184  u_char *escape[2];
    185185  huff_data *chars_huff[2];
    186   u_long **chars_vals[2];
     186  mg_u_long **chars_vals[2];
    187187  huff_data *lens_huff[2];
    188   u_long **lens_vals[2];
     188  mg_u_long **lens_vals[2];
    189189  auxiliary_dict *ad;
    190190  int fast_loaded;
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/text.pass1.cpp

    r16583 r25147  
    5454typedef struct hash_rec
    5555  {
    56     unsigned long wcnt;     /* word frequency */
    57     unsigned long occurance_num;
     56    mg_u_long wcnt;     /* word frequency */
     57    mg_u_long occurance_num;
    5858    u_char *word;
    5959  }
     
    6363  {
    6464    hash_rec *HashTable;
    65     unsigned long HashSize;
    66     unsigned long HashUsed;
    67     unsigned long wordnum;
    68     unsigned long words_read;
    69     unsigned long bytes_diff;
     65    mg_u_long HashSize;
     66    mg_u_long HashUsed;
     67    mg_u_long wordnum;
     68    mg_u_long words_read;
     69    mg_u_long bytes_diff;
    7070    huff_data hd;
    7171  }
     
    7474
    7575
    76 static unsigned long longestDoc = 0;
    77 static unsigned long occurance_num = 0;
     76static mg_u_long longestDoc = 0;
     77static mg_u_long occurance_num = 0;
    7878static dict_data DictData[2];
    7979
     
    8181static int PoolLeft;
    8282static double inputbytes = 0; /* [RJM 07/97: 4G limit] */
    83 static unsigned long MaxMemInUse = 0;
    84 static unsigned long MemInUse = 0;
     83static mg_u_long MaxMemInUse = 0;
     84static mg_u_long MemInUse = 0;
    8585static compression_stats_header csh = {0, 0, 0.0}; /* [RJM 07/97: 4G limit] */
    8686
     
    126126      register u_char *wptr;
    127127      register int hsize = dd->HashSize;
    128       register unsigned long hashval, step;
     128      register mg_u_long hashval, step;
    129129     
    130130      HASH (hashval, step, word, hsize);
     
    132132      while (wptr) {
    133133    hashval += step;
    134     if (hashval >= (unsigned long)hsize)
     134    if (hashval >= (mg_u_long)hsize)
    135135      hashval -= hsize;
    136136    wptr = (dd->HashTable + hashval)->word;
     
    171171    /* Search the hash table for Word */
    172172    {
    173       register unsigned long hashval, step;
     173      register mg_u_long hashval, step;
    174174      register int hsize = dd->HashSize;
    175175      HASH (hashval, step, Word, hsize);
     
    210210    if (len) {
    211211      hashval = (hashval + step);
    212       if (hashval >= (unsigned long)hsize) hashval -= hsize;
     212      if (hashval >= (mg_u_long)hsize) hashval -= hsize;
    213213    } else {
    214214      ++ent->wcnt;
     
    221221    if (dd->HashUsed >= dd->HashSize >> 1) {
    222222      hash_rec *ht;
    223       unsigned long size;
    224       unsigned long i;
     223      mg_u_long size;
     224      mg_u_long i;
    225225      size = prime (dd->HashSize * 2);
    226226      if (!(ht = (hash_rec *) Xmalloc (sizeof (hash_rec) * size))) {
     
    234234    if (dd->HashTable[i].word) {
    235235      register u_char *wptr;
    236       register unsigned long hashval, step;
     236      register mg_u_long hashval, step;
    237237     
    238238      wptr = dd->HashTable[i].word;
     
    258258
    259259int process_text_1 (const TagInfo &/*tagInfo*/, const TextElArray &doc) {
    260   unsigned long textLen = 0;
    261   unsigned long docLen = 0;
     260  mg_u_long textLen = 0;
     261  mg_u_long docLen = 0;
    262262  int retValue;
    263263
     
    312312static void WriteHashTable (FILE * fp, dict_data * dd) {
    313313  frags_stats_header fsh;
    314   u_long j = 0;
     314  mg_u_long j = 0;
    315315  u_char *curr;
    316316
     
    369369
    370370  temp_str = msg_prefix;
    371   msg_prefix = "text.pass1";
     371  msg_prefix = (char*)"text.pass1";
    372372 
    373373  /* [RPAP - Jan 97: Endian Ordering] */
  • main/trunk/greenstone2/common-src/indexers/mgpp/text/text.pass2.cpp

    r16583 r25147  
    5757struct char_pool {
    5858  struct char_pool *next;
    59   u_long left;
     59  mg_u_long left;
    6060  u_char *ptr;
    6161  u_char pool[POOL_SIZE];
     
    6363
    6464struct novel_hash_rec {
    65   u_long ordinal_num;
     65  mg_u_long ordinal_num;
    6666  u_char *word;
    6767};
     
    7272struct novel_hash_table {
    7373  novel_hash_rec *HashTable;
    74   u_long HashSize, HashUsed;
     74  mg_u_long HashSize, HashUsed;
    7575  char_pool *first_pool;
    7676  char_pool *pool;
    77   u_long next_num, binary_start;
     77  mg_u_long next_num, binary_start;
    7878  novel_hash_rec **code_to_nhr;
    7979};
     
    8282static FILE *text;
    8383static stdio_bitio_buffer textOutBuf;
    84 static u_long headLen;
     84static mg_u_long headLen;
    8585
    8686static novel_hash_table nht[2];
     
    128128  // the length of the compressed header is the size of the
    129129  // magic number plus the size of the compressed text header
    130   headLen = sizeof (u_long) + sizeof (cth);
     130  headLen = sizeof (mg_u_long) + sizeof (cth);
    131131
    132132  // start off with non-word
     
    173173static int compress_text (bitio_buffer &buffer, const u_char *s_in,
    174174              int l_in, unsigned char &which,
    175               unsigned long &numWords) {
     175              mg_u_long &numWords) {
    176176  const u_char *end = s_in + l_in - 1;
    177177
     
    188188    /* Search the hash table for Word */
    189189    if (ht[which]) {
    190       register unsigned long hashval, step;
     190      register mg_u_long hashval, step;
    191191      register int tsize = ht[which]->size;
    192192      register u_char **wptr;
     
    211211    if (len) {
    212212      hashval += step;
    213       if (hashval >= (unsigned long)tsize) hashval -= tsize;
     213      if (hashval >= (mg_u_long)tsize) hashval -= tsize;
    214214     
    215215    } else {
     
    231231    if (cdh.dict_type == MG_PARTIAL_DICTIONARY)
    232232      {
    233         u_long i;
     233        mg_u_long i;
    234234        if (ht[which])
    235235          {
     
    253253          case MG_NOVEL_HUFFMAN_CHARS:
    254254        {
    255           u_long i;
     255          mg_u_long i;
    256256          buffer.huff_encode (Word[0], lens_codes[which],
    257257                      lens_huff[which].clens, NULL);
     
    264264          case MG_NOVEL_HYBRID:
    265265        {
    266           register unsigned long hashval, step;
     266          register mg_u_long hashval, step;
    267267          register novel_hash_table *h = &nht[which];
    268268          register int hsize = h->HashSize;
     
    325325            {
    326326              novel_hash_rec *ht;
    327               unsigned long size;
    328               unsigned long i;
     327              mg_u_long size;
     328              mg_u_long i;
    329329              size = prime (h->HashSize * 2);
    330330              if (!(ht = (novel_hash_rec *) Xmalloc (sizeof (novel_hash_rec) * size)))
     
    339339              {
    340340                register u_char *wptr;
    341                 register unsigned long hashval, step;
     341                register mg_u_long hashval, step;
    342342               
    343343                wptr = h->HashTable[i].word;
     
    375375  // we need to remember where the last text element ends
    376376  unsigned char endBit = textOutBuf.GetBtg (); // 8=high bit, 1=low bit
    377   unsigned long endPos = textOutBuf.GetBytesWritten () + headLen;
     377  mg_u_long endPos = textOutBuf.GetBytesWritten () + headLen;
    378378
    379379  // process each text element
     
    384384    unsigned char startWhich = whichWordType;
    385385    unsigned char startBit = textOutBuf.GetBtg (); // 8=high bit, 1=low bit
    386     unsigned long startPos = textOutBuf.GetBytesWritten () + headLen;
     386    mg_u_long startPos = textOutBuf.GetBytesWritten () + headLen;
    387387
    388388    // compress the text
     
    464464static void estimate_compressed_aux_dict (void) {
    465465  int i;
    466   u_long aux_compressed = 0, total_uncomp = 0;
     466  mg_u_long aux_compressed = 0, total_uncomp = 0;
    467467  for (i = 0; i <= 1; ++i)
    468468    {
    469469      int j;
    470       long chars[256], fchars[256];
    471       long lens[16], flens[16];
     470      mg_s_long chars[256], fchars[256];
     471      mg_s_long lens[16], flens[16];
    472472      char_pool *cp;
    473473      memset (chars, '\0', sizeof (chars));
     
    496496      flens[j] = lens[j];
    497497     
    498       aux_compressed += (long unsigned int) ((Calculate_Huffman_Size (16, flens, lens) +
     498      aux_compressed += (mg_u_long) ((Calculate_Huffman_Size (16, flens, lens) +
    499499                          Calculate_Huffman_Size (256, fchars, chars)) / 8);
    500500     
     
    560560
    561561  // write out the compressed text header (with updated statistics)
    562   if (fseek (text, sizeof (u_long), SEEK_SET) == -1 || !cth.Write (text))
     562  if (fseek (text, sizeof (mg_u_long), SEEK_SET) == -1 || !cth.Write (text))
    563563    return COMPERROR;
    564564  fclose (text);
Note: See TracChangeset for help on using the changeset viewer.