亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? z77.html

?? gtk_text program sample&eg
?? HTML
?? 第 1 頁 / 共 2 頁
字號(hào):
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html>  <head>    <title>      Argument Parsing with popt    </title>    <meta name="GENERATOR" content=    "Modular DocBook HTML Stylesheet Version 1.45">    <link rel="HOME" title="GTK+ / Gnome Application Development"    href="ggad.html">    <link rel="UP" title="Gnome Application Basics" href=     "cha-startup.html">    <link rel="PREVIOUS" title="Internationalization" href=     "sec-i18n.html">    <link rel="NEXT" title="Saving Configuration Information" href=     "z79.html">  </head>  <body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink=   "#840084" alink="#0000FF">    <div class="NAVHEADER">      <table width="100%" border="0" bgcolor="#ffffff" cellpadding=       "1" cellspacing="0">        <tr>          <th colspan="4" align="center">            <font color="#000000" size="2">GTK+ / Gnome Application            Development</font>          </th>        </tr>        <tr>          <td width="25%" bgcolor="#ffffff" align="left">            <a href="sec-i18n.html"><font color="#0000ff" size="2">            <b>&lt;&lt;&lt; Previous</b></font></a>          </td>          <td width="25%" colspan="2" bgcolor="#ffffff" align=           "center">            <font color="#0000ff" size="2"><b><a href="ggad.html">            <font color="#0000ff" size="2"><b>            Home</b></font></a></b></font>          </td>          <td width="25%" bgcolor="#ffffff" align="right">            <a href="z79.html"><font color="#0000ff" size="2"><b>            Next &gt;&gt;&gt;</b></font></a>          </td>        </tr>      </table>    </div>    <div class="SECT1">      <h1 class="SECT1">        <a name="Z77">Argument Parsing with <tt class=        "APPLICATION">popt</tt></a>      </h1>      <p>        Gnome uses a powerful option-parsing library called <tt        class="APPLICATION">popt</tt>. <tt class="APPLICATION">        popt</tt> handles all the default Gnome options---to see        the default options, pass the <tt class="APPLICATION">        --help</tt> option to any Gnome application. You can add a        "<tt class="APPLICATION">popt</tt> table" with your custom        options. To do so, replace <tt class="FUNCTION">        gnome_init()</tt> with the <tt class="FUNCTION">        gnome_init_with_popt_table()</tt> variant (<a href=         "z77.html#FL-INITWITHPOPT">Figure 3</a>).      </p>      <div class="FIGURE">        <a name="FL-INITWITHPOPT"></a>        <div class="FUNCSYNOPSIS">          <a name="FL-INITWITHPOPT.SYNOPSIS"></a>          <table border="0" bgcolor="#E0E0E0" width="100%">            <tr>              <td><pre class="FUNCSYNOPSISINFO">#include &lt;libgnomeui/gnome-init.h&gt;</pre>              </td>            </tr>          </table>          <p>            <code><code class="FUNCDEF">int <tt class="FUNCTION">            gnome_init_with_popt_table</tt></code>(const char* <tt            class="PARAMETER"><i>app_id</i></tt>, const char* <tt            class="PARAMETER"><i>app_version</i></tt>, int <tt            class="PARAMETER"><i>argc</i></tt>, char** <tt class=             "PARAMETER"><i>argv</i></tt>, const struct poptOption*            <tt class="PARAMETER"><i>options</i></tt>, int <tt            class="PARAMETER"><i>flags</i></tt>, poptContext* <tt            class="PARAMETER"><i>return_ctx</i></tt>);</code>          </p>        </div>        <p>          <b>Figure 3. Init with Argument Parsing</b>        </p>      </div>      <p>        A <tt class="APPLICATION">popt</tt> table is simply an        array of <span class="STRUCTNAME">struct poptOption</span>,        defined as follows:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;struct poptOption {  const char* longName;  char shortName;           int argInfo;            void* arg;                int val;                  char* descrip;           char* argDescrip;       };&#13;</pre>          </td>        </tr>      </table>      <p>        The first two components are the long and short names for        the option; for example, <span class="STRUCTNAME">        "help"</span> and <span class="STRUCTNAME">'h'</span> would        correspond to command-line options <tt class="APPLICATION">        --help</tt> and <tt class="APPLICATION">-h</tt>. These can        be <span class="STRUCTNAME">NULL</span> and <tt class=         "APPLICATION">'\0'</tt> respectively, if you want only one        name for the option.      </p>      <p>        The <span class="STRUCTNAME">arginfo</span> member tells        what kind of table entry this is. Here are the possible        values:      </p>      <ul>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_NONE</span> means the            option is a simple switch, it takes no argument. &#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_STRING</span> means            the option takes a string argument, as in <tt class=             "APPLICATION">--geometry="300x300+50+100"</tt>.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_INT</span> means the            option takes an <span class="STRUCTNAME">int</span>            argument, as in <tt class="APPLICATION">            --columns=10</tt>.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_LONG</span> means the            option takes a <span class="STRUCTNAME">long</span>            argument.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_INCLUDE_TABLE</span>            means that this <span class="STRUCTNAME">struct            poptOption</span> does not specify an option, but            rather another <tt class="APPLICATION">popt</tt> table            to be included.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_CALLBACK</span> means            that this <span class="STRUCTNAME">struct            poptOption</span> does not specify an option, but            rather a callback function to be used for parsing            options in this table. This kind of entry should be at            the beginning of your table.&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">POPT_ARG_INTL_DOMAIN</span>            means that this <span class="STRUCTNAME">struct            poptOption</span> specifies the translation domain for            this table and any subtables.&#13;          </p>        </li>      </ul>      <p>        The meaning of <span class="STRUCTNAME">arg</span> depends        on the <span class="STRUCTNAME">arginfo</span> member. For        options that take an argument, <span class="STRUCTNAME">        arg</span> should point to a variable of the argument type.        <tt class="APPLICATION">popt</tt> will fill the pointed-to        variable with the argument. For <span class="STRUCTNAME">        POPT_ARG_NONE</span>, <span class="STRUCTNAME">*arg</span>        is set to <span class="STRUCTNAME">TRUE</span> if the        option is found on the command line. In all cases, <span        class="STRUCTNAME">arg</span> may be <span class=        "STRUCTNAME">NULL</span>, causing <tt class="APPLICATION">        popt</tt> to ignore it.      </p>      <p>        For <span class="STRUCTNAME">POPT_ARG_INCLUDE_TABLE</span>,        <span class="STRUCTNAME">arg</span> points to the table to        include; for <span class="STRUCTNAME">        POPT_ARG_CALLBACK</span>, it points to the callback to        invoke; for <span class="STRUCTNAME">        POPT_ARG_INTL_DOMAIN</span> it should be the translation        domain string.      </p>      <p>        The <span class="STRUCTNAME">val</span> member serves as an        identifier for each option. Typically it isn't that useful        in Gnome applications, but if you use a callback it will be        available in the callback. If you aren't going to use it,        set it to <span class="STRUCTNAME">0</span>.      </p>      <p>        The final two members are used to automatically generate        output for the <tt class="APPLICATION">--help</tt> option.        <span class="STRUCTNAME">descrip</span> describes an        option; <span class="STRUCTNAME">argDescrip</span>        describes the argument to that option, if applicable. For        example, the help for the <tt class="APPLICATION">        --display</tt> option looks like this:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;  --display=DISPLAY                X display to use&#13;</pre>          </td>        </tr>      </table>      <p>        Here <span class="STRUCTNAME">argDescrip</span> is "<tt        class="APPLICATION">DISPLAY</tt>" and <span class=         "STRUCTNAME">descrip</span> is "<tt class="APPLICATION">X        display to use</tt>." Remember to mark these two strings        for translation.      </p>      <p>        <span class="STRUCTNAME">descrip</span> has a slightly        different meaning for <span class="STRUCTNAME">        POPT_ARG_INCLUDE_TABLE</span>; in this case it titles a        "group" of options in the help output. For example, "<tt        class="APPLICATION">Help options</tt>" in the following        output:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;Help options  -?, --help                   Show this help message  --usage                      Display brief usage message&#13;</pre>          </td>        </tr>      </table>      <p>        If you place an entry of type <span class="STRUCTNAME">        POPT_ARG_CALLBACK</span> at the beginning of a <tt class=         "APPLICATION">popt</tt> table, a user-defined callback will        be invoked with information about each option found on the        command line. Here is the type your callback is expected to        have:      </p>      <table border="0" bgcolor="#E0E0E0" width="100%">        <tr>          <td><pre class="PROGRAMLISTING">&#13;typedef void (*poptCallbackType)(poptContext con,                                  enum poptCallbackReason reason,                                         const struct poptOption* opt,                                  const char* arg,                                  void* data);&#13;</pre>          </td>        </tr>      </table>      <p>        The opaque <span class="STRUCTNAME">poptContext</span>        object contains all of <tt class="APPLICATION">popt</tt>'s        state. This makes it possible to use <tt class=        "APPLICATION">popt</tt> more than once in the same program,        or parse more than one set of options simultaneously. You        can also extract information about the current parsing        state from the <span class="STRUCTNAME">poptContext</span>,        using functions provided by <tt class="APPLICATION">        popt</tt>.      </p>      <p>        Possible <span class="STRUCTNAME">poptCallbackReason</span>        values are:      </p>      <ul>        <li>          <p>            <span class="STRUCTNAME">            POPT_CALLBACK_REASON_PRE</span>&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">            POPT_CALLBACK_REASON_POST</span>&#13;          </p>        </li>        <li>          <p>            <span class="STRUCTNAME">            POPT_CALLBACK_REASON_OPTION</span>&#13;          </p>        </li>      </ul>      <p>        Your callback is called once for each option found on the        command line with <span class="STRUCTNAME">        POPT_CALLBACK_REASON_OPTION</span> as the <span class=         "STRUCTNAME">reason</span> argument. If you request, it can        also be called before and after argument parsing. In these        cases <span class="STRUCTNAME">reason</span> will be <span        class="STRUCTNAME">POPT_CALLBACK_REASON_PRE</span> or <span        class="STRUCTNAME">POPT_CALLBACK_REASON_POST</span>. To        specify that you want your callback to be called before or

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费看精品久久片| 韩国视频一区二区| 九九九精品视频| 99综合影院在线| 欧美肥胖老妇做爰| 精品国产一区二区亚洲人成毛片| 精品日韩在线观看| 一色桃子久久精品亚洲| 天天色天天操综合| 国产成人免费av在线| 欧洲一区在线电影| 久久久99免费| 日本不卡一二三| 99精品久久久久久| 精品国产麻豆免费人成网站| 日韩理论片在线| 国产精品一区一区| 欧美一区二区私人影院日本| 中文字幕亚洲在| 久久99久久久久久久久久久| 色综合久久综合中文综合网| 久久网站热最新地址| 午夜精品免费在线| 色婷婷综合久久久久中文 | 青青草伊人久久| 99精品视频在线播放观看| 精品日韩一区二区三区免费视频| 亚洲一区二区三区三| 99精品欧美一区二区三区小说| 久久久久久久电影| 久久精品国产色蜜蜜麻豆| 欧美日韩一区二区电影| 亚洲精品成人少妇| 色婷婷久久综合| 亚洲一级二级三级| 日本一二三不卡| 国产91丝袜在线播放九色| 国产亚洲欧美一区在线观看| 久久不见久久见中文字幕免费| 制服丝袜中文字幕一区| 日韩精品亚洲专区| 欧美一级电影网站| 精品中文字幕一区二区| 精品免费一区二区三区| 国产一区二区精品在线观看| 精品动漫一区二区三区在线观看| 久久99九九99精品| 日本一区二区三区四区在线视频| 国产v日产∨综合v精品视频| 国产精品美女久久久久久久网站| 北岛玲一区二区三区四区| 亚洲裸体xxx| 4438成人网| 成人在线视频一区二区| 一区二区三区四区激情| 午夜a成v人精品| 日韩精品一区二区三区在线观看 | 国产人成亚洲第一网站在线播放| 麻豆中文一区二区| 精品成人佐山爱一区二区| 国产精品伊人色| 国产精品国产精品国产专区不蜜| 成人天堂资源www在线| 午夜精品久久久久久久久久久| 3atv一区二区三区| 91网站视频在线观看| 免费在线视频一区| 亚洲欧洲精品一区二区三区| 91精品国产综合久久香蕉的特点| 国产成人av一区二区三区在线 | 日韩精品91亚洲二区在线观看| 久久久久亚洲综合| 久久先锋资源网| 8v天堂国产在线一区二区| 成人午夜视频免费看| 免费美女久久99| 亚洲福利国产精品| 国产精品美女久久久久久久久| 555夜色666亚洲国产免| 色婷婷综合久久久久中文一区二区 | 久久精品国内一区二区三区| 午夜一区二区三区在线观看| 国产精品美女久久久久久| 日韩小视频在线观看专区| 97久久超碰精品国产| 国产传媒日韩欧美成人| 首页国产欧美日韩丝袜| 亚洲最新视频在线观看| 亚洲在线中文字幕| 亚洲综合区在线| 三级不卡在线观看| 美女www一区二区| 久久99精品久久久久| 国产成人午夜片在线观看高清观看| 日本在线不卡一区| 蜜臀国产一区二区三区在线播放| 亚洲福利视频导航| 首页综合国产亚洲丝袜| 日韩中文字幕不卡| 无吗不卡中文字幕| 午夜电影久久久| 看电视剧不卡顿的网站| 久久精品国产一区二区三| 黄色日韩三级电影| 不卡的av网站| 欧美性色黄大片手机版| 日韩午夜在线观看视频| 日韩精品一区二区三区视频在线观看| 91精品国产综合久久香蕉麻豆| 精品动漫一区二区三区在线观看| 中文字幕精品在线不卡| 亚洲午夜免费电影| 美洲天堂一区二卡三卡四卡视频| 国产美女精品在线| 欧美伊人久久久久久久久影院 | 在线影视一区二区三区| 在线免费视频一区二区| 9191国产精品| 久久综合久久久久88| 国产精品狼人久久影院观看方式| 国产精品国产三级国产| 亚洲色图视频网| 三级影片在线观看欧美日韩一区二区 | 国产午夜精品久久久久久免费视 | 国产女人aaa级久久久级 | 欧美精品一区二区三区四区| 国产精品美女久久福利网站| 依依成人精品视频| 国产综合色视频| 色综合视频在线观看| 欧美高清一级片在线| 欧美刺激午夜性久久久久久久| 久久久五月婷婷| 亚洲成人自拍一区| 久久超碰97人人做人人爱| 色婷婷综合久久久久中文| 久久奇米777| 日韩黄色小视频| 99视频超级精品| 久久久精品欧美丰满| 亚洲成在人线在线播放| 91丨国产丨九色丨pron| 欧美精品一区视频| 美国三级日本三级久久99| 91丨porny丨中文| 国产午夜精品美女毛片视频| 久久99精品国产麻豆婷婷洗澡| 在线观看视频欧美| 国产欧美日韩亚州综合| 国产一区二区在线观看免费| 欧美伦理电影网| 亚洲欧美偷拍卡通变态| 激情小说欧美图片| 欧美日韩在线播放一区| 亚洲精品免费在线观看| 91丨九色丨蝌蚪富婆spa| 亚洲人成在线观看一区二区| jlzzjlzz国产精品久久| 久久久电影一区二区三区| 激情久久五月天| 日本成人在线不卡视频| 日韩欧美亚洲国产另类| 美女性感视频久久| 日韩一区二区免费视频| 国产老女人精品毛片久久| 久久久美女艺术照精彩视频福利播放 | 日本aⅴ精品一区二区三区| 欧美久久久一区| 亚洲18色成人| 日韩午夜av一区| 国产精品伊人色| 成人国产在线观看| 亚洲一区二区三区四区在线观看 | av一区二区三区| 亚洲国产一区二区在线播放| 欧美久久久久久久久久| 国产综合成人久久大片91| 亚洲婷婷综合色高清在线| 精品污污网站免费看| 久久97超碰国产精品超碰| 亚洲天堂2016| 精品99久久久久久| 91久久精品日日躁夜夜躁欧美| 免费看黄色91| 亚洲综合视频在线| 久久综合久久综合亚洲| 99精品久久只有精品| 久久成人久久鬼色| 亚洲午夜激情网页| 欧美激情一区二区三区蜜桃视频| 色94色欧美sute亚洲线路一ni| 老鸭窝一区二区久久精品| 一区二区三区在线观看动漫| 欧美一级二级在线观看| 97久久精品人人澡人人爽| 日韩va欧美va亚洲va久久| 亚洲欧美电影一区二区| 久久久国产精品麻豆| 日韩三级高清在线| 欧美色大人视频|