Add binary relocation support for Windows platforms.
commit257ce0c78588e60147026634e6828f3a962ad034
authorWerner LEMBERG <wl@gnu.org>
Sat, 2 Apr 2005 12:49:11 +0000 (2 12:49 +0000)
committerWerner LEMBERG <wl@gnu.org>
Sat, 2 Apr 2005 12:49:11 +0000 (2 12:49 +0000)
tree9e40497fb4a6f7682cf54ce8a84bb58d41a7906a
parent49813ece0595211846f60ac3005a8403f626d57a
Add binary relocation support for Windows platforms.

* src/include/Makefile.sub (defs.h): Add `INSTALLPATH'.

* src/include/relocate.h, src/libs/libgroff/relocate.cpp: New files.

* src/libs/libgroff/searchpath.cpp: Handle `relocate'.
(search_path::search_path, search_path::open_file_cautious): Use
`relocate'.

* src/libs/libgroff/Makefile.sub (OBJS, CCSRCS),
src/include/Makefile.sub (HDRS): Updated.

* src/devices/grohtml/post-html.cpp: Don't use strdup/free but
strsave/a_delete.

* src/libs/libgroff/font.cpp: Replace strdup with strsave.

* src/libs/libgroff/maxfilename.cpp: Don't include limits.h since
lib.h already does it.

* src/libs/libgroff/maxpathname.cpp: New file, defining
path_name_max.

* src/include/lib.h: Add prototype for path_name_max.

* src/libs/libgroff/Makefile.sub (OBJS, CCSRCS): Updated.

* src/include/nonposix.h (PATH_EXT): New macro.
12 files changed:
ChangeLog
src/devices/grohtml/post-html.cpp
src/include/Makefile.sub
src/include/lib.h
src/include/nonposix.h
src/include/relocate.h [new file with mode: 0644]
src/libs/libgroff/Makefile.sub
src/libs/libgroff/font.cpp
src/libs/libgroff/maxfilename.cpp
src/libs/libgroff/maxpathname.cpp [copied from src/libs/libgroff/maxfilename.cpp with 58% similarity]
src/libs/libgroff/relocate.cpp [new file with mode: 0644]
src/libs/libgroff/searchpath.cpp