diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 10 | ||||
| -rw-r--r-- | src/nsfont.m | 10 | ||||
| -rw-r--r-- | src/nsmenu.m | 2 | ||||
| -rw-r--r-- | src/nsterm.m | 8 | ||||
| -rw-r--r-- | src/process.c | 2 |
5 files changed, 23 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index e6901fd8680..a466047718f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,15 @@ | |||
| 1 | 2013-09-22 Jan Djärv <jan.h.d@swipnet.se> | 1 | 2013-09-22 Jan Djärv <jan.h.d@swipnet.se> |
| 2 | 2 | ||
| 3 | * process.c (wait_reading_process_output): Change int pnamelen to | ||
| 4 | socklen_t. | ||
| 5 | |||
| 6 | * nsterm.m (setMarkedText:selectedRange:): | ||
| 7 | (deleteWorkingText): | ||
| 8 | * nsmenu.m (addDisplayItemWithImage:idx:tag:helpText:enabled:): | ||
| 9 | * nsfont.m (ns_get_covering_families, ns_findfonts): Cast NSLog | ||
| 10 | argument to unsigned long to avoid warning. | ||
| 11 | (nsfont_draw): Use 0.25 instead of Fix2X (kATSItalicQDSkew). | ||
| 12 | |||
| 3 | * conf_post.h (assume): Fix compiler error: x shall be cond. | 13 | * conf_post.h (assume): Fix compiler error: x shall be cond. |
| 4 | 14 | ||
| 5 | 2013-09-22 Daniel Colascione <dancol@dancol.org> | 15 | 2013-09-22 Daniel Colascione <dancol@dancol.org> |
diff --git a/src/nsfont.m b/src/nsfont.m index d9c8660f1cd..bd9a2acc983 100644 --- a/src/nsfont.m +++ b/src/nsfont.m | |||
| @@ -526,7 +526,7 @@ static NSSet | |||
| 526 | } | 526 | } |
| 527 | 527 | ||
| 528 | if (NSFONT_TRACE) | 528 | if (NSFONT_TRACE) |
| 529 | NSLog(@" returning %d families", [families count]); | 529 | NSLog(@" returning %lu families", (unsigned long)[families count]); |
| 530 | return families; | 530 | return families; |
| 531 | } | 531 | } |
| 532 | 532 | ||
| @@ -564,8 +564,8 @@ ns_findfonts (Lisp_Object font_spec, BOOL isMatch) | |||
| 564 | matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys]; | 564 | matchingDescs = [fdesc matchingFontDescriptorsWithMandatoryKeys: fkeys]; |
| 565 | 565 | ||
| 566 | if (NSFONT_TRACE) | 566 | if (NSFONT_TRACE) |
| 567 | NSLog(@"Got desc %@ and found %d matching fonts from it: ", fdesc, | 567 | NSLog(@"Got desc %@ and found %lu matching fonts from it: ", fdesc, |
| 568 | [matchingDescs count]); | 568 | (unsigned long)[matchingDescs count]); |
| 569 | 569 | ||
| 570 | for (dEnum = [matchingDescs objectEnumerator]; (desc = [dEnum nextObject]);) | 570 | for (dEnum = [matchingDescs objectEnumerator]; (desc = [dEnum nextObject]);) |
| 571 | { | 571 | { |
| @@ -1249,7 +1249,9 @@ nsfont_draw (struct glyph_string *s, int from, int to, int x, int y, | |||
| 1249 | 1249 | ||
| 1250 | CGContextSaveGState (gcontext); | 1250 | CGContextSaveGState (gcontext); |
| 1251 | 1251 | ||
| 1252 | fliptf.c = font->synthItal ? Fix2X (kATSItalicQDSkew) : 0.0; | 1252 | // Used to be Fix2X (kATSItalicQDSkew), but Fix2X is deprecated |
| 1253 | // and kATSItalicQDSkew is 0.25. | ||
| 1254 | fliptf.c = font->synthItal ? 0.25 : 0.0; | ||
| 1253 | 1255 | ||
| 1254 | CGContextSetFont (gcontext, font->cgfont); | 1256 | CGContextSetFont (gcontext, font->cgfont); |
| 1255 | CGContextSetFontSize (gcontext, font->size); | 1257 | CGContextSetFontSize (gcontext, font->size); |
diff --git a/src/nsmenu.m b/src/nsmenu.m index f9cd511efe9..8dde027e986 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -1239,7 +1239,7 @@ update_frame_tool_bar (struct frame *f) | |||
| 1239 | { | 1239 | { |
| 1240 | /* 1) come up w/identifier */ | 1240 | /* 1) come up w/identifier */ |
| 1241 | NSString *identifier | 1241 | NSString *identifier |
| 1242 | = [NSString stringWithFormat: @"%u", [img hash]]; | 1242 | = [NSString stringWithFormat: @"%lu", (unsigned long)[img hash]]; |
| 1243 | [activeIdentifiers addObject: identifier]; | 1243 | [activeIdentifiers addObject: identifier]; |
| 1244 | 1244 | ||
| 1245 | /* 2) create / reuse item */ | 1245 | /* 2) create / reuse item */ |
diff --git a/src/nsterm.m b/src/nsterm.m index 5c9800f5416..65c67eb9b56 100644 --- a/src/nsterm.m +++ b/src/nsterm.m | |||
| @@ -5208,8 +5208,10 @@ not_in_argv (NSString *arg) | |||
| 5208 | NSString *str = [aString respondsToSelector: @selector (string)] ? | 5208 | NSString *str = [aString respondsToSelector: @selector (string)] ? |
| 5209 | [aString string] : aString; | 5209 | [aString string] : aString; |
| 5210 | if (NS_KEYLOG) | 5210 | if (NS_KEYLOG) |
| 5211 | NSLog (@"setMarkedText '%@' len =%d range %d from %d", str, [str length], | 5211 | NSLog (@"setMarkedText '%@' len =%lu range %lu from %lu", |
| 5212 | selRange.length, selRange.location); | 5212 | str, (unsigned long)[str length], |
| 5213 | (unsigned long)selRange.length, | ||
| 5214 | (unsigned long)selRange.location); | ||
| 5213 | 5215 | ||
| 5214 | if (workingText != nil) | 5216 | if (workingText != nil) |
| 5215 | [self deleteWorkingText]; | 5217 | [self deleteWorkingText]; |
| @@ -5235,7 +5237,7 @@ not_in_argv (NSString *arg) | |||
| 5235 | if (workingText == nil) | 5237 | if (workingText == nil) |
| 5236 | return; | 5238 | return; |
| 5237 | if (NS_KEYLOG) | 5239 | if (NS_KEYLOG) |
| 5238 | NSLog(@"deleteWorkingText len =%d\n", [workingText length]); | 5240 | NSLog(@"deleteWorkingText len =%lu\n", (unsigned long)[workingText length]); |
| 5239 | [workingText release]; | 5241 | [workingText release]; |
| 5240 | workingText = nil; | 5242 | workingText = nil; |
| 5241 | processingCompose = NO; | 5243 | processingCompose = NO; |
diff --git a/src/process.c b/src/process.c index 0f53577331d..94f59942a61 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -4847,7 +4847,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd, | |||
| 4847 | #else | 4847 | #else |
| 4848 | { | 4848 | { |
| 4849 | struct sockaddr pname; | 4849 | struct sockaddr pname; |
| 4850 | int pnamelen = sizeof (pname); | 4850 | socklen_t pnamelen = sizeof (pname); |
| 4851 | 4851 | ||
| 4852 | /* If connection failed, getpeername will fail. */ | 4852 | /* If connection failed, getpeername will fail. */ |
| 4853 | xerrno = 0; | 4853 | xerrno = 0; |