Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > by-pkgid > 2fc07611b08d4a735fd34d5eb60d8e16 > files > 2052

ciao-1.10p8-3mdv2010.0.i586.rpm

<HTML>
<HEAD>
<!-- Created by texi2html 1.56k + clip patches and <A href="http://www.clip.dia.fi.upm.es/Software">lpdoc</A> from ciao.texi on 28 January 2007 -->

<LINK rel="stylesheet" href="ciao.css" type="text/css">
<TITLE>The Ciao Prolog System               - Customizing library paths and path aliases</TITLE>
</HEAD>
<BODY> 
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_10.html">previous</A>, <A HREF="ciao_12.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
<P><HR><P>


<H1><A NAME="SEC89" HREF="ciao_toc.html#TOC89">Customizing library paths and path aliases</A></H1>
<P>
<A NAME="IDX855"></A>


<P>
<STRONG>Author(s):</STRONG> Daniel Cabeza.


<P>
<STRONG>Version:</STRONG> 1.10#7 (2006/4/26, 19:22:13 CEST)


<P>
<STRONG>Version of last change:</STRONG> 1.9#189 (2003/12/19, 16:8:47 CET)


<P>
This library provides means for customizing, from environment variables, the libraries and 
<A NAME="IDX856"></A>
path aliases known by an executable. Many applications of Ciao, including 
<A NAME="IDX857"></A>
<CODE>ciaoc</CODE>, 
<A NAME="IDX858"></A>
<CODE>ciaosh</CODE>, and 
<A NAME="IDX859"></A>
<CODE>ciao-shell</CODE> make use of this library. Note that if an executable is created dynamic, it will try to load its components at startup, before the procedures of this module can be invoked, so in this case all the components should be in standard locations.



<UL>
<LI><A HREF="ciao_11.html#SEC90">Usage and interface (libpaths)</A>
<LI><A HREF="ciao_11.html#SEC91">Documentation on exports (libpaths)</A>
<LI><A HREF="ciao_11.html#SEC92">Documentation on multifiles (libpaths)</A>
</UL>



<H2><A NAME="SEC90" HREF="ciao_toc.html#TOC90">Usage and interface (<CODE>libpaths</CODE>)</A></H2>

<div class="cartouche">

<UL>

<LI><STRONG>Library usage:</STRONG>

<CODE>:- use_module(library(libpaths)).</CODE>

<LI><STRONG>Exports:</STRONG>


<UL>

<LI><EM>Predicates:</EM>

<A NAME="IDX860"></A>
<CODE>get_alias_path/0</CODE>.

<LI><EM>Multifiles:</EM>

<A NAME="IDX861"></A>
<CODE>file_search_path/2</CODE>, 
<A NAME="IDX862"></A>
<CODE>library_directory/1</CODE>.

</UL>

<LI><STRONG>Other modules used:</STRONG>


<UL>

<LI><EM>System library modules:</EM>

<A NAME="IDX863"></A>
<CODE>system</CODE>, 
<A NAME="IDX864"></A>
<CODE>lists</CODE>.

</UL>

</UL>

</div class="cartouche">



<H2><A NAME="SEC91" HREF="ciao_toc.html#TOC91">Documentation on exports (<CODE>libpaths</CODE>)</A></H2>
<P>
<A NAME="IDX865"></A>
<A NAME="IDX866"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>get_alias_path/0:</B>
<DD><A NAME="IDX867"></A>


<P>
<CODE>get_alias_path(get_alias_path</CODE>


<P>
Consult the environment variable 'CIAOALIASPATH' and add facts to predicates 
<A NAME="IDX868"></A>
<CODE>library_directory/1</CODE> and 
<A NAME="IDX869"></A>
<CODE>file_search_path/2</CODE> to define new library paths and 
<A NAME="IDX870"></A>
path aliases. The format of 'CIAOALIASPATH' is a sequence of paths or alias assignments separated by colons, an alias assignment is the name of the alias, an '=' and the path represented by that alias (no blanks allowed). For example, given 

<PRE>
   CIAOALIASPATH=/home/bardo/ciao:contrib=/usr/local/lib/ciao
</PRE>

<P>
the predicate will define /home/bardo/ciao as a library path and /usr/local/lib/ciao as the path represented by 'contrib'.


</DL>



<H2><A NAME="SEC92" HREF="ciao_toc.html#TOC92">Documentation on multifiles (<CODE>libpaths</CODE>)</A></H2>
<P>
<A NAME="IDX871"></A>
<A NAME="IDX872"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>file_search_path/2:</B>
<DD><A NAME="IDX873"></A>


<P>
See section <A HREF="ciao_24.html#SEC153">Basic file/stream handling</A>.


<P>
The predicate is <EM>multifile</EM>.


<P>
The predicate is of type <EM>dynamic</EM>.


</DL>

<P>
<A NAME="IDX874"></A>
<A NAME="IDX875"></A>
<DL>
<DT><span class="define">PREDICATE:</span> <B>library_directory/1:</B>
<DD><A NAME="IDX876"></A>


<P>
See section <A HREF="ciao_24.html#SEC153">Basic file/stream handling</A>.


<P>
The predicate is <EM>multifile</EM>.


<P>
The predicate is of type <EM>dynamic</EM>.


</DL>

<P><HR><P>
Go to the <A HREF="ciao_1.html">first</A>, <A HREF="ciao_10.html">previous</A>, <A HREF="ciao_12.html">next</A>, <A HREF="ciao_241.html">last</A> section, <A HREF="ciao_toc.html">table of contents</A>.
</BODY>
</HTML>