Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
b9ee14b3
Commit
b9ee14b3
authored
Apr 20, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix in size of references
parent
2c49d76f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
10 deletions
+30
-10
xtt/lib/ge/src/ge_graph.cpp
xtt/lib/ge/src/ge_graph.cpp
+30
-10
No files found.
xtt/lib/ge/src/ge_graph.cpp
View file @
b9ee14b3
...
...
@@ -3326,16 +3326,26 @@ graph_eDatabase Graph::parse_attr_name( char *name, char *parsed_name,
if
(
(
s
=
strstr
(
str
,
"$user"
)))
{
if
(
(
s
=
strchr
(
str
,
'#'
)))
{
if
(
strcmp
(
s
,
"##Float32"
)
==
0
)
if
(
strcmp
(
s
,
"##Float32"
)
==
0
)
{
*
type
=
pwr_eType_Float32
;
else
if
(
strcmp
(
s
,
"##Float64"
)
==
0
)
*
size
=
sizeof
(
pwr_tFloat32
);
}
else
if
(
strcmp
(
s
,
"##Float64"
)
==
0
)
{
*
type
=
pwr_eType_Float64
;
else
if
(
strcmp
(
s
,
"##Int32"
)
==
0
)
*
size
=
sizeof
(
pwr_tFloat64
);
}
else
if
(
strcmp
(
s
,
"##Int32"
)
==
0
)
{
*
type
=
pwr_eType_Int32
;
else
if
(
strcmp
(
s
,
"##Boolean"
)
==
0
)
*
size
=
sizeof
(
pwr_tInt32
);
}
else
if
(
strcmp
(
s
,
"##Boolean"
)
==
0
)
{
*
type
=
pwr_eType_Boolean
;
else
*
size
=
sizeof
(
pwr_tBoolean
);
}
else
{
*
type
=
pwr_eType_String
;
*
size
=
80
;
}
*
s
=
0
;
}
if
(
str
[
0
]
==
'!'
)
{
...
...
@@ -3351,16 +3361,26 @@ graph_eDatabase Graph::parse_attr_name( char *name, char *parsed_name,
if
(
(
s
=
strstr
(
str
,
"$local."
)))
{
strcpy
(
parsed_name
,
s
+
strlen
(
"$local."
));
if
(
(
s
=
strchr
(
parsed_name
,
'#'
)))
{
if
(
strcmp
(
s
,
"##Float32"
)
==
0
)
if
(
strcmp
(
s
,
"##Float32"
)
==
0
)
{
*
type
=
pwr_eType_Float32
;
else
if
(
strcmp
(
s
,
"##Float64"
)
==
0
)
*
size
=
sizeof
(
pwr_tFloat32
);
}
else
if
(
strcmp
(
s
,
"##Float64"
)
==
0
)
{
*
type
=
pwr_eType_Float64
;
else
if
(
strcmp
(
s
,
"##Int32"
)
==
0
)
*
size
=
sizeof
(
pwr_tFloat64
);
}
else
if
(
strcmp
(
s
,
"##Int32"
)
==
0
)
{
*
type
=
pwr_eType_Int32
;
else
if
(
strcmp
(
s
,
"##Boolean"
)
==
0
)
*
size
=
sizeof
(
pwr_tInt32
);
}
else
if
(
strcmp
(
s
,
"##Boolean"
)
==
0
)
{
*
type
=
pwr_eType_Boolean
;
else
*
size
=
sizeof
(
pwr_tBoolean
);
}
else
{
*
type
=
pwr_eType_String
;
*
size
=
80
;
}
*
s
=
0
;
}
if
(
str
[
0
]
==
'!'
)
{
...
...
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