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

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

?? running.sgml

?? this is a glib for c language
?? SGML
字號:
<refentry id="glib-running" revision="17 Jan 2002"><refmeta><refentrytitle>Running GLib Applications</refentrytitle><manvolnum>3</manvolnum><refmiscinfo>GLib Library</refmiscinfo></refmeta><refnamediv><refname>Running GLib Applications</refname><refpurpose>How to run and debug your GLib application</refpurpose></refnamediv><refsect1><title>Running and debugging GLib Applications</title><refsect2><title>Environment variables</title><para> GLib inspects a few of environment variables in addition to standardvariables like <envar>LANG</envar>, <envar>PATH</envar> or <envar>HOME</envar>. </para><formalpara id="G_FILENAME_ENCODING">  <title><envar>G_FILENAME_ENCODING</envar></title>  <para>    This environment variable can be set to a comma-separated list of character    set names. GLib assumes that filenames are encoded in the first character     set from that list rather than in UTF-8. The special token "@locale" can be    used to specify the character set for the current locale.  </para></formalpara><formalpara id="G_BROKEN_FILENAMES">  <title><envar>G_BROKEN_FILENAMES</envar></title>  <para>    If this environment variable is set, GLib assumes that filenames are in     the locale encoding rather than in UTF-8. G_FILENAME_ENCODING takes    priority over G_BROKEN_FILENAMES.   </para></formalpara><formalpara id="G_MESSAGES_PREFIXED">  <title><envar>G_MESSAGES_PREFIXED</envar></title>  <para>    A list of log levels for which messages should be prefixed by the     program name and PID of the application. The default is to prefix    everything except <literal>G_LOG_LEVEL_MESSAGE</literal> and <literal>G_LOG_LEVEL_INFO</literal>.   </para></formalpara><formalpara id="G_DEBUG">  <title><envar>G_DEBUG</envar></title>  <para>    If GLib has been configured with <option>--enable-debug=yes</option>,    this variable can be set to a list of debug options, which cause GLib    to print out different types of debugging information.    <variablelist>      <varlistentry>        <term>fatal_warnings</term>        <listitem><para>Causes GLib to abort the program at the first call           to <link linkend="g-warning">g_warning</link>() or	   <link linkend="g-critical">g_critical</link>(). This option is            special in that it doesn't require GLib to be configured with            debugging support.</para>        </listitem>      </varlistentry>      <varlistentry>        <term>fatal_criticals</term>        <listitem><para>Causes GLib to abort the program at the first call           to <link linkend="g-critical">g_critical</link>(). This option is            special in that it doesn't require GLib to be configured with            debugging support.</para>        </listitem>      </varlistentry>      <varlistentry>        <term>gc-friendly</term>	<listitem>		<para>		  Newly allocated memory that isn't directly initialized, as well		  as memory being freed will be reset to 0. The point here is to		  allow memory checkers and similar programs that use bohem GC alike		  algorithms to produce more accurate results.		  This option is special in that it doesn't require GLib to be		  configured with debugging support.		</para>        </listitem>      </varlistentry>      <varlistentry>        <term>resident-modules</term>	<listitem>	  <para>	    All modules loaded by GModule will be made resident. This can be useful	    for tracking memory leaks in modules which are later unloaded; but it can	    also hide bugs where code is accessed after the module would have normally	    been unloaded.	    This option is special in that it doesn't require GLib to be 	    configured with debugging support.	  </para>        </listitem>      </varlistentry>      <varlistentry>        <term>bind-now-modules</term>	<listitem>	  <para>	    All modules loaded by GModule will bind their symbols at load time, even	    when the code uses %G_MODULE_BIND_LAZY.	    This option is special in that it doesn't require GLib to be 	    configured with debugging support.	  </para>        </listitem>      </varlistentry>    </variablelist>  </para></formalpara><formalpara id="G_SLICE">	<title><envar>G_SLICE</envar></title>	<para>	  This environment variable allows reconfiguration of the GSlice	  memory allocator.	  <variablelist>	    <varlistentry>	      <term>always-malloc</term>	      <listitem>		<para>		  This will cause all slices allocated through g_slice_alloc() and		  released by g_slice_free1() to be actually allocated via direct		  calls to g_malloc() and g_free().		  This is most useful for memory checkers and similar programs that		  use Bohem GC alike algorithms to produce more accurate results.		  It can also be in conjunction with debugging features of the system's		  malloc implementation such as glibc's MALLOC_CHECK_=2 to debug		  erroneous slice allocation code, allthough <literal>debug-blocks</literal>		  usually is a better suited debugging tool.		</para>	      </listitem>	    </varlistentry>	    <varlistentry>	      <term>debug-blocks</term>	      <listitem>		<para>		  Using this option (present since GLib-2.13) engages extra code		  which performs sanity checks on the released memory slices.		  Invalid slice adresses or slice sizes will be reported and lead to		  a program halt.		  This option is for debugging scenarios.		  In particular, client packages sporting their own test suite should		  <emphasis>always enable this option when running tests</emphasis>.		  Global slice validation is ensured by storing size and address information		  for each allocated chunk, and maintaining a global hash table of that data.		  That way, multi-thread scalability is given up, and memory consumption is		  increased. However, the resulting code usually performs acceptably well,		  possibly better than with comparable memory checking carried out using		  external tools. An example of a memory corruption scenario that cannot be		  reproduced with <literal>G_SLICE=always-malloc</literal>, but will be caught		  by <literal>G_SLICE=debug-blocks</literal> is as follows:		  <programlisting>		    void *slist = g_slist_alloc(); /* void* gives up type-safety */		    g_list_free (slist);           /* corruption: sizeof (GSList) != sizeof (GList) */		  </programlisting>		</para>	      </listitem>	    </varlistentry>	  </variablelist>	</para></formalpara><formalpara id="G_RANDOM_VERSION">  <title><envar>G_RANDOM_VERSION</envar></title>  <para>    If this environment variable is set to '2.0', the outdated    pseudo-random number seeding and generation algorithms from    GLib-2.0 are used instead of the new better ones. Use the GLib-2.0    algorithms only if you have sequences of numbers generated with    Glib-2.0 that you need to reproduce exactly.    </para></formalpara> <formalpara id="LIBCHARSET_ALIAS_DIR">  <title><envar>LIBCHARSET_ALIAS_DIR</envar></title>  <para>    Allows to specify a nonstandard location for the     <filename>charset.aliases</filename> file that is used by the    character set conversion routines. The default location is the     <replaceable>libdir</replaceable> specified at compilation time.  </para></formalpara> </refsect2><refsect2 id="setlocale"><title>Locale</title><para>A number of interfaces in GLib depend on the current locale in whichan application is running. Therefore, most GLib-using applications shouldcall <function>setlocale (LC_ALL, "")</function> to set up the current locale.</para><para>On Windows, in a C program there are several locale conceptsthat not necessarily are synchronized. On one hand, there is thesystem default ANSI code-page, which determines what encoding is usedfor file names handled by the C library's functions and the Win32API. (We are talking about the "narrow" functions here that takecharacter pointers, not the "wide" ones.)</para><para>On the other hand, there is the C library's current locale. Thecharacter set (code-page) used by that is not necessarily the same asthe system default ANSI code-page. Strings in this character set arereturned by functions like <function>strftime()</function>.</para></refsect2><refsect2><title>Traps and traces</title><para><indexterm><primary>g_trap_free_size</primary></indexterm><indexterm><primary>g_trap_realloc_size</primary></indexterm><indexterm><primary>g_trap_malloc_size</primary></indexterm>Some code portions contain trap variables that can be set during debugging time if GLib has been configured with <option>--enable-debug=yes</option>. Such traps lead to immediate code halts to examine the current program state and backtrace.</para><para>Currently, the following trap variables exist:<programlisting>static volatile gulong g_trap_free_size;static volatile gulong g_trap_realloc_size;static volatile gulong g_trap_malloc_size;</programlisting>If set to a size > 0, <link linkend="g-free">g_free</link>(), <link linkend="g-realloc">g_realloc</link>() and <link linkend="g-malloc">g_malloc</link>() will be intercepted if the size matches the size of the corresponding memory block. This will only work with <literal>g_mem_set_vtable (glib_mem_profiler_table)</literal> upon startup though, because memory profiling is required to match on the memory block sizes.</para><para>Note that many modern debuggers support conditional breakpoints, which achievepretty much the same. E.g. in gdb, you can do<programlisting>break g_malloccondition 1 n_bytes == 20</programlisting>to break only on g_malloc() calls where the size of the allocated memory blockis 20. </para></refsect2><refsect2><title>Memory statistics</title><para>g_mem_profile() will output a summary g_malloc() memory usage, if memoryprofiling has been enabled by calling <literal>g_mem_set_vtable (glib_mem_profiler_table)</literal> upon startup.</para><para>If GLib has been configured with <option>--enable-debug=yes</option>,then g_slice_debug_tree_statistics() can be called in a debugger to output details about the memory usage of the slice allocator.</para></refsect2></refsect1></refentry>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品免费观看| 国产精品久久久久久一区二区三区| 韩国av一区二区| 亚洲美女免费视频| 久久久亚洲国产美女国产盗摄| 在线视频国内自拍亚洲视频| 国产精品综合av一区二区国产馆| 亚洲第一精品在线| 中文字幕日韩精品一区| 精品国产亚洲一区二区三区在线观看 | 制服丝袜av成人在线看| 国产激情偷乱视频一区二区三区| 亚洲另类在线制服丝袜| 久久久久青草大香线综合精品| 欧美日韩一区二区三区四区| av不卡在线观看| 国产精品 日产精品 欧美精品| 日本不卡在线视频| 亚洲国产精品麻豆| √…a在线天堂一区| 国产亚洲精品福利| 欧美精品一区二区不卡| 777亚洲妇女| 欧美吻胸吃奶大尺度电影 | 91麻豆免费看片| 风间由美一区二区三区在线观看 | 亚洲另类春色国产| 国产精品视频看| 国产亚洲一二三区| 久久久久久久久久久电影| 欧美大度的电影原声| 欧美一区2区视频在线观看| 欧美久久一二三四区| 欧美在线一二三| 91黄色激情网站| 91国产丝袜在线播放| 91精品福利在线| 欧美日韩黄色一区二区| 欧美挠脚心视频网站| 欧美日韩国产a| 欧美日韩国产免费一区二区 | 国产在线国偷精品免费看| 国内成+人亚洲+欧美+综合在线 | 亚洲成人av一区二区| 亚洲精品福利视频网站| 一区二区三区波多野结衣在线观看| 日韩毛片视频在线看| 亚洲素人一区二区| 亚洲激情图片小说视频| 午夜视频一区二区三区| 日本少妇一区二区| 久久精品国产成人一区二区三区 | 亚洲人被黑人高潮完整版| 亚洲欧洲国产日韩| 亚洲美女淫视频| 午夜电影一区二区| 久久精品国产精品青草| 成人午夜精品在线| 色综合天天性综合| 欧美人xxxx| 久久综合999| 国产精品不卡一区二区三区| 亚洲精品五月天| 青青草精品视频| 国产69精品久久久久777| 99麻豆久久久国产精品免费优播| 日本国产一区二区| 日韩视频永久免费| 国产精品网站在线| 亚洲永久免费视频| 久久黄色级2电影| 成人永久免费视频| 欧美日韩国产在线观看| 久久久久久久久久久电影| 亚洲三级久久久| 日产国产欧美视频一区精品| 国产成人无遮挡在线视频| 一本色道亚洲精品aⅴ| 欧美一区二区三区免费观看视频| 国产日产欧美一区| 亚洲一区二区三区中文字幕| 精品亚洲国产成人av制服丝袜| 成人黄色电影在线| 欧美一区日本一区韩国一区| 日本一区二区成人| 日韩电影免费一区| 91美女视频网站| 精品国产欧美一区二区| 136国产福利精品导航| 久久精品国产精品亚洲综合| 91麻豆.com| 久久久不卡网国产精品二区| 亚洲资源在线观看| 成人福利视频网站| 日韩一二三区不卡| 一区二区三区在线观看欧美| 国产伦精品一区二区三区免费迷| 欧美中文字幕不卡| 中文字幕一区二区三区色视频| 另类小说图片综合网| 在线视频国内一区二区| 久久久精品综合| 五月综合激情婷婷六月色窝| 不卡的电影网站| 精品国产伦一区二区三区免费| 亚洲制服丝袜一区| 9i看片成人免费高清| 久久久久久久综合色一本| 天天色综合成人网| 91久久线看在观草草青青| 国产精品欧美久久久久无广告| 激情五月婷婷综合网| 69久久夜色精品国产69蝌蚪网 | 狠狠色狠狠色综合系列| 欧洲精品一区二区| 中文字幕在线不卡视频| 狠狠色综合播放一区二区| 欧美精选午夜久久久乱码6080| 亚洲欧洲99久久| 国产成人综合在线观看| 欧美精品一区二| 久久成人久久鬼色| 欧美一级黄色录像| 日本va欧美va瓶| 欧美精品乱码久久久久久| 一区二区三区成人在线视频| 色婷婷香蕉在线一区二区| 日韩美女久久久| 91蜜桃免费观看视频| 亚洲女同ⅹxx女同tv| 色悠久久久久综合欧美99| 亚洲日本韩国一区| 色国产综合视频| 亚洲一级二级三级| 91激情五月电影| 亚洲一区二区欧美激情| 欧美无砖砖区免费| 婷婷中文字幕综合| 91精品在线观看入口| 三级精品在线观看| 91精品国产综合久久婷婷香蕉 | 成人亚洲精品久久久久软件| 国产亚洲一区二区三区| 成人免费黄色大片| 亚洲同性同志一二三专区| 色综合av在线| 婷婷国产v国产偷v亚洲高清| 3d成人h动漫网站入口| 日本三级韩国三级欧美三级| 欧美成人猛片aaaaaaa| 国产福利一区在线观看| 中文字幕一区二区三区不卡| 91福利在线免费观看| 日本欧美在线看| 久久一夜天堂av一区二区三区| 国产精品影音先锋| 国产精品久99| 欧美色成人综合| 美国欧美日韩国产在线播放| 久久综合一区二区| 不卡的av电影在线观看| 亚洲精品乱码久久久久久久久| 在线不卡中文字幕播放| 极品少妇一区二区| 亚洲三级电影全部在线观看高清| 欧美亚洲国产一区在线观看网站| 日本视频在线一区| 国产精品色哟哟网站| 欧美色中文字幕| 狠狠色狠狠色综合日日91app| 18成人在线观看| 欧美成人猛片aaaaaaa| kk眼镜猥琐国模调教系列一区二区| 亚洲一区二区成人在线观看| 欧美videofree性高清杂交| 99精品国产视频| 另类综合日韩欧美亚洲| 国产精品国产三级国产三级人妇 | 欧美精品久久久久久久多人混战| 奇米色一区二区| √…a在线天堂一区| 日韩欧美成人午夜| 色美美综合视频| 国产裸体歌舞团一区二区| 亚洲国产日韩a在线播放性色| 精品国产乱子伦一区| 欧美特级限制片免费在线观看| 国产一区二区不卡在线| 亚洲一区在线观看视频| 久久久99久久精品欧美| 欧美日韩国产影片| 91在线看国产| 国产伦精品一区二区三区免费 | 男女男精品视频网| 亚洲天堂久久久久久久| 久久久三级国产网站| 3d成人h动漫网站入口| 一本大道久久精品懂色aⅴ| 国产成人午夜高潮毛片| 麻豆成人久久精品二区三区红 |