File: z35.html

package info (click to toggle)
ebook-dev-ggad 199908-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 2,264 kB
  • ctags: 1,163
  • sloc: sh: 44; makefile: 35
file content (248 lines) | stat: -rw-r--r-- 7,763 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
  <head>
    <title>
      Other Features
    </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="glib: Portability and Utility" href= 
    "cha-glib.html">
    <link rel="PREVIOUS" title="Data Structures" href="z29.html">
    <link rel="NEXT" title="GTK+ Basics" href="cha-gtk.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="z29.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="cha-gtk.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="Z35">Other Features</a>
      </h1>
      <p>
        There simply isn't space to cover all of glib's features in
        this book. It's worth looking at glib whenever you find
        yourself thinking, "There really <i class="EMPHASIS">
        should</i> be a function that..."---<tt class=
        "FILENAME">glib.h</tt> and the glib documentation on <a
        href="http://www.gtk.org/" target="_top">
        http://www.gtk.org/</a> are excellent resources.
      </p>
      <p>
        Here's a brief list of features not already mentioned:
      </p>
      <ul>
        <li>
          <p>
            <span class="STRUCTNAME">FLOAT_MAX</span>, etc.
            equivalents for many numeric types.&#13;
          </p>
        </li>
        <li>
          <p>
            Byte-order conversions.&#13;
          </p>
        </li>
        <li>
          <p>
            <tt class="FUNCTION">g_memmove()</tt> is more portable
            them <tt class="FUNCTION">memmove()</tt>.&#13;
          </p>
        </li>
        <li>
          <p>
            <span class="STRUCTNAME">G_DIR_SEPARATOR</span> handles
            Windows/UNIX differences.&#13;
          </p>
        </li>
        <li>
          <p>
            <span class="STRUCTNAME">G_VA_COPY</span> copies a
            <span class="STRUCTNAME">va_list</span> in a portable
            way.&#13;
          </p>
        </li>
        <li>
          <p>
            Numerous macros to permit the use of compiler
            extensions (especially <tt class="APPLICATION">gcc</tt>
            extensions) in a portable way.&#13;
          </p>
        </li>
        <li>
          <p>
            Portable <tt class="FUNCTION">g_htonl()</tt> and other
            host-to-network conversions.&#13;
          </p>
        </li>
        <li>
          <p>
            A <span class="STRUCTNAME">GCache</span> generic cache
            facility.&#13;
          </p>
        </li>
        <li>
          <p>
            "Callback maintenance" routines---registering and
            unregistering of callbacks.&#13;
          </p>
        </li>
        <li>
          <p>
            The <tt class="FUNCTION">g_log()</tt> facility, allows
            you to print warnings, messages, etc. with configurable
            log levels and pluggable print routines.&#13;
          </p>
        </li>
        <li>
          <p>
            <span class="STRUCTNAME">GMemChunk</span> facility
            allows you to allocate a large pool of small memory
            chunks, for efficiency gains compared to <tt class= 
            "FUNCTION">g_malloc()</tt>. Used in the <span class= 
            "STRUCTNAME">GList</span> implementation, for
            example.&#13;
          </p>
        </li>
        <li>
          <p>
            A timer facility.&#13;
          </p>
        </li>
        <li>
          <p>
            Convenience/portability routines to get the user's home
            directory, get the name of a <tt class="FILENAME">
            /tmp</tt> directory, and similar tasks.&#13;
          </p>
        </li>
        <li>
          <p>
            Filename manipulation, such as <tt class="FUNCTION">
            g_basename()</tt> and <tt class="FUNCTION">
            g_path_is_absolute()</tt>.&#13;
          </p>
        </li>
        <li>
          <p>
            Bitfield manipulation.&#13;
          </p>
        </li>
        <li>
          <p>
            Enhanced string and array classes. Pointer and byte
            arrays.&#13;
          </p>
        </li>
        <li>
          <p>
            <span class="STRUCTNAME">GQuark</span>---two way
            mapping from strings to integer identifiers. &#13;
          </p>
        </li>
        <li>
          <p>
            Routines to associate data with strings, or with
            arbitrary pointers. &#13;
          </p>
        </li>
        <li>
          <p>
            A lexical scanner.&#13;
          </p>
        </li>
        <li>
          <p>
            Tab completions.&#13;
          </p>
        </li>
        <li>
          <p>
            Calendrical/date-arithmetic functions.&#13;
          </p>
        </li>
        <li>
          <p>
            A generic event loop abstraction, used to implement
            GTK+'s event loop.&#13;
          </p>
        </li>
        <li>
          <p>
            A portable threads abstraction.&#13;
          </p>
        </li>
      </ul>
      <p>
        If you need some generally-useful routine that's not in
        glib already, consider writing it in glib style and
        contributing it to the library! You get free assistance
        with design, debugging, and maintenance, and other
        programmers benefit from the facility you've written. By
        the time you read this, it's also possible that the feature
        you want is already in the latest version of glib.
      </p>
    </div>
    <div class="NAVFOOTER">
      <br>
      <br>
      <table width="100%" border="0" bgcolor="#ffffff" cellpadding= 
      "1" cellspacing="0">
        <tr>
          <td width="25%" bgcolor="#ffffff" align="left">
            <a href="z29.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="cha-gtk.html"><font color="#0000ff" size="2">
            <b>Next &gt;&gt;&gt;</b></font></a>
          </td>
        </tr>
        <tr>
          <td colspan="2" align="left">
            <font color="#000000" size="2"><b>Data
            Structures</b></font>
          </td>
          <td colspan="2" align="right">
            <font color="#000000" size="2"><b>GTK+
            Basics</b></font>
          </td>
        </tr>
      </table>
    </div>
  </body>
</html>