Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 76909b5763edb96a2bc7bd7fb5b301b8 > files > 40

cuiterm-0.9.9-1mdv2008.1.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML><HEAD><TITLE>The BASH Parse</TITLE><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="Cuiterm Reference Manual" HREF="index.html"><LINK REL="UP" TITLE="Cuiterm Documentation 0.5" HREF="c4.html"><LINK REL="PREVIOUS" TITLE="CuiGenerator" HREF="cuigenerator.html"><META NAME="GENERATOR" CONTENT="GTK-Doc V1.3 (SGML mode)"><STYLE TYPE="text/css">.synopsis, .classsynopsis {
    background: #eeeeee;
    border: solid 1px #aaaaaa;
    padding: 0.5em;
}
.programlisting {
    background: #eeeeff;
    border: solid 1px #aaaaff;
    padding: 0.5em;
}
.variablelist {
    padding: 4px;
    margin-left: 3em;
}
.navigation {
    background: #ffeeee;
    border: solid 1px #ffaaaa;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
.navigation a {
    color: #770000;
}
.navigation a:visited {
    color: #550000;
}
.navigation .title {
    font-size: 200%;
}</STYLE></HEAD><BODY CLASS="REFENTRY" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF"><TABLE WIDTH="100%" CLASS="navigation" SUMMARY="Navigation header" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD><A ACCESSKEY="p" HREF="cuigenerator.html"><IMG SRC="left.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Prev"></A></TD><TD><A ACCESSKEY="u" HREF="c4.html"><IMG SRC="up.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Up"></A></TD><TD><A ACCESSKEY="h" HREF="index.html"><IMG SRC="home.png" WIDTH="24" HEIGHT="24" BORDER="0" ALT="Home"></A></TD><TH WIDTH="100%" align="center">Cuiterm Reference Manual</TH></TR></TABLE><H1><A NAME="CUITERM-THE-BASH-PARSER"></A>The BASH Parse</H1><DIV CLASS="REFNAMEDIV"><A NAME="AEN5041"></A><H2>Name</H2>The BASH Parse&nbsp;--&nbsp;</DIV><DIV CLASS="REFSYNOPSISDIV"><A NAME="AEN5044"></A><H2>Synopsis</H2><PRE CLASS="SYNOPSIS">&#13;

gboolean    <A HREF="cuiterm-the-bash-parser.html#PARSE-TREE-CHECK-OPTION">parse_tree_check_option</A>         (GNode *node,
                                             const gchar *program,
                                             const gchar *option);
gchar*      <A HREF="cuiterm-the-bash-parser.html#PARSE-TREE-GET-PRODUCER-PROGRAM">parse_tree_get_producer_program</A> (GNode *tree);</PRE></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5055"></A><H2>Description</H2><P></P></DIV><DIV CLASS="REFSECT1"><A NAME="AEN5058"></A><H2>Details</H2><DIV CLASS="REFSECT2"><A NAME="AEN5060"></A><H3><A NAME="PARSE-TREE-CHECK-OPTION"></A>parse_tree_check_option ()</H3><PRE CLASS="PROGRAMLISTING">gboolean    parse_tree_check_option         (GNode *node,
                                             const gchar *program,
                                             const gchar *option);</PRE><P>Check if the given program has the option by the parse tree. This function
checks only the leftmost instance of the command.</P><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5073"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">node</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the root node of the parse tree</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5078"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">program</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the name of the program</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5083"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">option</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P> the short or long option</P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5088"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>&#13;</P></TD></TR></TBODY></TABLE></DIV><HR><DIV CLASS="REFSECT2"><A NAME="AEN5093"></A><H3><A NAME="PARSE-TREE-GET-PRODUCER-PROGRAM"></A>parse_tree_get_producer_program ()</H3><PRE CLASS="PROGRAMLISTING">gchar*      parse_tree_get_producer_program (GNode *tree);</PRE><P></P><P></P><TABLE CLASS="variablelist" BORDER="0" CELLSPACING="0" CELLPADDING="4"><TBODY><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5103"><SPAN STYLE="white-space: nowrap"><CODE CLASS="PARAMETER">tree</CODE>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P></P></TD></TR><TR><TD ALIGN="LEFT" VALIGN="TOP"><A NAME="AEN5108"><SPAN STYLE="white-space: nowrap"><SPAN CLASS="emphasis"><I CLASS="EMPHASIS">Returns</I></SPAN>&nbsp;:</SPAN></TD><TD ALIGN="LEFT" VALIGN="TOP"><P>&#13;</P></TD></TR></TBODY></TABLE></DIV></DIV><TABLE CLASS="navigation" WIDTH="100%" SUMMARY="Navigation footer" CELLPADDING="2" CELLSPACING="2"><TR VALIGN="middle"><TD ALIGN="left"><A ACCESSKEY="p" HREF="cuigenerator.html"><B>&lt;&lt;&lt;&nbsp;CuiGenerator</B></A></TD><TD ALIGN="right"></TD></TR></TABLE></BODY></HTML>