Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
VTK
VTK
Commits
9771254f
Commit
9771254f
authored
Nov 26, 2014
by
David Gobbi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Before c99, variable decls go before other statements.
Change-Id: I949d737991fabc7f186f90273c38a590dde25241
parent
9791802c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
Wrapping/Tools/vtkParsePreprocess.c
Wrapping/Tools/vtkParsePreprocess.c
+7
-7
No files found.
Wrapping/Tools/vtkParsePreprocess.c
View file @
9771254f
...
...
@@ -275,8 +275,8 @@ static MacroInfo **preproc_macro_location(
/* if n+1 is a power of two, double allocated space */
if
(
n
>
0
&&
(
n
&
(
n
+
1
))
==
0
)
{
hptr
=
htable
[
i
];
MacroInfo
**
oldhptr
=
hptr
;
hptr
=
htable
[
i
];
hptr
=
(
MacroInfo
**
)
realloc
(
hptr
,
(
2
*
(
n
+
1
))
*
sizeof
(
MacroInfo
*
));
if
(
!
hptr
)
{
...
...
@@ -1560,8 +1560,8 @@ const char *preproc_find_include_file(
{
if
(
m
+
1
>
outputsize
)
{
outputsize
+=
m
+
1
;
char
*
oldoutput
=
output
;
outputsize
+=
m
+
1
;
output
=
(
char
*
)
realloc
(
output
,
outputsize
);
if
(
!
output
)
{
...
...
@@ -1621,8 +1621,8 @@ const char *preproc_find_include_file(
}
if
(
m
+
j
+
1
>
outputsize
)
{
outputsize
+=
m
+
j
+
1
;
char
*
oldoutput
=
output
;
outputsize
+=
m
+
j
+
1
;
output
=
(
char
*
)
realloc
(
output
,
outputsize
);
if
(
!
output
)
{
...
...
@@ -1641,8 +1641,8 @@ const char *preproc_find_include_file(
{
if
(
m
+
1
>
outputsize
)
{
outputsize
+=
m
+
1
;
char
*
oldoutput
=
output
;
outputsize
+=
m
+
1
;
output
=
(
char
*
)
realloc
(
output
,
outputsize
);
if
(
!
output
)
{
...
...
@@ -1661,8 +1661,8 @@ const char *preproc_find_include_file(
j
=
strlen
(
directory
);
if
(
j
+
m
+
2
>
outputsize
)
{
outputsize
+=
j
+
m
+
2
;
char
*
oldoutput
=
output
;
outputsize
+=
j
+
m
+
2
;
output
=
(
char
*
)
realloc
(
output
,
outputsize
);
if
(
!
output
)
{
...
...
@@ -1745,8 +1745,8 @@ void preproc_escape_string(
/* expand line buffer as necessary */
while
(
j
+
4
>
linelen
)
{
linelen
*=
2
;
char
*
oldline
=
line
;
linelen
*=
2
;
line
=
(
char
*
)
realloc
(
line
,
linelen
);
if
(
!
line
)
{
...
...
@@ -1948,8 +1948,8 @@ static int preproc_include_file(
/* expand line buffer as necessary */
while
(
j
+
4
>
linelen
)
{
linelen
*=
2
;
char
*
oldline
=
line
;
linelen
*=
2
;
line
=
(
char
*
)
realloc
(
line
,
linelen
);
if
(
!
line
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment