mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-23 09:04:13 +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
6e356c0942
commit
c668c9d96a
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>
|
||||
|
||||
* configure.ac: Change SO_REUSADDR to SO_REUSEADDR in the checking
|
||||
|
|
|
@ -559,7 +559,7 @@ GSEncodingFromLocale(const char *clocale)
|
|||
* Return the default encoding
|
||||
*/
|
||||
NSStringEncoding
|
||||
GetDefEncoding()
|
||||
GetDefEncoding(void)
|
||||
{
|
||||
if (defEnc == GSUndefinedEncoding)
|
||||
{
|
||||
|
|
|
@ -105,12 +105,12 @@ typedef struct {
|
|||
/* This is the proxy tag; it indicates where the local object is,
|
||||
and determines whether the reply port to the Connection-where-the-
|
||||
proxy-is-local needs to encoded/decoded or not. */
|
||||
enum
|
||||
enum proxyLocation
|
||||
{
|
||||
PROXY_LOCAL_FOR_RECEIVER = 0,
|
||||
PROXY_LOCAL_FOR_SENDER,
|
||||
PROXY_REMOTE_FOR_BOTH
|
||||
} proxyLocation;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1967,7 +1967,7 @@ inline void gsedRelease(GSEnumeratedDirectory X)
|
|||
#include "GNUstepBase/GSIArray.h"
|
||||
|
||||
/* 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;
|
||||
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
|
||||
filesystem paths; that path does not end with a path separator, and
|
||||
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 file_length = strlen(file);
|
||||
|
|
|
@ -2063,8 +2063,8 @@ handle_printf_atsign (FILE *stream,
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns based on string comparison if anObject is an NSString, else
|
||||
* uses <code>==</code>.
|
||||
* Returns whether the receiver and an anObject are equals as strings.
|
||||
* If anObject isn't an NSString, returns NO.
|
||||
*/
|
||||
- (BOOL) isEqual: (id)anObject
|
||||
{
|
||||
|
|
|
@ -256,7 +256,7 @@ static NSMutableDictionary *clsDict; /* Class information */
|
|||
}
|
||||
@end
|
||||
|
||||
inline Class
|
||||
static inline Class
|
||||
mapClassObject(NSUnarchiverObjectInfo *info)
|
||||
{
|
||||
if (info->overrides == nil)
|
||||
|
@ -273,7 +273,7 @@ mapClassObject(NSUnarchiverObjectInfo *info)
|
|||
}
|
||||
}
|
||||
|
||||
inline NSString*
|
||||
static inline NSString*
|
||||
mapClassName(NSUnarchiverObjectInfo *info)
|
||||
{
|
||||
if (info->overrides == nil)
|
||||
|
|
|
@ -118,7 +118,7 @@ static int ParseFile(const char *filename,NSMutableDictionary *tables)
|
|||
|
||||
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])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue