Mercurial > emacs
changeset 29803:3dec4cd5e361
Don't declare xmalloc, xrealloc.
author | Sam Steingold <sds@gnu.org> |
---|---|
date | Tue, 20 Jun 2000 18:17:05 +0000 |
parents | 41e64655279b |
children | d8776351a540 |
files | src/ChangeLog src/xrdb.c |
diffstat | 2 files changed, 11 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/src/xrdb.c Tue Jun 20 17:06:32 2000 +0000 +++ b/src/xrdb.c Tue Jun 20 18:17:05 2000 +0000 @@ -89,7 +89,6 @@ #define malloc xmalloc #define realloc xrealloc #define free xfree -extern long *xmalloc (), *xrealloc (); #endif char *x_get_string_resource (); @@ -227,11 +226,11 @@ free (path); return NULL; } - + next = lang; next_len = strlen (next); break; - + case 't': case 'c': free (path); @@ -247,7 +246,7 @@ path_size = (path_len + next_len + 1) * 2; path = (char *) realloc (path, path_size); } - + bcopy (next, path + path_len, next_len); path_len += next_len; @@ -309,7 +308,7 @@ ptr = pw->pw_dir; } - if (ptr == NULL) + if (ptr == NULL) return "/"; copy = (char *) malloc (strlen (ptr) + 2); @@ -333,7 +332,7 @@ /* Find the first element of SEARCH_PATH which exists and is readable, - after expanding the %-escapes. Return 0 if we didn't find any, and + after expanding the %-escapes. Return 0 if we didn't find any, and the path name of the one we found otherwise. */ static char * @@ -346,7 +345,7 @@ { for (p = s; *p && *p != ':'; p++) ; - + if (p > s) { char *path = magic_file_p (s, p - s, class, escaped_suffix, suffix); @@ -419,7 +418,7 @@ || ((path = getenv ("XAPPLRESDIR")) && ((file = search_magic_path (path, class, "/%L/%N", 0)) || (file = search_magic_path (path, class, "/%N", 0)))) - + /* Check in the home directory. This is a bit of a hack; let's hope one's home directory doesn't contain any %-escapes. */ || (free_it = gethomedir (), @@ -542,7 +541,7 @@ /* Add some font defaults. If the font `helv' doesn't exist, widgets will use some other default font. */ #ifdef USE_MOTIF - + sprintf (line, "%s*fontList: %s", myname, helv); XrmPutLineResource (&rdb, line); sprintf (line, "%s*menu*background: grey75", myname); @@ -585,7 +584,7 @@ } #else /* not USE_MOTIF */ - + sprintf (line, "Emacs.dialog*.font: %s", helv); XrmPutLineResource (&rdb, line); sprintf (line, "Emacs.dialog*.background: grey75"); @@ -596,7 +595,7 @@ XrmPutLineResource (&rdb, line); sprintf (line, "Emacs*verticalScrollBar.background: grey75"); XrmPutLineResource (&rdb, line); - + #endif /* not USE_MOTIF */ user_database = get_user_db (display); @@ -631,7 +630,7 @@ db = get_environ_db (); if (db != NULL) XrmMergeDatabases (db, &rdb); - + /* Last, merge in any specification from the command line. */ if (xrm_string != NULL) {