mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
Minor typespec fix
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@16856 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
a2f5796468
commit
92b698e4da
3 changed files with 15 additions and 9 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-06-02 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Source/mframe.m: Allow for structure names in type specifications.
|
||||
|
||||
2003-05-29 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* configure.ac: Pass on original CPPFLAGS to config.mak.
|
||||
|
|
|
@ -1600,10 +1600,10 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
* %w day of the week as decimal number (Sunday = 0)
|
||||
* </item>
|
||||
* <item>
|
||||
* %y year as a decimal number without century
|
||||
* %y year as a decimal number without century (minimum 0)
|
||||
* </item>
|
||||
* <item>
|
||||
* %Y year as a decimal number with century
|
||||
* %Y year as a decimal number with century, minimum 0, maximum 9999
|
||||
* </item>
|
||||
* <item>
|
||||
* %z time zone offset (HHMM)
|
||||
|
@ -1668,6 +1668,10 @@ static inline int getDigits(const char *from, char *to, int limit)
|
|||
ycent = YES;
|
||||
case 'y':
|
||||
++i;
|
||||
if (yd < 0)
|
||||
yd = 0;
|
||||
if (yd > 9999)
|
||||
yd = 9999;
|
||||
if (ycent)
|
||||
k = VSPRINTF_LENGTH(sprintf(&(buf[j]), "%04d", yd));
|
||||
else
|
||||
|
|
|
@ -361,17 +361,15 @@ mframe_next_arg(const char *typePtr, NSArgumentInfo *info)
|
|||
unsigned int acc_size = 0;
|
||||
unsigned int def_align = objc_alignof_type(typePtr-1);
|
||||
unsigned int acc_align = def_align;
|
||||
const char *ptr = typePtr;
|
||||
|
||||
/*
|
||||
* Skip "<name>=" stuff.
|
||||
*/
|
||||
while (*typePtr != _C_STRUCT_E)
|
||||
{
|
||||
if (*typePtr++ == '=')
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
while (*ptr != _C_STRUCT_E && *ptr != '=') ptr++;
|
||||
if (*ptr == '=') typePtr = ptr;
|
||||
typePtr++;
|
||||
|
||||
/*
|
||||
* Base structure alignment on first element.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue