1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

22 commits

Author SHA1 Message Date
Richard M. Stallman
05be3f1a8a (search_magic_path): Fix colon-colon case. 1993-11-23 03:23:05 +00:00
Roland McGrath
18160b98ce Include <config.h> instead of "config.h". 1993-09-10 06:15:46 +00:00
Richard M. Stallman
abfc2e5fd2 (x_get_customization_string): Don't use value of strcpy. 1993-08-10 21:16:01 +00:00
Jim Blandy
d8717d1508 * config.h.in (HAVE_XSCREENRESOURCESTRING): New #undef for
configure to edit.
* xrdb.c (get_user_db): Test it to decide whether or not to try to
retrieve the screen-dependent resources.
1993-07-31 01:31:46 +00:00
Richard M. Stallman
73fc0935f0 (getpwuid): Test DECLARE_GETPWUID_WITH_UID_T. 1993-07-22 22:03:11 +00:00
Jim Blandy
837255fb49 Implement search for app-defaults directory and
localized default databases, along with some other functionality
provided by Xt.
#include <stdio.h>, since we call sprintf.
[emacs] (malloc, realloc, free): #define these to xmalloc,
xrealloc, and xfree.
(x_get_string_resource, file_p): Add forward declarations for these.
(x_customization_string): New variable.
(x_get_customization_string): New function.
(gethomedir): Return malloc'ed space of the right size, instead of
writing into a fixed-size buffer; this means that our callers do
not impose an arbitrary limit on file name length.
(magic_file_p): Rewrite of decode_magic; actually do the
substitutions, instead of expanding all %-escapes to "".  Support
the customization string.  Return 0 or the expanded file name,
instead of just zero or one.  Allocate the space for the expanded
file name ourselves, instead of writing into a fixed-size buffer
passed to us; this removes an arbitrary limit.
(search_magic_path): Rewrite of magic_searchpath_decoder.  Return
0 or the expanded file name, instead of just zero or one.
Allocate the space for the expanded file name ourselves, instead
of writing into a fixed-size buffer passed to us; this means that
our callers do not impose an arbitrary limit on file name length.
(get_system_app): Changed to work with search_magic_path.
(get_user_app): Rewritten to work with search_magic_path, and not
to assume that the values of XAPPLRESDIR is a single directory.
(get_user_db): Properly use the new version of gethomedir.
(get_environ_db): Remove arbitrary limit on length of host name.
(x_load_resources): Take a new argument, myname.
Call get_user_db early to obtain the customization string.
Changes to stand-alone testing code.
1993-07-22 22:00:48 +00:00
Jim Blandy
fdce0b3948 * xrdb.c (get_user_db): Remember to free the screen-local resource
string after we've merged its data into db.
1993-06-22 03:44:28 +00:00
Jim Blandy
9b37b1c26c * xrdb.c (get_user_db): Get the screen-specific database too. 1993-06-11 16:20:38 +00:00
Richard M. Stallman
3e0be4d0f2 [__bsdi__]: Alternate decls of getpwuid and getpwnam. 1993-05-31 23:50:17 +00:00
Richard M. Stallman
44bbb3e05b (magic_searchpath_decoder): Fix typos. 1993-05-26 22:12:18 +00:00
Jim Blandy
c6c5df7f76 Updated copyright years. 1993-05-22 21:34:42 +00:00
Jim Blandy
2c8d1900af * xrdb.c (get_user_db): Since xrdb.c doesn't #include xterm.h,
we can't test HAVE_X11R4 to see how we should get the resource
	manager string; cheat.
1993-03-11 07:18:48 +00:00
Jim Blandy
3d5d61aef4 * xrdb.c (getuid): Remove declaration. 1993-02-22 15:10:16 +00:00
Jim Blandy
54c908b57c * xterm.c, xrdb.c: #include <stdio.h> before "xterm.h", to avoid
warnings about redefining NULL under GCC 2.2.2.
1992-10-11 06:44:42 +00:00
Jim Blandy
41ab0754d3 * xrdb.c (x_get_resource): Cast the value being assigned to
ret_value->addr, rather than ret_value->addr itself; only GCC
	allows you to cast lvalues.
1992-09-22 06:43:04 +00:00
Jim Blandy
dfc35f5fca * xrdb.c: Don't include <X11/Xos.h>. Under R4, it stupidly
insists on defining SIGCHLD, even if it already has a definition.
	(file_p): Use the constant 4 instead of R_OK; empirically, the
	number is more portable than the symbol if you count the #include
	hair you have to go through to get R_OK defined.  Ffile_readable_p
	does this too.

	* xrdb.c (getuid): Declare this to return short.
1992-09-13 12:48:38 +00:00
Jim Blandy
b631f17789 * xrdb.c (get_user_db): Use XResourceManagerString when available
[HAVE_X11R4].
1992-08-29 03:28:52 +00:00
Jim Blandy
a2a4d43e4c * xrdb.c [USG5]: Define SYSV, and then include <unistd.h>. I
wish I knew why.
	Don't include <sys/types.h>; just declare getuid to return an
    	int.  Big deal.
	(MAXPATHLEN): If this is not defined by the system's include
    	files, give it a value of 256.
	(get_user_db): Fetch the defaults directly from the display
    	structure, rather than using XResourceManagerString; that
    	function doesn't exist in the older versions of X.
1992-08-19 06:51:17 +00:00
Jim Blandy
d4327fecc1 entered into RCS 1992-04-24 08:11:28 +00:00
Jim Blandy
531ff25498 *** empty log message *** 1992-02-21 16:19:12 +00:00
Jim Blandy
265a9e559d *** empty log message *** 1992-01-13 21:48:08 +00:00
Jim Blandy
f3a0bf5c13 Initial revision 1991-01-05 19:03:03 +00:00