mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
fix for defaults change notification.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37180 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
063db3e8ae
commit
4380348a80
3 changed files with 25 additions and 9 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2013-10-01 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
|
* config/config.align.c: Try to more reliably detect whether word
|
||||||
|
alignment is needed.
|
||||||
|
* Source/NSUserDefaults.m: Fix failure to send notification when
|
||||||
|
defaults are updated.
|
||||||
|
|
||||||
2013-09-18 Richard Frith-Macdonald <rfm@gnu.org>
|
2013-09-18 Richard Frith-Macdonald <rfm@gnu.org>
|
||||||
|
|
||||||
* Source/GSTLS.h:
|
* Source/GSTLS.h:
|
||||||
|
|
|
@ -2386,7 +2386,10 @@ static BOOL isLocked = NO;
|
||||||
* synchronize to load the domain contents into memory
|
* synchronize to load the domain contents into memory
|
||||||
* so a lookup will work.
|
* so a lookup will work.
|
||||||
*/
|
*/
|
||||||
haveChange = [pd synchronize];
|
if (YES == [pd synchronize])
|
||||||
|
{
|
||||||
|
haveChange = YES;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,12 +10,18 @@
|
||||||
|
|
||||||
int main ()
|
int main ()
|
||||||
{
|
{
|
||||||
char buf[12];
|
char buf[12];
|
||||||
short sval = 4;
|
char *ptr = buf;
|
||||||
int ival = 3;
|
short sval = 4;
|
||||||
*(short *)(buf+1) = sval;
|
int ival = 3;
|
||||||
*(int *)(buf+1) = ival;
|
if (0 == ((int)ptr % 2))
|
||||||
buf[0] = 0;
|
{
|
||||||
puts (buf); /* force compiler not to optimise out the above assignments */
|
ptr++;
|
||||||
exit (0);
|
}
|
||||||
|
*(short *)ptr = sval;
|
||||||
|
*(int *)ptr = ival;
|
||||||
|
ptr[0] = 0;
|
||||||
|
puts (ptr); /* force compiler not to optimise out the above assignments */
|
||||||
|
exit (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue