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>
|
||||
|
||||
* Source/GSTLS.h:
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue