Changeset 1391 for branches/GNU/src/gcc/libiberty/functions.texi
- Timestamp:
- Apr 27, 2004, 8:39:34 PM (21 years ago)
- Location:
- branches/GNU/src/gcc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/gcc
- Property svn:ignore
-
old new 26 26 configure.vr 27 27 configure.vrs 28 dir.info 28 29 Makefile 29 dir.info30 30 lost+found 31 31 update.out
-
- Property svn:ignore
-
branches/GNU/src/gcc/libiberty/functions.texi
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r1390 r1391 277 277 @end deftypefn 278 278 279 @c getruntime.c: 78279 @c getruntime.c:82 280 280 @deftypefn Replacement long get_run_time (void) 281 281 … … 318 318 @end deftypefn 319 319 320 @c hex.c:25 321 @deftypefn Extension void hex_init (void) 322 323 Initializes the array mapping the current character set to 324 corresponding hex values. This function must be called before any 325 call to @code{hex_p} or @code{hex_value}. If you fail to call it, a 326 default ASCII-based table will normally be used on ASCII systems. 327 328 @end deftypefn 329 330 @c hex.c:34 331 @deftypefn Extension int hex_p (int @var{c}) 332 333 Evaluates to non-zero if the given character is a valid hex character, 334 or zero if it is not. Note that the value you pass will be cast to 335 @code{unsigned char} within the macro. 336 337 @end deftypefn 338 339 @c hex.c:42 340 @deftypefn Extension int hex_value (int @var{c}) 341 342 Returns the numeric equivalent of the given character when interpreted 343 as a hexidecimal digit. The result is undefined if you pass an 344 invalid hex digit. Note that the value you pass will be cast to 345 @code{unsigned char} within the macro. 346 347 @end deftypefn 348 320 349 @c index.c:5 321 350 @deftypefn Supplemental char* index (char *@var{s}, int @var{c}) … … 361 390 In particular, the empty string returns the same empty string, 362 391 and a path ending in @code{/} returns the empty string after it. 392 393 @end deftypefn 394 395 @c make-relative-prefix.c:24 396 @deftypefn Extension {const char*} make_relative_prefix (const char *@var{progname}, const char *@var{bin_prefix}, const char *@var{prefix}) 397 398 Given three strings @var{progname}, @var{bin_prefix}, @var{prefix}, return a string 399 that gets to @var{prefix} starting with the directory portion of @var{progname} and 400 a relative pathname of the difference between @var{bin_prefix} and @var{prefix}. 401 402 For example, if @var{bin_prefix} is @code{/alpha/beta/gamma/gcc/delta}, @var{prefix} 403 is @code{/alpha/beta/gamma/omega/}, and @var{progname} is @code{/red/green/blue/gcc}, 404 then this function will return @code{/red/green/blue/../../omega/}. 405 406 The return value is normally allocated via @code{malloc}. If no relative prefix 407 can be found, return @code{NULL}. 408 409 @end deftypefn 410 411 @c lrealpath.c:25 412 @deftypefn Replacement {const char*} lrealpath (const char *@var{name}) 413 414 Given a pointer to a string containing a pathname, returns a canonical 415 version of the filename. Symlinks will be resolved, and ``.'' and ``..'' 416 components will be simplified. The returned value will be allocated using 417 @code{malloc}, or @code{NULL} will be returned on a memory allocation error. 418 419 @end deftypefn 420 421 @c make-relative-prefix.c:24 422 @deftypefn Extension {const char*} make_relative_prefix (const char *@var{progname}, const char *@var{bin_prefix}, const char *@var{prefix}) 423 424 Given three paths @var{progname}, @var{bin_prefix}, @var{prefix}, 425 return the path that is in the same position relative to 426 @var{progname}'s directory as @var{prefix} is relative to 427 @var{bin_prefix}. That is, a string starting with the directory 428 portion of @var{progname}, followed by a relative pathname of the 429 difference between @var{bin_prefix} and @var{prefix}. 430 431 If @var{progname} does not contain any directory separators, 432 @code{make_relative_prefix} will search @env{PATH} to find a program 433 named @var{progname}. Also, if @var{progname} is a symbolic link, 434 the symbolic link will be resolved. 435 436 For example, if @var{bin_prefix} is @code{/alpha/beta/gamma/gcc/delta}, 437 @var{prefix} is @code{/alpha/beta/gamma/omega/}, and @var{progname} is 438 @code{/red/green/blue/gcc}, then this function will return 439 @code{/red/green/blue/../../omega/}. 440 441 The return value is normally allocated via @code{malloc}. If no 442 relative prefix can be found, return @code{NULL}. 363 443 364 444 @end deftypefn -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.