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:
Richard Frith-MacDonald 2013-10-01 18:00:17 +00:00
parent 063db3e8ae
commit 4380348a80
3 changed files with 25 additions and 9 deletions

View file

@ -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>
* Source/GSTLS.h:

View file

@ -2386,7 +2386,10 @@ static BOOL isLocked = NO;
* synchronize to load the domain contents into memory
* so a lookup will work.
*/
haveChange = [pd synchronize];
if (YES == [pd synchronize])
{
haveChange = YES;
}
}
}
}

View file

@ -10,12 +10,18 @@
int main ()
{
char buf[12];
short sval = 4;
int ival = 3;
*(short *)(buf+1) = sval;
*(int *)(buf+1) = ival;
buf[0] = 0;
puts (buf); /* force compiler not to optimise out the above assignments */
exit (0);
char buf[12];
char *ptr = buf;
short sval = 4;
int ival = 3;
if (0 == ((int)ptr % 2))
{
ptr++;
}
*(short *)ptr = sval;
*(int *)ptr = ival;
ptr[0] = 0;
puts (ptr); /* force compiler not to optimise out the above assignments */
exit (0);
}