loadpath.c

Go to the documentation of this file.
00001 /**********************************************************************
00002 
00003   loadpath.c -
00004 
00005   $Author: akr $
00006   created at: Wed May 15 14:19:50 JST 2013
00007 
00008   Copyright (C) 2013 Yukihiro Matsumoto
00009 
00010 **********************************************************************/
00011 
00012 #include "verconf.h"
00013 #include "ruby/ruby.h"
00014 
00015 /* Define RUBY_REVISION to avoid revision.h inclusion via version.h. */
00016 #define RUBY_REVISION 0
00017 #include "version.h"
00018 
00019 #ifndef RUBY_ARCH
00020 #define RUBY_ARCH RUBY_PLATFORM
00021 #endif
00022 #ifndef RUBY_SITEARCH
00023 #define RUBY_SITEARCH RUBY_ARCH
00024 #endif
00025 #ifdef RUBY_PLATFORM_CPU
00026 #define RUBY_THINARCH RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS
00027 #endif
00028 #ifndef RUBY_LIB_PREFIX
00029 #ifndef RUBY_EXEC_PREFIX
00030 #error RUBY_EXEC_PREFIX must be defined
00031 #endif
00032 #define RUBY_LIB_PREFIX RUBY_EXEC_PREFIX"/lib/ruby"
00033 #endif
00034 #ifndef RUBY_SITE_LIB
00035 #define RUBY_SITE_LIB RUBY_LIB_PREFIX"/site_ruby"
00036 #endif
00037 #ifndef RUBY_VENDOR_LIB
00038 #define RUBY_VENDOR_LIB RUBY_LIB_PREFIX"/vendor_ruby"
00039 #endif
00040 
00041 typedef char ruby_lib_version_string[(int)sizeof(RUBY_LIB_VERSION) - 2];
00042 
00043 #ifndef RUBY_LIB
00044 #define RUBY_LIB                    RUBY_LIB_PREFIX  "/"RUBY_LIB_VERSION
00045 #endif
00046 #define RUBY_SITE_LIB2              RUBY_SITE_LIB    "/"RUBY_LIB_VERSION
00047 #define RUBY_VENDOR_LIB2            RUBY_VENDOR_LIB  "/"RUBY_LIB_VERSION
00048 #ifndef RUBY_ARCH_LIB_FOR
00049 #define RUBY_ARCH_LIB_FOR(arch)        RUBY_LIB         "/"arch
00050 #endif
00051 #ifndef RUBY_SITE_ARCH_LIB_FOR
00052 #define RUBY_SITE_ARCH_LIB_FOR(arch)   RUBY_SITE_LIB2   "/"arch
00053 #endif
00054 #ifndef RUBY_VENDOR_ARCH_LIB_FOR
00055 #define RUBY_VENDOR_ARCH_LIB_FOR(arch) RUBY_VENDOR_LIB2 "/"arch
00056 #endif
00057 
00058 #if !defined(LOAD_RELATIVE) || !LOAD_RELATIVE
00059 const char ruby_exec_prefix[] = RUBY_EXEC_PREFIX;
00060 #endif
00061 
00062 const char ruby_initial_load_paths[] =
00063 #ifndef NO_INITIAL_LOAD_PATH
00064 #ifdef RUBY_SEARCH_PATH
00065     RUBY_SEARCH_PATH "\0"
00066 #endif
00067 #ifndef NO_RUBY_SITE_LIB
00068     RUBY_SITE_LIB2 "\0"
00069 #ifdef RUBY_THINARCH
00070     RUBY_SITE_ARCH_LIB_FOR(RUBY_THINARCH) "\0"
00071 #endif
00072     RUBY_SITE_ARCH_LIB_FOR(RUBY_SITEARCH) "\0"
00073     RUBY_SITE_LIB "\0"
00074 #endif
00075 
00076 #ifndef NO_RUBY_VENDOR_LIB
00077     RUBY_VENDOR_LIB2 "\0"
00078 #ifdef RUBY_THINARCH
00079     RUBY_VENDOR_ARCH_LIB_FOR(RUBY_THINARCH) "\0"
00080 #endif
00081     RUBY_VENDOR_ARCH_LIB_FOR(RUBY_SITEARCH) "\0"
00082     RUBY_VENDOR_LIB "\0"
00083 #endif
00084 
00085     RUBY_LIB "\0"
00086 #ifdef RUBY_THINARCH
00087     RUBY_ARCH_LIB_FOR(RUBY_THINARCH) "\0"
00088 #endif
00089     RUBY_ARCH_LIB_FOR(RUBY_ARCH) "\0"
00090 #endif
00091     "";
00092 
00093 

Generated on 19 Jul 2016 for Ruby by  doxygen 1.4.7