* [gentoo-commits] gentoo-x86 commit in gnustep-libs/cddb/files: cddb-0.2-bool.patch
@ 2011-04-20 15:28 Bernard Cafarelli (voyageur)
0 siblings, 0 replies; only message in thread
From: Bernard Cafarelli (voyageur) @ 2011-04-20 15:28 UTC (permalink / raw
To: gentoo-commits
voyageur 11/04/20 15:28:29
Added: cddb-0.2-bool.patch
Log:
Fix compilation (use of bool keyword as variable name)
(Portage version: 2.2.0_alpha30/cvs/Linux x86_64)
Revision Changes Path
1.1 gnustep-libs/cddb/files/cddb-0.2-bool.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-libs/cddb/files/cddb-0.2-bool.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/gnustep-libs/cddb/files/cddb-0.2-bool.patch?rev=1.1&content-type=text/plain
Index: cddb-0.2-bool.patch
===================================================================
diff -Naur cddb.bundle.orig/Cddb/Cddb.h cddb.bundle/Cddb/Cddb.h
--- cddb.bundle.orig/Cddb/Cddb.h 2002-10-15 16:32:13.000000000 +0200
+++ cddb.bundle/Cddb/Cddb.h 2011-04-20 17:13:48.209532185 +0200
@@ -54,8 +54,7 @@
* The number of object in NSArray are the number of tracks.
* The keys of NSDictionary are "length" and "offset".
*/
-- (NSString *) discidWithCDTracks: (NSArray *) tracks
- locally: (BOOL) bool;
+- (NSString *) discidWithCDTracks: (NSArray *) tracks locally: (BOOL) boolean;
/* Return the query using a NSArray of NSDictionary.
* The number of object in NSArray are the number of tracks.
@@ -75,9 +74,7 @@
* NSString, "extdata" (extra data about this album)
* NSArray, "exttitles" (extra-title of each track)
*/
-- (NSDictionary *) readWithCategory: (NSString *) category
- discid: (NSString *) discid
- postProcess: (BOOL) bool;
+- (NSDictionary *) readWithCategory: (NSString *) category discid: (NSString *) discid postProcess: (BOOL) boolean;
/* Low-level methods */
/* Input format:
diff -Naur cddb.bundle.orig/Cddb/Cddb.m cddb.bundle/Cddb/Cddb.m
--- cddb.bundle.orig/Cddb/Cddb.m 2002-10-17 15:17:01.000000000 +0200
+++ cddb.bundle/Cddb/Cddb.m 2011-04-20 17:14:08.737891180 +0200
@@ -44,7 +44,7 @@
- (NSString *) discidWithCDTracks: (NSArray *) tracks
- locally: (BOOL) bool
+ locally: (BOOL) boolean
{
NSMutableString *string = [NSMutableString new];
int i = 0, numtracks = 0;
@@ -72,7 +72,7 @@
[string appendFormat: @" %d", totaltime];
- if (bool == YES) // Calculate locally
+ if (boolean == YES) // Calculate locally
{
RELEASE(string);
RELEASE(tracks);
@@ -123,9 +123,9 @@
- (NSDictionary *) readWithCategory: (NSString *) category
discid: (NSString *) discid
- postProcess: (BOOL) bool
+ postProcess: (BOOL) boolean
{
- if (bool == NO)
+ if (boolean == NO)
return [self read: [NSString stringWithFormat: @"%@ %@", category, discid]];
else
{
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-04-20 15:28 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-20 15:28 [gentoo-commits] gentoo-x86 commit in gnustep-libs/cddb/files: cddb-0.2-bool.patch Bernard Cafarelli (voyageur)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox