From f33f962c250d45c120a4aaabaad898be37fe7113 Mon Sep 17 00:00:00 2001 From: Riccardo Mottola Date: Sat, 21 Sep 2013 23:22:04 +0000 Subject: [PATCH] Transition count/length variables to NSUInteger git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@37132 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 6 ++++++ Modules/Parsers/ProjectCenter/PCParser.h | 4 ++-- Modules/Parsers/ProjectCenter/PCParser.m | 8 ++++---- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index dfc3ccd..39edd1c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-09-21 Riccardo Mottola + + * Modules/Parsers/ProjectCenter/PCParser.h + * Modules/Parsers/ProjectCenter/PCParser.m + Transition count/length variables to NSUInteger + 2013-09-21 Riccardo Mottola * Modules/Parsers/ProjectCenter/PCParser.m diff --git a/Modules/Parsers/ProjectCenter/PCParser.h b/Modules/Parsers/ProjectCenter/PCParser.h index eb9b17a..a0b1189 100644 --- a/Modules/Parsers/ProjectCenter/PCParser.h +++ b/Modules/Parsers/ProjectCenter/PCParser.h @@ -1,7 +1,7 @@ /* ** CodeParser.h ** -** Copyright (c) 2003 +** Copyright (c) 2003-2013 ** ** Author: Yen-Ju ** @@ -35,7 +35,7 @@ { id _handler; NSString *_string; - unsigned int _length; + NSUInteger _length; unichar *_uchar; } diff --git a/Modules/Parsers/ProjectCenter/PCParser.m b/Modules/Parsers/ProjectCenter/PCParser.m index 7f8a5aa..4b5bda8 100644 --- a/Modules/Parsers/ProjectCenter/PCParser.m +++ b/Modules/Parsers/ProjectCenter/PCParser.m @@ -126,7 +126,7 @@ CodeType codeType(unichar *ch) - (void)parse { - unsigned int i, start, end; + NSUInteger i, start, end; CodeType startType; NSString *out; SEL selString = @selector(string:); @@ -179,7 +179,7 @@ CodeType codeType(unichar *ch) } else if (startType == SpaceAndNewLineCodeType) { - unsigned int j, jlen = end-start/*[out length]*/; + NSUInteger j, jlen = end-start/*[out length]*/; for (j = 0; j < jlen; j++) { (*impSpaceAndNewLine)(_handler, @@ -188,7 +188,7 @@ CodeType codeType(unichar *ch) } else if (startType == SymbolCodeType) { - unsigned int j, jlen = end-start/*[out length]*/; + NSUInteger j, jlen = end-start/*[out length]*/; for (j = 0; j < jlen; j++) { (*impSymbol)(_handler, selSymbol, _uchar[start+j]); @@ -196,7 +196,7 @@ CodeType codeType(unichar *ch) } else if (startType == InvisibleCodeType) { - unsigned int j, jlen = end-start/*[out length]*/; + NSUInteger j, jlen = end-start/*[out length]*/; for (j = 0; j < jlen; j++) { (*impInvisible)(_handler, selInvisible, _uchar[start+j]);