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 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Miscellaneous Macros: liblangtag Documentation</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="liblangtag Documentation">
<link rel="up" href="Utilities.html" title="Utilities APIs">
<link rel="prev" href="Utilities.html" title="Utilities APIs">
<link rel="next" href="liblangtag-Error.html" title="Error">
<meta name="generator" content="GTK-Doc V1.34.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
<a href="#liblangtag-Miscellaneous-Macros.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="Utilities.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="Utilities.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="liblangtag-Error.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="liblangtag-Miscellaneous-Macros"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="liblangtag-Miscellaneous-Macros.top_of_page"></a>Miscellaneous Macros</span></h2>
<p>Miscellaneous Macros — macros used in liblangtag</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="liblangtag-Miscellaneous-Macros.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-PRINTF:CAPS" title="LT_GNUC_PRINTF()">LT_GNUC_PRINTF</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-LIKELY:CAPS" title="LT_LIKELY()">LT_LIKELY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-UNLIKELY:CAPS" title="LT_UNLIKELY()">LT_UNLIKELY</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-DEPRECATED-FOR:CAPS" title="LT_GNUC_DEPRECATED_FOR()">LT_GNUC_DEPRECATED_FOR</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-ALIGNED-TO:CAPS" title="LT_ALIGNED_TO()">LT_ALIGNED_TO</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-ALIGNED-TO-POINTER:CAPS" title="LT_ALIGNED_TO_POINTER()">LT_ALIGNED_TO_POINTER</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-N-ELEMENTS:CAPS" title="LT_N_ELEMENTS()">LT_N_ELEMENTS</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-BREAKPOINT:CAPS" title="LT_BREAKPOINT">LT_BREAKPOINT</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-ASSERT-STATIC:CAPS" title="LT_ASSERT_STATIC()">LT_ASSERT_STATIC</a><span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t"><span class="returnvalue">lt_pointer_t</span></a>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-copy-func-t" title="lt_copy_func_t ()">*lt_copy_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-destroy-func-t" title="lt_destroy_func_t ()">*lt_destroy_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">int</span>
</td>
<td class="function_name">
<span class="c_punctuation">(</span><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-compare-func-t" title="lt_compare_func_t ()">*lt_compare_func_t</a><span class="c_punctuation">)</span> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="liblangtag-Miscellaneous-Macros.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-BEGIN-DECLS:CAPS" title="LT_BEGIN_DECLS">LT_BEGIN_DECLS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-END-DECLS:CAPS" title="LT_END_DECLS">LT_END_DECLS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-STMT-START:CAPS" title="LT_STMT_START">LT_STMT_START</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-STMT-END:CAPS" title="LT_STMT_END">LT_STMT_END</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#inline" title="inline">inline</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-INLINE-FUNC:CAPS" title="LT_INLINE_FUNC">LT_INLINE_FUNC</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-UNUSED:CAPS" title="LT_GNUC_UNUSED">LT_GNUC_UNUSED</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-NULL-TERMINATED:CAPS" title="LT_GNUC_NULL_TERMINATED">LT_GNUC_NULL_TERMINATED</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-DEPRECATED:CAPS" title="LT_GNUC_DEPRECATED">LT_GNUC_DEPRECATED</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-BEGIN-IGNORE-DEPRECATIONS:CAPS" title="LT_GNUC_BEGIN_IGNORE_DEPRECATIONS">LT_GNUC_BEGIN_IGNORE_DEPRECATIONS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-GNUC-END-IGNORE-DEPRECATIONS:CAPS" title="LT_GNUC_END_IGNORE_DEPRECATIONS">LT_GNUC_END_IGNORE_DEPRECATIONS</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-DIR-SEPARATOR-S:CAPS" title="LT_DIR_SEPARATOR_S">LT_DIR_SEPARATOR_S</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-DIR-SEPARATOR:CAPS" title="LT_DIR_SEPARATOR">LT_DIR_SEPARATOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-SEARCHPATH-SEPARATOR-S:CAPS" title="LT_SEARCHPATH_SEPARATOR_S">LT_SEARCHPATH_SEPARATOR_S</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-SEARCHPATH-SEPARATOR:CAPS" title="LT_SEARCHPATH_SEPARATOR">LT_SEARCHPATH_SEPARATOR</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-MAX:CAPS" title="LT_MAX">LT_MAX</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-MIN:CAPS" title="LT_MIN">LT_MIN</a></td>
</tr>
<tr>
<td class="define_keyword">#define</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-PATH-MAX:CAPS" title="LT_PATH_MAX">LT_PATH_MAX</a></td>
</tr>
<tr>
<td class="typedef_keyword">typedef</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#ssize-t" title="ssize_t">ssize_t</a></td>
</tr>
<tr>
<td class="typedef_keyword">typedef</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t">lt_pointer_t</a></td>
</tr>
<tr>
<td class="typedef_keyword">typedef</td>
<td class="function_name"><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-bool-t" title="lt_bool_t">lt_bool_t</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="liblangtag-Miscellaneous-Macros.description"></a><h2>Description</h2>
<p>These macros provide more specialized features which are not needed so often
by application programmers.</p>
</div>
<div class="refsect1">
<a name="liblangtag-Miscellaneous-Macros.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="LT-GNUC-PRINTF:CAPS"></a><h3>LT_GNUC_PRINTF()</h3>
<pre class="programlisting">#define LT_GNUC_PRINTF(format_idx, arg_idx)</pre>
<p>Expands to the GNU C <code class="literal">format</code> function attribute if
the compiler is <span class="command"><strong>gcc</strong></span>. This is used for declaring
functions which take a variable number of arguments, with the same
syntax as <code class="function"><code class="function">printf()</code></code>.
It allows the compiler to type-check the arguments passed to the function.
See the GNU C documentation for details.</p>
<div class="refsect3">
<a name="LT-GNUC-PRINTF.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>format_idx</p></td>
<td class="parameter_description"><p>the index of the argument corresponding to the format string.
(The arguments are numberered from 1).</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>arg_idx</p></td>
<td class="parameter_description"><p>the index of the first of the format arguments.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="LT-LIKELY:CAPS"></a><h3>LT_LIKELY()</h3>
<pre class="programlisting"># define LT_LIKELY(_e_) (__builtin_expect (_LT_BOOLEAN_EXPR (_e_), 1))
</pre>
<p>Hints the compiler that the expression is likely to evaluate to a true value.
The compiler may use this information for optimizations.</p>
<div class="refsect3">
<a name="LT-LIKELY.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>_e_</p></td>
<td class="parameter_description"><p>the expression</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="LT-LIKELY.returns"></a><h4>Returns</h4>
<p> the value of <em class="parameter"><code>expr</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="LT-UNLIKELY:CAPS"></a><h3>LT_UNLIKELY()</h3>
<pre class="programlisting"># define LT_UNLIKELY(_e_) (__builtin_expect (_LT_BOOLEAN_EXPR (_e_), 0))
</pre>
<p>Hints the compiler that the expression is unlikely to evaluate to a true
value. The compiler may use this information for optimizations.</p>
<div class="refsect3">
<a name="LT-UNLIKELY.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>_e_</p></td>
<td class="parameter_description"><p>the expression</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="LT-UNLIKELY.returns"></a><h4>Returns</h4>
<p> the value of <em class="parameter"><code>expr</code></em>
.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="LT-GNUC-DEPRECATED-FOR:CAPS"></a><h3>LT_GNUC_DEPRECATED_FOR()</h3>
<pre class="programlisting">#define LT_GNUC_DEPRECATED_FOR(f) __attribute__((deprecated("Use " #f " instead")))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-ALIGNED-TO:CAPS"></a><h3>LT_ALIGNED_TO()</h3>
<pre class="programlisting">#define LT_ALIGNED_TO(_x_,_y_) (((_x_) + (_y_) - 1) & ~((_y_) - 1))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-ALIGNED-TO-POINTER:CAPS"></a><h3>LT_ALIGNED_TO_POINTER()</h3>
<pre class="programlisting">#define LT_ALIGNED_TO_POINTER(_x_) LT_ALIGNED_TO ((_x_), ALIGNOF_VOID_P)
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-N-ELEMENTS:CAPS"></a><h3>LT_N_ELEMENTS()</h3>
<pre class="programlisting">#define LT_N_ELEMENTS(_x_) (sizeof (_x_) / sizeof ((_x_)[0]))
</pre>
<p>Determines the number of elements in an array. The array must be
declared so the compiler knows its size at compile-time; this
macro will not work on an array allocated on the heap, only static
arrays or arrays on the stack.</p>
<div class="refsect3">
<a name="LT-N-ELEMENTS.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>_x_</p></td>
<td class="parameter_description"><p>the array</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="LT-N-ELEMENTS.returns"></a><h4>Returns</h4>
<p> the number of elements.</p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="LT-BREAKPOINT:CAPS"></a><h3>LT_BREAKPOINT</h3>
<pre class="programlisting">#define LT_BREAKPOINT()</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-ASSERT-STATIC:CAPS"></a><h3>LT_ASSERT_STATIC()</h3>
<pre class="programlisting">#define LT_ASSERT_STATIC(_x_) _LT_ASSERT_STATIC0 (__LINE__, (_x_))
</pre>
</div>
<hr>
<div class="refsect2">
<a name="lt-copy-func-t"></a><h3>lt_copy_func_t ()</h3>
<pre class="programlisting"><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t"><span class="returnvalue">lt_pointer_t</span></a>
<span class="c_punctuation">(</span>*lt_copy_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t"><span class="type">lt_pointer_t</span></a> data</code></em>);</pre>
<p>The type of callback function used for copying <em class="parameter"><code>data</code></em>
.</p>
<div class="refsect3">
<a name="lt-copy-func-t.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>the object to be copied.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lt-destroy-func-t"></a><h3>lt_destroy_func_t ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
<span class="c_punctuation">(</span>*lt_destroy_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code><a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t"><span class="type">lt_pointer_t</span></a> data</code></em>);</pre>
<p>The type of callback function used for destroying <em class="parameter"><code>data</code></em>
.</p>
<div class="refsect3">
<a name="lt-destroy-func-t.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>data</p></td>
<td class="parameter_description"><p>the object to be destroyed.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="lt-compare-func-t"></a><h3>lt_compare_func_t ()</h3>
<pre class="programlisting"><span class="returnvalue">int</span>
<span class="c_punctuation">(</span>*lt_compare_func_t<span class="c_punctuation">)</span> (<em class="parameter"><code>const <a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t"><span class="type">lt_pointer_t</span></a> v1</code></em>,
<em class="parameter"><code>const <a class="link" href="liblangtag-Miscellaneous-Macros.html#lt-pointer-t" title="lt_pointer_t"><span class="type">lt_pointer_t</span></a> v2</code></em>);</pre>
<p>The type of callback function used for comparing objects.</p>
<div class="refsect3">
<a name="lt-compare-func-t.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>v1</p></td>
<td class="parameter_description"><p>the object to compare with <em class="parameter"><code>v2</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>v2</p></td>
<td class="parameter_description"><p>the object to compare with <em class="parameter"><code>v1</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="liblangtag-Miscellaneous-Macros.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="LT-BEGIN-DECLS:CAPS"></a><h3>LT_BEGIN_DECLS</h3>
<pre class="programlisting"># define LT_BEGIN_DECLS extern "C" {
</pre>
<p>Used (along with <a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-END-DECLS:CAPS" title="LT_END_DECLS"><span class="type">LT_END_DECLS</span></a>) to bracket header files. If the
compiler in use is a C++ compiler, adds <code class="literal">extern "C"</code>
around the header.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-END-DECLS:CAPS"></a><h3>LT_END_DECLS</h3>
<pre class="programlisting"># define LT_END_DECLS }
</pre>
<p>Used (along with <a class="link" href="liblangtag-Miscellaneous-Macros.html#LT-BEGIN-DECLS:CAPS" title="LT_BEGIN_DECLS"><span class="type">LT_BEGIN_DECLS</span></a>) to bracket header files. If the
compiler in use is a C++ compiler, adds <code class="literal">extern "C"</code>
around the header.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-STMT-START:CAPS"></a><h3>LT_STMT_START</h3>
<pre class="programlisting"># define LT_STMT_START do
</pre>
<p>Used within multi-statement macros so that they can be used in places where
only on statement is expected by the compiler.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-STMT-END:CAPS"></a><h3>LT_STMT_END</h3>
<pre class="programlisting"># define LT_STMT_END while (0)
</pre>
<p>Used within multi-statement macros so that they can be used in places where
only on statement is expected by the compiler.</p>
</div>
<hr>
<div class="refsect2">
<a name="inline"></a><h3>inline</h3>
<pre class="programlisting"># define inline __inline__
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-INLINE-FUNC:CAPS"></a><h3>LT_INLINE_FUNC</h3>
<pre class="programlisting"># define LT_INLINE_FUNC static __inline __attribute__ ((unused))
</pre>
<p>This macro is used to export function prototypes so they can be linked
with an external version when no inlining is performed.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-GNUC-UNUSED:CAPS"></a><h3>LT_GNUC_UNUSED</h3>
<pre class="programlisting">#define LT_GNUC_UNUSED</pre>
<p>Expands to the GNU C unused function attribute if the compiler is gcc.
It is used for declaring functions and arguments which may never be used.
It avoids possible compiler warnings.</p>
<p>For functions, place the attribute after the declaration, just before the
semicolon. For arguments, place the attribute at the beginning of the
argument declaration.</p>
<div class="informalexample">
<table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td class="listing_lines" align="right"><pre>1
2</pre></td>
<td class="listing_code"><pre class="programlisting"><span class="kt">void</span><span class="w"> </span><span class="nf">my_unused_function</span><span class="w"> </span><span class="p">(</span><span class="n">LT_GNUC_UNUSED</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">unused_argument</span><span class="p">,</span>
<span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">other</span><span class="w"> </span><span class="n">argument</span><span class="p">)</span><span class="w"> </span><span class="n">LT_GNUC_UNUSED</span><span class="p">;</span></pre></td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p>See the GNU C documentation for more details.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-GNUC-NULL-TERMINATED:CAPS"></a><h3>LT_GNUC_NULL_TERMINATED</h3>
<pre class="programlisting">#define LT_GNUC_NULL_TERMINATED</pre>
<p>Expands to the GNU C <code class="literal">sentinel</code> function attribute
if the compiler is <span class="command"><strong>gcc</strong></span>, or "" if it isn't.
This function attribute only applies to variadic functions and instructs
the compiler to check that the argument list is terminated with an
explicit <code class="literal">NULL</code>.
See the GNU C documentation for details.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-GNUC-DEPRECATED:CAPS"></a><h3>LT_GNUC_DEPRECATED</h3>
<pre class="programlisting">#define LT_GNUC_DEPRECATED __attribute__((__deprecated__))
</pre>
<p>Expands to the GNU C deprecated attribute if the compiler is gcc.
It can be used to mark typedefs, variables and functions as deprecated.
When called with the <code class="literal">-Wdeprecated-declarations</code> option.
gcc will generate warnings when deprecated interfaces are used.</p>
<p>Place the attribute after the declaration, just before the semicolon.</p>
<p>See the GNU C documentation for more details.</p>
</div>
<hr>
<div class="refsect2">
<a name="LT-GNUC-BEGIN-IGNORE-DEPRECATIONS:CAPS"></a><h3>LT_GNUC_BEGIN_IGNORE_DEPRECATIONS</h3>
<pre class="programlisting">#define LT_GNUC_BEGIN_IGNORE_DEPRECATIONS</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-GNUC-END-IGNORE-DEPRECATIONS:CAPS"></a><h3>LT_GNUC_END_IGNORE_DEPRECATIONS</h3>
<pre class="programlisting">#define LT_GNUC_END_IGNORE_DEPRECATIONS</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-DIR-SEPARATOR-S:CAPS"></a><h3>LT_DIR_SEPARATOR_S</h3>
<pre class="programlisting"># define LT_DIR_SEPARATOR_S "\\"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-DIR-SEPARATOR:CAPS"></a><h3>LT_DIR_SEPARATOR</h3>
<pre class="programlisting"># define LT_DIR_SEPARATOR '\\'
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-SEARCHPATH-SEPARATOR-S:CAPS"></a><h3>LT_SEARCHPATH_SEPARATOR_S</h3>
<pre class="programlisting"># define LT_SEARCHPATH_SEPARATOR_S ";"
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-SEARCHPATH-SEPARATOR:CAPS"></a><h3>LT_SEARCHPATH_SEPARATOR</h3>
<pre class="programlisting"># define LT_SEARCHPATH_SEPARATOR ';'
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-MAX:CAPS"></a><h3>LT_MAX</h3>
<pre class="programlisting"># define LT_MAX MAX
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-MIN:CAPS"></a><h3>LT_MIN</h3>
<pre class="programlisting"># define LT_MIN MIN
</pre>
</div>
<hr>
<div class="refsect2">
<a name="LT-PATH-MAX:CAPS"></a><h3>LT_PATH_MAX</h3>
<pre class="programlisting">#define LT_PATH_MAX 512
</pre>
</div>
<hr>
<div class="refsect2">
<a name="ssize-t"></a><h3>ssize_t</h3>
<pre class="programlisting">typedef signed long long ssize_t;
</pre>
</div>
<hr>
<div class="refsect2">
<a name="lt-pointer-t"></a><h3>lt_pointer_t</h3>
<pre class="programlisting">typedef void * lt_pointer_t;
</pre>
<p>The type of object pointer.</p>
</div>
<hr>
<div class="refsect2">
<a name="lt-bool-t"></a><h3>lt_bool_t</h3>
<pre class="programlisting">typedef int lt_bool_t;
</pre>
<p>The type of boolean value.</p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.34.0</div>
</body>
</html>
|