Ethereal-cvs: [Ethereal-cvs] cvs commit: ethereal config.h.win32 file.c prefs.c util.c util.h

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Guy Harris <guy@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 21 Aug 2001 01:39:16 -0500 (CDT)
guy         2001/08/21 01:39:16 CDT

  Modified files:
    .                    config.h.win32 file.c prefs.c util.c 
                         util.h 
  Log:
  On Windows, use the directory in which the binary resides as the
  directory in which global data files are stored.  If an installed binary
  is being run, that's the correct directory for them; if a build-tree
  binary is being run, the "manuf" file will be there, and you can put
  other data files there as well, if necessary.
  
  Do the same with plugins, except that, if there's no
  "plugins\\{version}" subdirectory of that directory, fall back on the
  default installation directory, so you at least have a place where you
  can put plugins for use by build-tree binaries.  (Should we, instead,
  have the Windows build procedure create a subdirectory of the "plugins"
  source directory, with the plugin version number as its name, and copy
  the plugins there, so you'd use the build-tree plugin binaries?)
  
  Move "test_for_directory()" out of "util.c" and into
  "epan/filesystem.c", with the other file system access portability
  wrappers and convenience routines.  Fix "util.h" not to declare it - or
  other routines moved to "epan/filesystem.c" a while ago.
  
  Revision  Changes    Path
  1.32      +1 -3      ethereal/config.h.win32
  1.244     +2 -1      ethereal/file.c
  1.61      +14 -7     ethereal/prefs.c
  1.52      +2 -48     ethereal/util.c
  1.24      +2 -35     ethereal/util.h