mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 16:50:58 +00:00
* Source/NSDistantObject.m: Make proxyLocation an enum tag, not a
variable. * Source/NSFileManager.m (custom_strdup, append_file_to_path): Make static. * Source/NSString.m (-isEqual:): Clarify documentation. * Source/NSUnarchiver.m (mapClassObject, mapClassName): Make static. * Source/Additions/Unicode.m (GetDefEncoding): Add missing void in the prototype. * Tools/make_strings/make_strings.m (ParseFile): Remove spurious static on the nested function add_arg_ch. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@20163 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5d0e59bad3
commit
cf50088545
7 changed files with 23 additions and 10 deletions
13
ChangeLog
13
ChangeLog
|
@ -1,3 +1,16 @@
|
||||||
|
2004-09-27 23:26 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
|
* Source/NSDistantObject.m: Make proxyLocation an enum tag, not a
|
||||||
|
variable.
|
||||||
|
* Source/NSFileManager.m (custom_strdup, append_file_to_path): Make
|
||||||
|
static.
|
||||||
|
* Source/NSString.m (-isEqual:): Clarify documentation.
|
||||||
|
* Source/NSUnarchiver.m (mapClassObject, mapClassName): Make static.
|
||||||
|
* Source/Additions/Unicode.m (GetDefEncoding): Add missing void in
|
||||||
|
the prototype.
|
||||||
|
* Tools/make_strings/make_strings.m (ParseFile): Remove spurious
|
||||||
|
static on the nested function add_arg_ch.
|
||||||
|
|
||||||
2004-09-27 15:51 Alexander Malmberg <alexander@malmberg.org>
|
2004-09-27 15:51 Alexander Malmberg <alexander@malmberg.org>
|
||||||
|
|
||||||
* configure.ac: Change SO_REUSADDR to SO_REUSEADDR in the checking
|
* configure.ac: Change SO_REUSADDR to SO_REUSEADDR in the checking
|
||||||
|
|
|
@ -559,7 +559,7 @@ GSEncodingFromLocale(const char *clocale)
|
||||||
* Return the default encoding
|
* Return the default encoding
|
||||||
*/
|
*/
|
||||||
NSStringEncoding
|
NSStringEncoding
|
||||||
GetDefEncoding()
|
GetDefEncoding(void)
|
||||||
{
|
{
|
||||||
if (defEnc == GSUndefinedEncoding)
|
if (defEnc == GSUndefinedEncoding)
|
||||||
{
|
{
|
||||||
|
|
|
@ -105,12 +105,12 @@ typedef struct {
|
||||||
/* This is the proxy tag; it indicates where the local object is,
|
/* This is the proxy tag; it indicates where the local object is,
|
||||||
and determines whether the reply port to the Connection-where-the-
|
and determines whether the reply port to the Connection-where-the-
|
||||||
proxy-is-local needs to encoded/decoded or not. */
|
proxy-is-local needs to encoded/decoded or not. */
|
||||||
enum
|
enum proxyLocation
|
||||||
{
|
{
|
||||||
PROXY_LOCAL_FOR_RECEIVER = 0,
|
PROXY_LOCAL_FOR_RECEIVER = 0,
|
||||||
PROXY_LOCAL_FOR_SENDER,
|
PROXY_LOCAL_FOR_SENDER,
|
||||||
PROXY_REMOTE_FOR_BOTH
|
PROXY_REMOTE_FOR_BOTH
|
||||||
} proxyLocation;
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1967,7 +1967,7 @@ inline void gsedRelease(GSEnumeratedDirectory X)
|
||||||
#include "GNUstepBase/GSIArray.h"
|
#include "GNUstepBase/GSIArray.h"
|
||||||
|
|
||||||
/* Portable replacement for strdup - return a copy of original. */
|
/* Portable replacement for strdup - return a copy of original. */
|
||||||
inline char *custom_strdup (const char *original)
|
static inline char *custom_strdup (const char *original)
|
||||||
{
|
{
|
||||||
char *result;
|
char *result;
|
||||||
unsigned length = sizeof(char) * (strlen (original) + 1);
|
unsigned length = sizeof(char) * (strlen (original) + 1);
|
||||||
|
@ -1981,7 +1981,7 @@ inline char *custom_strdup (const char *original)
|
||||||
The function takes for granted that path and file are correct
|
The function takes for granted that path and file are correct
|
||||||
filesystem paths; that path does not end with a path separator, and
|
filesystem paths; that path does not end with a path separator, and
|
||||||
file does not begin with a path separator. */
|
file does not begin with a path separator. */
|
||||||
inline char *append_file_to_path (const char *path, const char *file)
|
static inline char *append_file_to_path (const char *path, const char *file)
|
||||||
{
|
{
|
||||||
unsigned path_length = strlen(path);
|
unsigned path_length = strlen(path);
|
||||||
unsigned file_length = strlen(file);
|
unsigned file_length = strlen(file);
|
||||||
|
|
|
@ -2063,8 +2063,8 @@ handle_printf_atsign (FILE *stream,
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns based on string comparison if anObject is an NSString, else
|
* Returns whether the receiver and an anObject are equals as strings.
|
||||||
* uses <code>==</code>.
|
* If anObject isn't an NSString, returns NO.
|
||||||
*/
|
*/
|
||||||
- (BOOL) isEqual: (id)anObject
|
- (BOOL) isEqual: (id)anObject
|
||||||
{
|
{
|
||||||
|
|
|
@ -256,7 +256,7 @@ static NSMutableDictionary *clsDict; /* Class information */
|
||||||
}
|
}
|
||||||
@end
|
@end
|
||||||
|
|
||||||
inline Class
|
static inline Class
|
||||||
mapClassObject(NSUnarchiverObjectInfo *info)
|
mapClassObject(NSUnarchiverObjectInfo *info)
|
||||||
{
|
{
|
||||||
if (info->overrides == nil)
|
if (info->overrides == nil)
|
||||||
|
@ -273,7 +273,7 @@ mapClassObject(NSUnarchiverObjectInfo *info)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
inline NSString*
|
static inline NSString*
|
||||||
mapClassName(NSUnarchiverObjectInfo *info)
|
mapClassName(NSUnarchiverObjectInfo *info)
|
||||||
{
|
{
|
||||||
if (info->overrides == nil)
|
if (info->overrides == nil)
|
||||||
|
|
|
@ -118,7 +118,7 @@ static int ParseFile(const char *filename,NSMutableDictionary *tables)
|
||||||
|
|
||||||
int depth=0;
|
int depth=0;
|
||||||
|
|
||||||
static void add_arg_ch(int ch)
|
void add_arg_ch(int ch)
|
||||||
{
|
{
|
||||||
if (arg_len[num_args]+1>=arg_size[num_args])
|
if (arg_len[num_args]+1>=arg_size[num_args])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue