home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-dist / octave-1.1.1p1-base.tgz / octave-1.1.1p1-base.tar / fsf / octave / kpathsea / db.h < prev    next >
C/C++ Source or Header  |  1994-03-13  |  1KB  |  44 lines

  1. /* db.h: lookups in an externally built db file.
  2.  
  3. Copyright (C) 1994 Karl Berry.
  4.  
  5. This program is free software; you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation; either version 2, or (at your option)
  8. any later version.
  9.  
  10. This program is distributed in the hope that it will be useful,
  11. but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13. GNU General Public License for more details.
  14.  
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to the Free Software
  17. Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
  18.  
  19. #ifndef KPATHSEA_DB_H
  20. #define KPATHSEA_DB_H
  21.  
  22. #include <kpathsea/c-proto.h>
  23. #include <kpathsea/types.h>
  24. #include <kpathsea/str-list.h>
  25.  
  26. /* It's not an error if this doesn't exist; we just go ahead and search
  27.    the actual directories.  */
  28. #ifndef DB_DIR
  29. #define DB_DIR "/usr/local/lib/texmf"
  30. #endif
  31. #ifndef DB_NAME
  32. #define DB_NAME "ls-R"
  33. #endif
  34.  
  35. /* Return list of matches for NAME in the external db file that
  36.    match PATH.  If ALL is set, return all matches, else the first.
  37.    
  38.    If there are no matches, returns a pointer to an empty list.
  39.    If the database can't be located, returns NULL.  */
  40. extern str_list_type *kpse_db_search P3H(const_string name, 
  41.                                         const_string path, boolean all);
  42.  
  43. #endif /* not KPATHSEA_DB_H */
  44.