Changeset 5812:869af8b6761a in roaraudio


Ignore:
Timestamp:
01/05/13 01:34:18 (8 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

improved roar_libroar_get_path() slightly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libroar/config.c

    r5810 r5812  
    442442 const int    with_provider; 
    443443} __paths[] = { 
    444  {"prefix",     ROAR_PREFIX, 0, 0}, 
    445  {"prefix-bin", ROAR_PREFIX_BIN, 0, 0}, 
    446  {"prefix-sbin", ROAR_PREFIX_SBIN, 0, 0}, 
    447  {"prefix-lib", ROAR_PREFIX_LIB, 0, 0}, 
    448  {"prefix-inc", ROAR_PREFIX_INC, 0, 0}, 
    449  {"prefix-man", ROAR_PREFIX_MAN, 0, 0}, 
    450  {"prefix-man1", ROAR_PREFIX_MAN "/man1", 0, 0}, 
    451  {"prefix-man2", ROAR_PREFIX_MAN "/man2", 0, 0}, 
    452  {"prefix-man3", ROAR_PREFIX_MAN "/man3", 0, 0}, 
    453  {"prefix-man4", ROAR_PREFIX_MAN "/man4", 0, 0}, 
    454  {"prefix-man5", ROAR_PREFIX_MAN "/man5", 0, 0}, 
    455  {"prefix-man6", ROAR_PREFIX_MAN "/man6", 0, 0}, 
    456  {"prefix-man7", ROAR_PREFIX_MAN "/man7", 0, 0}, 
    457  {"prefix-man8", ROAR_PREFIX_MAN "/man8", 0, 0}, 
    458  {"prefix-man9", ROAR_PREFIX_MAN "/man9", 0, 0}, 
     444 {"prefix",             ROAR_PREFIX, 0, 0}, 
     445 {"prefix-bin",         ROAR_PREFIX_BIN, 0, 0}, 
     446 {"prefix-sbin",        ROAR_PREFIX_SBIN, 0, 0}, 
     447 {"prefix-lib",         ROAR_PREFIX_LIB, 0, 0}, 
     448 {"prefix-inc",         ROAR_PREFIX_INC, 0, 0}, 
     449 {"prefix-man",         ROAR_PREFIX_MAN, 0, 0}, 
     450 {"prefix-man1",        ROAR_PREFIX_MAN "/man1", 0, 0}, 
     451 {"prefix-man2",        ROAR_PREFIX_MAN "/man2", 0, 0}, 
     452 {"prefix-man3",        ROAR_PREFIX_MAN "/man3", 0, 0}, 
     453 {"prefix-man4",        ROAR_PREFIX_MAN "/man4", 0, 0}, 
     454 {"prefix-man5",        ROAR_PREFIX_MAN "/man5", 0, 0}, 
     455 {"prefix-man6",        ROAR_PREFIX_MAN "/man6", 0, 0}, 
     456 {"prefix-man7",        ROAR_PREFIX_MAN "/man7", 0, 0}, 
     457 {"prefix-man8",        ROAR_PREFIX_MAN "/man8", 0, 0}, 
     458 {"prefix-man9",        ROAR_PREFIX_MAN "/man9", 0, 0}, 
    459459 {"prefix-pc",          ROAR_PREFIX_PC, 0, 0}, 
    460460 {"prefix-ckport",      ROAR_PREFIX_CKPORT, 0, 0}, 
    461  {"prefix-sysconf",     ROAR_PREFIX_SYSCONF, 0, 0}, 
     461 {"prefix-sysconf",     ROAR_PREFIX_SYSCONF, 2, 0}, 
    462462 {"prefix-dev",         ROAR_PREFIX_DEV, 0, 0}, 
    463463 {"prefix-doc",         ROAR_PREFIX_DOC, 2, 0}, 
     
    555555 
    556556char * roar_libroar_get_path(const char * name, int null_as_universal, const char * product, const char * provider) { 
    557  char buf_product[1024]; 
    558  char buf_provider[1024]; 
     557 char buf_product[384]; 
     558 char buf_provider[384]; 
    559559 ssize_t len_prefix, len_product, len_provider; 
    560560 size_t i; 
Note: See TracChangeset for help on using the changeset viewer.