mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-26 02:01:03 +00:00
Tweak a little
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@21990 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
ba72336e11
commit
a2f9eb78a9
4 changed files with 8 additions and 5 deletions
|
@ -10,6 +10,8 @@
|
||||||
* Source/win32/NSMessagePortWin32.m: Fixes for cases where requests
|
* Source/win32/NSMessagePortWin32.m: Fixes for cases where requests
|
||||||
we wanted to be async actually complete synchronously. Moves the
|
we wanted to be async actually complete synchronously. Moves the
|
||||||
state of this code from pre-alpha to alpha/beta quality I guess.
|
state of this code from pre-alpha to alpha/beta quality I guess.
|
||||||
|
* Source/preface.m: Change declaration of variables to be pointer to
|
||||||
|
char rather than array of char ... more usual/safe.
|
||||||
|
|
||||||
2005-11-10 Richard Frith-Macdonald <rfm@gnu.org>
|
2005-11-10 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
|
|
@ -246,7 +246,7 @@ pathSepMember(unichar c)
|
||||||
* 2. On windows, a root consisting of a single path separator indicates
|
* 2. On windows, a root consisting of a single path separator indicates
|
||||||
* a drive-relative path with no drive ... so the path is relative.
|
* a drive-relative path with no drive ... so the path is relative.
|
||||||
*/
|
*/
|
||||||
unsigned rootOf(NSString *s, unsigned l)
|
static unsigned rootOf(NSString *s, unsigned l)
|
||||||
{
|
{
|
||||||
unsigned root = 0;
|
unsigned root = 0;
|
||||||
|
|
||||||
|
|
|
@ -24,9 +24,9 @@
|
||||||
#include <config.h>
|
#include <config.h>
|
||||||
#include "GNUstepBase/preface.h"
|
#include "GNUstepBase/preface.h"
|
||||||
|
|
||||||
const char gnustep_base_version[] = STRINGIFY (GNUSTEP_BASE_VERSION);
|
const char *gnustep_base_version = STRINGIFY (GNUSTEP_BASE_VERSION);
|
||||||
const char o_gcc_version[] = STRINGIFY (GNUSTEP_BASE_GCC_VERSION);
|
const char *o_gcc_version = STRINGIFY (GNUSTEP_BASE_GCC_VERSION);
|
||||||
|
|
||||||
#if NeXT_cc
|
#if NeXT_cc
|
||||||
const char o_NeXT_cc_version[] = STRINGIFY (NX_CURRENT_COMPILER_RELEASE);
|
const char *o_NeXT_cc_version = STRINGIFY (NX_CURRENT_COMPILER_RELEASE);
|
||||||
#endif /* NeXT_cc */
|
#endif /* NeXT_cc */
|
||||||
|
|
|
@ -95,6 +95,7 @@ static try(GSMimeParser *p, NSData *d)
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
|
extern char *gnustep_base_version;
|
||||||
id pool = [NSAutoreleasePool new];
|
id pool = [NSAutoreleasePool new];
|
||||||
id o = [NSObject new];
|
id o = [NSObject new];
|
||||||
id x;
|
id x;
|
||||||
|
@ -104,7 +105,7 @@ int main ()
|
||||||
struct objc_struct_layout layout;
|
struct objc_struct_layout layout;
|
||||||
unsigned i;
|
unsigned i;
|
||||||
|
|
||||||
NSLog(@"%@", [@"//home//nicola" pathComponents]);
|
NSLog(@"GNUstep Base version: %s", gnustep_base_version);
|
||||||
|
|
||||||
NSLog(@"Orig: %@", [NSUserDefaults userLanguages]);
|
NSLog(@"Orig: %@", [NSUserDefaults userLanguages]);
|
||||||
[NSUserDefaults setUserLanguages: [NSArray arrayWithObject: @"Bletch"]];
|
[NSUserDefaults setUserLanguages: [NSArray arrayWithObject: @"Bletch"]];
|
||||||
|
|
Loading…
Reference in a new issue