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
9870310f
Commit
9870310f
authored
May 07, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Flags = 'integer' allowed
parent
29af1559
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
66 additions
and
12 deletions
+66
-12
src/exe/co_convert/src/cnv_classread.cpp
src/exe/co_convert/src/cnv_classread.cpp
+65
-12
src/exe/co_convert/src/cnv_classread.h
src/exe/co_convert/src/cnv_classread.h
+1
-0
No files found.
src/exe/co_convert/src/cnv_classread.cpp
View file @
9870310f
...
...
@@ -641,19 +641,41 @@ int ClassRead::attribute_attr( char *name, char *value)
}
else
if
(
strcmp
(
low
(
name
),
"flags"
)
==
0
)
{
if
(
str
cmp
(
attr_flags
,
""
)
!=
0
)
strcat
(
attr_flags
,
" | "
);
if
(
strncmp
(
value
,
"PWR_MASK_"
,
9
)
==
0
)
if
(
str
ncmp
(
value
,
"PWR_MASK_"
,
9
)
==
0
)
{
if
(
strcmp
(
attr_flags
,
""
)
!=
0
)
strcat
(
attr_flags
,
" | "
);
strcat
(
attr_flags
,
&
value
[
9
]);
else
strcat
(
attr_flags
,
value
);
if
(
strcmp
(
value
,
"PWR_MASK_POINTER"
)
==
0
)
attr_pointer
=
1
;
else
if
(
strcmp
(
value
,
"PWR_MASK_ARRAY"
)
==
0
)
attr_array
=
1
;
else
if
(
strcmp
(
value
,
"PWR_MASK_RTVIRTUAL"
)
==
0
)
attr_rtvirtual
=
1
;
if
(
strcmp
(
value
,
"PWR_MASK_POINTER"
)
==
0
)
attr_pointer
=
1
;
else
if
(
strcmp
(
value
,
"PWR_MASK_ARRAY"
)
==
0
)
attr_array
=
1
;
else
if
(
strcmp
(
value
,
"PWR_MASK_RTVIRTUAL"
)
==
0
)
attr_rtvirtual
=
1
;
}
else
{
int
flags_value
;
nr
=
sscanf
(
value
,
"%d"
,
&
flags_value
);
if
(
nr
!=
1
)
{
return
1
;
}
if
(
strcmp
(
attr_flags
,
""
)
!=
0
)
strcat
(
attr_flags
,
" | "
);
strcat
(
attr_flags
,
flags_to_string
(
flags_value
));
switch
(
flags_value
)
{
case
pwr_mAdef_pointer
:
attr_pointer
=
1
;
break
;
case
pwr_mAdef_array
:
attr_array
=
1
;
break
;
case
pwr_mAdef_rtvirtual
:
attr_rtvirtual
=
1
;
break
;
default:
;
}
}
}
else
if
(
strcmp
(
low
(
name
),
"elements"
)
==
0
)
{
...
...
@@ -1193,3 +1215,34 @@ int ClassRead::copy_tmp_file( char *tmpfilename, ofstream& fp_to)
return
1
;
}
char
*
ClassRead
::
flags_to_string
(
int
value
)
{
static
char
str
[
40
];
switch
(
value
)
{
case
pwr_mAdef_pointer
:
strcpy
(
str
,
"Pointer"
);
break
;
case
pwr_mAdef_array
:
strcpy
(
str
,
"Array"
);
break
;
case
pwr_mAdef_backup
:
strcpy
(
str
,
"Backup"
);
break
;
case
pwr_mAdef_changelog
:
strcpy
(
str
,
"Changelog"
);
break
;
case
pwr_mAdef_state
:
strcpy
(
str
,
"State"
);
break
;
case
pwr_mAdef_const
:
strcpy
(
str
,
"Const"
);
break
;
case
pwr_mAdef_rtvirtual
:
strcpy
(
str
,
"Rtvirtual"
);
break
;
case
pwr_mAdef_devbodyref
:
strcpy
(
str
,
"Devbodyref"
);
break
;
case
pwr_mAdef_dynamic
:
strcpy
(
str
,
"Dynamic"
);
break
;
case
pwr_mAdef_objidself
:
strcpy
(
str
,
"Objidself"
);
break
;
case
pwr_mAdef_noedit
:
strcpy
(
str
,
"Noedit"
);
break
;
case
pwr_mAdef_invisible
:
strcpy
(
str
,
"Invisible"
);
break
;
case
pwr_mAdef_refdirect
:
strcpy
(
str
,
"Refdirect"
);
break
;
case
pwr_mAdef_noinvert
:
strcpy
(
str
,
"Noinvert"
);
break
;
case
pwr_mAdef_noremove
:
strcpy
(
str
,
"Noremove"
);
break
;
case
pwr_mAdef_rtdbref
:
strcpy
(
str
,
"Rtdbref"
);
break
;
case
pwr_mAdef_private
:
strcpy
(
str
,
"Private"
);
break
;
case
pwr_mAdef_class
:
strcpy
(
str
,
"Class"
);
break
;
case
pwr_mAdef_subclass
:
strcpy
(
str
,
"Subclass"
);
break
;
case
pwr_mAdef_buffer
:
strcpy
(
str
,
"Buffer"
);
break
;
case
pwr_mAdef_nowbl
:
strcpy
(
str
,
"Nowbl"
);
break
;
case
pwr_mAdef_alwayswbl
:
strcpy
(
str
,
"Alwayswbl"
);
break
;
default:
strcpy
(
str
,
"Unknown"
);
}
return
str
;
}
src/exe/co_convert/src/cnv_classread.h
View file @
9870310f
...
...
@@ -192,6 +192,7 @@ class ClassRead {
int
object_close
();
char
*
low
(
char
*
in
);
int
copy_tmp_file
(
char
*
tmpfilename
,
ofstream
&
fp_to
);
char
*
flags_to_string
(
int
value
);
// html
int
generate_html
;
...
...
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