Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
K
KWSys
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Simon Wilson
KWSys
Commits
f45734ad
Commit
f45734ad
authored
16 years ago
by
Francois Bertel
Browse files
Options
Downloads
Patches
Plain Diff
COMP:Fixed warnings.
parent
de1eeb38
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
Glob.cxx
+3
-3
3 additions, 3 deletions
Glob.cxx
RegularExpression.cxx
+9
-9
9 additions, 9 deletions
RegularExpression.cxx
RegularExpression.hxx.in
+11
-5
11 additions, 5 deletions
RegularExpression.hxx.in
kwsysDateStamp.cmake
+1
-1
1 addition, 1 deletion
kwsysDateStamp.cmake
with
24 additions
and
18 deletions
Glob.cxx
+
3
−
3
View file @
f45734ad
...
...
@@ -380,13 +380,13 @@ bool Glob::FindFiles(const kwsys_stl::string& inexpr)
}
kwsys_stl
::
string
fexpr
=
expr
;
int
skip
=
0
;
int
last_slash
=
0
;
kwsys_stl
::
string
::
size_type
skip
=
0
;
kwsys_stl
::
string
::
size_type
last_slash
=
0
;
for
(
cc
=
0
;
cc
<
expr
.
size
();
cc
++
)
{
if
(
cc
>
0
&&
expr
[
cc
]
==
'/'
&&
expr
[
cc
-
1
]
!=
'\\'
)
{
last_slash
=
static_cast
<
int
>
(
cc
)
;
last_slash
=
cc
;
}
if
(
cc
>
0
&&
(
expr
[
cc
]
==
'['
||
expr
[
cc
]
==
'?'
||
expr
[
cc
]
==
'*'
)
&&
...
...
This diff is collapsed.
Click to expand it.
RegularExpression.cxx
+
9
−
9
View file @
f45734ad
...
...
@@ -269,7 +269,7 @@ const unsigned char MAGIC = 0234;
* Utility definitions.
*/
#define UCHARAT(p) (
(
const unsigned char*
)
(p))[0]
#define UCHARAT(p) (
reinterpret_cast<
const unsigned char*
>
(p))[0]
#define FAIL(m) { regerror(m); return(0); }
...
...
@@ -316,7 +316,7 @@ static char* regatom (int*);
static
char
*
regnode
(
char
);
static
const
char
*
regnext
(
register
const
char
*
);
static
char
*
regnext
(
register
char
*
);
static
void
regc
(
unsigned
char
);
static
void
regc
(
char
);
static
void
reginsert
(
char
,
char
*
);
static
void
regtail
(
char
*
,
const
char
*
);
static
void
regoptail
(
char
*
,
const
char
*
);
...
...
@@ -362,7 +362,7 @@ bool RegularExpression::compile (const char* exp) {
regnpar
=
1
;
regsize
=
0L
;
regcode
=
&
regdummy
;
regc
(
MAGIC
);
regc
(
static_cast
<
char
>
(
MAGIC
)
)
;
if
(
!
reg
(
0
,
&
flags
))
{
printf
(
"RegularExpression::compile(): Error in compile.
\n
"
);
...
...
@@ -394,7 +394,7 @@ bool RegularExpression::compile (const char* exp) {
regparse
=
exp
;
regnpar
=
1
;
regcode
=
this
->
program
;
regc
(
MAGIC
);
regc
(
static_cast
<
char
>
(
MAGIC
)
)
;
reg
(
0
,
&
flags
);
// Dig out information for optimizations.
...
...
@@ -426,7 +426,7 @@ bool RegularExpression::compile (const char* exp) {
for
(;
scan
!=
0
;
scan
=
regnext
(
scan
))
if
(
OP
(
scan
)
==
EXACTLY
&&
strlen
(
OPERAND
(
scan
))
>=
len
)
{
longest
=
OPERAND
(
scan
);
len
=
int
(
strlen
(
OPERAND
(
scan
))
)
;
len
=
strlen
(
OPERAND
(
scan
));
}
this
->
regmust
=
longest
;
this
->
regmlen
=
len
;
...
...
@@ -675,7 +675,7 @@ static char* regatom (int *flagp) {
return
0
;
}
for
(;
rxpclass
<=
rxpclassend
;
rxpclass
++
)
regc
(
static_cast
<
unsigned
char
>
(
rxpclass
));
regc
(
static_cast
<
char
>
(
rxpclass
));
regparse
++
;
}
}
...
...
@@ -778,7 +778,7 @@ static char* regnode (char op) {
/*
- regc - emit (if appropriate) a byte of code
*/
static
void
regc
(
unsigned
char
b
)
{
static
void
regc
(
char
b
)
{
if
(
regcode
!=
&
regdummy
)
*
regcode
++
=
b
;
else
...
...
@@ -1018,14 +1018,14 @@ static int regmatch (const char* prog) {
reginput
++
;
break
;
case
EXACTLY
:{
register
int
len
;
register
size_t
len
;
register
const
char
*
opnd
;
opnd
=
OPERAND
(
scan
);
// Inline the first character, for speed.
if
(
*
opnd
!=
*
reginput
)
return
(
0
);
len
=
int
(
strlen
(
opnd
)
)
;
len
=
strlen
(
opnd
);
if
(
len
>
1
&&
strncmp
(
opnd
,
reginput
,
len
)
!=
0
)
return
(
0
);
reginput
+=
len
;
...
...
This diff is collapsed.
Click to expand it.
RegularExpression.hxx.in
+
11
−
5
View file @
f45734ad
...
...
@@ -323,7 +323,8 @@ inline RegularExpression::~RegularExpression ()
*/
inline kwsys_stl::string::size_type RegularExpression::start () const
{
return(this->startp[0] - searchstring);
return static_cast<kwsys_stl::string::size_type>(
this->startp[0] - searchstring);
}
...
...
@@ -332,7 +333,8 @@ inline kwsys_stl::string::size_type RegularExpression::start () const
*/
inline kwsys_stl::string::size_type RegularExpression::end () const
{
return(this->endp[0] - searchstring);
return static_cast<kwsys_stl::string::size_type>(
this->endp[0] - searchstring);
}
/**
...
...
@@ -367,7 +369,8 @@ inline void RegularExpression::set_invalid ()
*/
inline kwsys_stl::string::size_type RegularExpression::start(int n) const
{
return this->startp[n] - searchstring;
return static_cast<kwsys_stl::string::size_type>(
this->startp[n] - searchstring);
}
...
...
@@ -376,7 +379,8 @@ inline kwsys_stl::string::size_type RegularExpression::start(int n) const
*/
inline kwsys_stl::string::size_type RegularExpression::end(int n) const
{
return this->endp[n] - searchstring;
return static_cast<kwsys_stl::string::size_type>(
this->endp[n] - searchstring);
}
/**
...
...
@@ -390,7 +394,9 @@ inline kwsys_stl::string RegularExpression::match(int n) const
}
else
{
return kwsys_stl::string(this->startp[n], this->endp[n] - this->startp[n]);
return kwsys_stl::string(this->startp[n],
static_cast<kwsys_stl::string::size_type>(
this->endp[n] - this->startp[n]));
}
}
...
...
This diff is collapsed.
Click to expand it.
kwsysDateStamp.cmake
+
1
−
1
View file @
f45734ad
...
...
@@ -7,4 +7,4 @@ SET(KWSYS_DATE_STAMP_YEAR 2009)
SET
(
KWSYS_DATE_STAMP_MONTH 03
)
# KWSys version date day component. Format is DD.
SET
(
KWSYS_DATE_STAMP_DAY 1
6
)
SET
(
KWSYS_DATE_STAMP_DAY 1
7
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment