mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
Install headers in gnustep not gnustep/base.
Minor bug fixes. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@2662 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f94d2e62af
commit
29ce1ddd8a
9 changed files with 59 additions and 35 deletions
18
ChangeLog
18
ChangeLog
|
@ -1,3 +1,21 @@
|
||||||
|
Fri Nov 28 12:52:06 1997 Scott Christley <scottc@net-community.com>
|
||||||
|
|
||||||
|
* Tools/GNUmakefile (OBJC_PROGRAM_NAME): Reverse prior change.
|
||||||
|
* Tools/Makefile.postamble (after-install): Install gdomap
|
||||||
|
from the proper directory.
|
||||||
|
* checks/nsattributesstring.m (NSFontAttributeName): New variable.
|
||||||
|
(NSForegroundColorAttributeName): New variable.
|
||||||
|
(NSBackgroundColorAttributeName): New variable.
|
||||||
|
|
||||||
|
* src/GNUmakefile: Install headers in gnustep not gnustep/base.
|
||||||
|
* src/Makefile.preamble (ADDITIONAL_INSTALL_DIRS): Likewise.
|
||||||
|
|
||||||
|
* src/NSTimeZone.m (LOCALDBKEY, ZONES_DIR): Make NSStrings.
|
||||||
|
(+getTimeZoneFile:): ZONES_DIR is NSString.
|
||||||
|
|
||||||
|
* src/o_map.m (INLINE): Use macro so its easy to un-inline
|
||||||
|
functions if debugging.
|
||||||
|
|
||||||
Wed Nov 26 16:08:20 1997 Adam Fedor <fedor@doc.com>
|
Wed Nov 26 16:08:20 1997 Adam Fedor <fedor@doc.com>
|
||||||
|
|
||||||
* Tools/GNUmakefile (OBJC-PROGRAM_NAME): Change from underscore.
|
* Tools/GNUmakefile (OBJC-PROGRAM_NAME): Change from underscore.
|
||||||
|
|
|
@ -485,7 +485,7 @@ libgnustep-base_OBJC_FILES = $(GNU_MFILES) $(NEXTSTEP_MFILES) \
|
||||||
$(BASE_MFILES) $(NSVALUE_MFILES) $(NSNUMBER_MFILES)
|
$(BASE_MFILES) $(NSVALUE_MFILES) $(NSNUMBER_MFILES)
|
||||||
|
|
||||||
libgnustep-base_HEADER_FILES_DIR = .
|
libgnustep-base_HEADER_FILES_DIR = .
|
||||||
libgnustep-base_HEADER_FILES_INSTALL_DIR = /gnustep/base
|
libgnustep-base_HEADER_FILES_INSTALL_DIR = /gnustep
|
||||||
|
|
||||||
libgnustep-base_HEADER_FILES = $(NEXTSTEP_HEADERS) $(BASE_HEADERS)
|
libgnustep-base_HEADER_FILES = $(NEXTSTEP_HEADERS) $(BASE_HEADERS)
|
||||||
|
|
||||||
|
|
|
@ -225,4 +225,3 @@ copy-dist: $(DIST_FILES)
|
||||||
ln AUTHORS ../snap
|
ln AUTHORS ../snap
|
||||||
|
|
||||||
FORCE:
|
FORCE:
|
||||||
|
|
||||||
|
|
|
@ -62,8 +62,7 @@ ADDITIONAL_LIB_DIRS =
|
||||||
#
|
#
|
||||||
|
|
||||||
# Additional directories to be created during installation
|
# Additional directories to be created during installation
|
||||||
ADDITIONAL_INSTALL_DIRS = $(GNUSTEP_HEADERS)/gnustep \
|
ADDITIONAL_INSTALL_DIRS = $(GNUSTEP_HEADERS)/gnustep/base \
|
||||||
$(GNUSTEP_HEADERS)/gnustep/base \
|
$(GNUSTEP_HEADERS)/gnustep/Foundation \
|
||||||
$(GNUSTEP_HEADERS)/gnustep/base/Foundation \
|
$(GNUSTEP_HEADERS)/gnustep/objc \
|
||||||
$(GNUSTEP_HEADERS)/gnustep/base/objc \
|
$(GNUSTEP_HEADERS)/gnustep/unicode \
|
||||||
$(GNUSTEP_HEADERS)/gnustep/base/unicode \
|
|
||||||
|
|
|
@ -66,7 +66,7 @@
|
||||||
|
|
||||||
|
|
||||||
/* Key for local time zone in user defaults. */
|
/* Key for local time zone in user defaults. */
|
||||||
#define LOCALDBKEY "Local Time Zone"
|
#define LOCALDBKEY @"Local Time Zone"
|
||||||
|
|
||||||
/* Directory that contains the time zone data. */
|
/* Directory that contains the time zone data. */
|
||||||
#define TIME_ZONE_DIR @"gnustep/NSTimeZones"
|
#define TIME_ZONE_DIR @"gnustep/NSTimeZones"
|
||||||
|
@ -87,7 +87,7 @@
|
||||||
#define LOCAL_TIME_FILE @"localtime"
|
#define LOCAL_TIME_FILE @"localtime"
|
||||||
|
|
||||||
/* Directory that contains the actual time zones. */
|
/* Directory that contains the actual time zones. */
|
||||||
#define ZONES_DIR "zones/"
|
#define ZONES_DIR @"zones/"
|
||||||
|
|
||||||
|
|
||||||
@class NSInternalTimeTransition;
|
@class NSInternalTimeTransition;
|
||||||
|
@ -519,7 +519,7 @@ decode (const void *ptr)
|
||||||
zoneDictionary = [[NSMutableDictionary alloc] init];
|
zoneDictionary = [[NSMutableDictionary alloc] init];
|
||||||
|
|
||||||
localZoneString = [[NSUserDefaults standardUserDefaults]
|
localZoneString = [[NSUserDefaults standardUserDefaults]
|
||||||
stringForKey: @LOCALDBKEY];
|
stringForKey: LOCALDBKEY];
|
||||||
if (localZoneString == nil)
|
if (localZoneString == nil)
|
||||||
/* Try to get timezone from environment. */
|
/* Try to get timezone from environment. */
|
||||||
localZoneString = [[[NSProcessInfo processInfo]
|
localZoneString = [[[NSProcessInfo processInfo]
|
||||||
|
@ -892,7 +892,7 @@ decode (const void *ptr)
|
||||||
|
|
||||||
+ (NSString*)getTimeZoneFile: (NSString *)name
|
+ (NSString*)getTimeZoneFile: (NSString *)name
|
||||||
{
|
{
|
||||||
NSString *fileName = [NSString stringWithFormat: @"%s%@",
|
NSString *fileName = [NSString stringWithFormat: @"%@%@",
|
||||||
ZONES_DIR, name];
|
ZONES_DIR, name];
|
||||||
|
|
||||||
return [NSBundle pathForGNUstepResource: fileName
|
return [NSBundle pathForGNUstepResource: fileName
|
||||||
|
|
|
@ -30,11 +30,14 @@
|
||||||
#include <gnustep/base/o_hash.h>
|
#include <gnustep/base/o_hash.h>
|
||||||
#include <gnustep/base/o_map.h>
|
#include <gnustep/base/o_map.h>
|
||||||
|
|
||||||
|
/* To easily un-inline functions for debugging */
|
||||||
|
#define INLINE inline
|
||||||
|
|
||||||
/**** Function Implementations ***********************************************/
|
/**** Function Implementations ***********************************************/
|
||||||
|
|
||||||
/** Background functions **/
|
/** Background functions **/
|
||||||
|
|
||||||
static inline o_map_bucket_t *
|
static INLINE o_map_bucket_t *
|
||||||
_o_map_pick_bucket_for_key(o_map_t *map,
|
_o_map_pick_bucket_for_key(o_map_t *map,
|
||||||
o_map_bucket_t *buckets,
|
o_map_bucket_t *buckets,
|
||||||
size_t bucket_count,
|
size_t bucket_count,
|
||||||
|
@ -45,7 +48,7 @@ _o_map_pick_bucket_for_key(o_map_t *map,
|
||||||
% bucket_count);
|
% bucket_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline o_map_bucket_t *
|
static INLINE o_map_bucket_t *
|
||||||
_o_map_pick_bucket_for_node(o_map_t *map,
|
_o_map_pick_bucket_for_node(o_map_t *map,
|
||||||
o_map_bucket_t *buckets,
|
o_map_bucket_t *buckets,
|
||||||
size_t bucket_count,
|
size_t bucket_count,
|
||||||
|
@ -56,21 +59,21 @@ _o_map_pick_bucket_for_node(o_map_t *map,
|
||||||
% bucket_count);
|
% bucket_count);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline o_map_bucket_t *
|
static INLINE o_map_bucket_t *
|
||||||
_o_map_bucket_for_key(o_map_t *map, const void *key)
|
_o_map_bucket_for_key(o_map_t *map, const void *key)
|
||||||
{
|
{
|
||||||
return _o_map_pick_bucket_for_key(map, map->buckets,
|
return _o_map_pick_bucket_for_key(map, map->buckets,
|
||||||
map->bucket_count, key);
|
map->bucket_count, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline o_map_bucket_t *
|
static INLINE o_map_bucket_t *
|
||||||
_o_map_bucket_for_node(o_map_t *map, o_map_node_t *node)
|
_o_map_bucket_for_node(o_map_t *map, o_map_node_t *node)
|
||||||
{
|
{
|
||||||
return _o_map_pick_bucket_for_node(map, map->buckets,
|
return _o_map_pick_bucket_for_node(map, map->buckets,
|
||||||
map->bucket_count, node);
|
map->bucket_count, node);
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_link_node_into_bucket(o_map_bucket_t *bucket,
|
_o_map_link_node_into_bucket(o_map_bucket_t *bucket,
|
||||||
o_map_node_t *node)
|
o_map_node_t *node)
|
||||||
{
|
{
|
||||||
|
@ -84,7 +87,7 @@ _o_map_link_node_into_bucket(o_map_bucket_t *bucket,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_unlink_node_from_its_bucket(o_map_node_t *node)
|
_o_map_unlink_node_from_its_bucket(o_map_node_t *node)
|
||||||
{
|
{
|
||||||
if (node == node->bucket->first_node)
|
if (node == node->bucket->first_node)
|
||||||
|
@ -100,7 +103,7 @@ _o_map_unlink_node_from_its_bucket(o_map_node_t *node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_link_node_into_map(o_map_t *map,
|
_o_map_link_node_into_map(o_map_t *map,
|
||||||
o_map_node_t *node)
|
o_map_node_t *node)
|
||||||
{
|
{
|
||||||
|
@ -114,7 +117,7 @@ _o_map_link_node_into_map(o_map_t *map,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_unlink_node_from_its_map(o_map_node_t *node)
|
_o_map_unlink_node_from_its_map(o_map_node_t *node)
|
||||||
{
|
{
|
||||||
if (node == node->map->first_node)
|
if (node == node->map->first_node)
|
||||||
|
@ -130,7 +133,7 @@ _o_map_unlink_node_from_its_map(o_map_node_t *node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_add_node_to_bucket(o_map_bucket_t *bucket,
|
_o_map_add_node_to_bucket(o_map_bucket_t *bucket,
|
||||||
o_map_node_t *node)
|
o_map_node_t *node)
|
||||||
{
|
{
|
||||||
|
@ -147,7 +150,7 @@ _o_map_add_node_to_bucket(o_map_bucket_t *bucket,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_add_node_to_its_bucket(o_map_t *map,
|
_o_map_add_node_to_its_bucket(o_map_t *map,
|
||||||
o_map_node_t *node)
|
o_map_node_t *node)
|
||||||
{
|
{
|
||||||
|
@ -156,7 +159,7 @@ _o_map_add_node_to_its_bucket(o_map_t *map,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_add_node_to_map(o_map_t *map, o_map_node_t *node)
|
_o_map_add_node_to_map(o_map_t *map, o_map_node_t *node)
|
||||||
{
|
{
|
||||||
if (map != 0)
|
if (map != 0)
|
||||||
|
@ -174,7 +177,7 @@ _o_map_add_node_to_map(o_map_t *map, o_map_node_t *node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_remove_node_from_its_bucket(o_map_node_t *node)
|
_o_map_remove_node_from_its_bucket(o_map_node_t *node)
|
||||||
{
|
{
|
||||||
if (node->bucket != 0)
|
if (node->bucket != 0)
|
||||||
|
@ -188,7 +191,7 @@ _o_map_remove_node_from_its_bucket(o_map_node_t *node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_remove_node_from_its_map(o_map_node_t *node)
|
_o_map_remove_node_from_its_map(o_map_node_t *node)
|
||||||
{
|
{
|
||||||
if (node->map != 0)
|
if (node->map != 0)
|
||||||
|
@ -204,7 +207,7 @@ _o_map_remove_node_from_its_map(o_map_node_t *node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline o_map_bucket_t *
|
static INLINE o_map_bucket_t *
|
||||||
_o_map_new_buckets(o_map_t *map, size_t bucket_count)
|
_o_map_new_buckets(o_map_t *map, size_t bucket_count)
|
||||||
{
|
{
|
||||||
return (o_map_bucket_t *)NSZoneCalloc(o_map_zone(map),
|
return (o_map_bucket_t *)NSZoneCalloc(o_map_zone(map),
|
||||||
|
@ -212,7 +215,7 @@ _o_map_new_buckets(o_map_t *map, size_t bucket_count)
|
||||||
sizeof(o_map_bucket_t));
|
sizeof(o_map_bucket_t));
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_free_buckets(o_map_t *map, o_map_bucket_t *buckets)
|
_o_map_free_buckets(o_map_t *map, o_map_bucket_t *buckets)
|
||||||
{
|
{
|
||||||
if (buckets != 0)
|
if (buckets != 0)
|
||||||
|
@ -220,7 +223,7 @@ _o_map_free_buckets(o_map_t *map, o_map_bucket_t *buckets)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_remangle_buckets(o_map_t *map,
|
_o_map_remangle_buckets(o_map_t *map,
|
||||||
o_map_bucket_t *old_buckets,
|
o_map_bucket_t *old_buckets,
|
||||||
size_t old_bucket_count,
|
size_t old_bucket_count,
|
||||||
|
@ -246,7 +249,7 @@ _o_map_remangle_buckets(o_map_t *map,
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline o_map_node_t *
|
static INLINE o_map_node_t *
|
||||||
_o_map_new_node(o_map_t *map, const void *key, const void *value)
|
_o_map_new_node(o_map_t *map, const void *key, const void *value)
|
||||||
{
|
{
|
||||||
o_map_node_t *node;
|
o_map_node_t *node;
|
||||||
|
@ -277,7 +280,7 @@ _o_map_new_node(o_map_t *map, const void *key, const void *value)
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline void
|
static INLINE void
|
||||||
_o_map_free_node(o_map_node_t *node)
|
_o_map_free_node(o_map_node_t *node)
|
||||||
{
|
{
|
||||||
if (node != 0)
|
if (node != 0)
|
||||||
|
@ -301,7 +304,7 @@ _o_map_free_node(o_map_node_t *node)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline o_map_node_t *
|
static INLINE o_map_node_t *
|
||||||
_o_map_node_for_key(o_map_t *map, const void *key)
|
_o_map_node_for_key(o_map_t *map, const void *key)
|
||||||
{
|
{
|
||||||
o_map_bucket_t *bucket;
|
o_map_bucket_t *bucket;
|
||||||
|
@ -323,7 +326,7 @@ _o_map_node_for_key(o_map_t *map, const void *key)
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A non--static-inline version for use in NSObject.
|
/* A non--static-INLINE version for use in NSObject.
|
||||||
xxx Figure out if this change should be generalized. */
|
xxx Figure out if this change should be generalized. */
|
||||||
o_map_node_t *
|
o_map_node_t *
|
||||||
o_map_node_for_key (o_map_t *map, const void *key)
|
o_map_node_for_key (o_map_t *map, const void *key)
|
||||||
|
@ -331,7 +334,7 @@ o_map_node_for_key (o_map_t *map, const void *key)
|
||||||
return _o_map_node_for_key (map, key);
|
return _o_map_node_for_key (map, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* A non--static-inline version for use in NSObject.
|
/* A non--static-INLINE version for use in NSObject.
|
||||||
xxx Figure out if this change should be generalized. */
|
xxx Figure out if this change should be generalized. */
|
||||||
void
|
void
|
||||||
o_map_remove_node (o_map_node_t *node)
|
o_map_remove_node (o_map_node_t *node)
|
||||||
|
@ -508,7 +511,7 @@ o_map_contains_value(o_map_t *map, const void *value)
|
||||||
* for MAP is placed there;
|
* for MAP is placed there;
|
||||||
* (3) if VALUE is non-zero, then the the "not a value marker"
|
* (3) if VALUE is non-zero, then the the "not a value marker"
|
||||||
* for MAP is placed there. */
|
* for MAP is placed there. */
|
||||||
inline int
|
INLINE int
|
||||||
o_map_key_and_value_at_key(o_map_t *map,
|
o_map_key_and_value_at_key(o_map_t *map,
|
||||||
const void **old_key,
|
const void **old_key,
|
||||||
const void **value,
|
const void **value,
|
||||||
|
|
|
@ -34,6 +34,11 @@
|
||||||
#include <Foundation/NSAttributedString.h>
|
#include <Foundation/NSAttributedString.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
|
||||||
|
// These are normally defined in the AppKit
|
||||||
|
NSString *NSFontAttributeName = @"NSFont";
|
||||||
|
NSString *NSForegroundColorAttributeName = @"NSForegroundColor";
|
||||||
|
NSString *NSBackgroundColorAttributeName = @"NSBackgroundColor";
|
||||||
|
|
||||||
void printAttrString(NSAttributedString *attrStr)
|
void printAttrString(NSAttributedString *attrStr)
|
||||||
{
|
{
|
||||||
NSDictionary *tmpAttrDict;
|
NSDictionary *tmpAttrDict;
|
||||||
|
|
|
@ -27,7 +27,7 @@ include $(GNUSTEP_SYSTEM_ROOT)/Makefiles/common.make
|
||||||
|
|
||||||
# The application to be compiled
|
# The application to be compiled
|
||||||
TOOL_NAME = dread dwrite dremove
|
TOOL_NAME = dread dwrite dremove
|
||||||
OBJC-PROGRAM_NAME = gdomap
|
OBJC_PROGRAM_NAME = gdomap
|
||||||
|
|
||||||
# The source files to be compiled
|
# The source files to be compiled
|
||||||
gdomap_C_FILES = gdomap.c
|
gdomap_C_FILES = gdomap.c
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
|
|
||||||
# Things to do after installing
|
# Things to do after installing
|
||||||
after-install::
|
after-install::
|
||||||
$(INSTALL) -m 05755 gdomap $(GNUSTEP_INSTALLATION_DIR)/Tools/$(GNUSTEP_TARGET_DIR)
|
$(INSTALL) -m 05755 $(GNUSTEP_OBJ_DIR)/gdomap $(GNUSTEP_INSTALLATION_DIR)/Tools/$(GNUSTEP_TARGET_DIR)
|
||||||
|
|
||||||
# Things to do before uninstalling
|
# Things to do before uninstalling
|
||||||
# before-uninstall::
|
# before-uninstall::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue