Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
uniset2
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
UniSet project repositories
uniset2
Commits
577e8515
Commit
577e8515
authored
May 31, 2011
by
Pavel Vainerman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(codegen): Исправил ошибку в генераторе кода
parent
733628ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ctl-cpp-common.xsl
Utilities/codegen/ctl-cpp-common.xsl
+1
-1
testgen.src.xml
Utilities/codegen/tests/testgen.src.xml
+1
-1
No files found.
Utilities/codegen/ctl-cpp-common.xsl
View file @
577e8515
...
...
@@ -497,6 +497,7 @@ askPause(conf->getPIntProp(cnode,"askPause",2000))
<xsl:if
test=
"normalize-space(@no_check_id)!='1'"
>
if(
<xsl:value-of
select=
"normalize-space(@name)"
/>
== UniSetTypes::DefaultObjectId )
throw Exception( myname + ": Not found ID for (
<xsl:value-of
select=
"@name"
/>
) " + conf->getProp(cnode,"
<xsl:value-of
select=
"@name"
/>
") );
</xsl:if>
if( node_
<xsl:value-of
select=
"normalize-space(@name)"
/>
== UniSetTypes::DefaultObjectId )
{
...
...
@@ -505,7 +506,6 @@ askPause(conf->getPIntProp(cnode,"askPause",2000))
node_
<xsl:value-of
select=
"normalize-space(@name)"
/>
= conf->getLocalNode();
}
</xsl:if>
</xsl:for-each>
<xsl:for-each
select=
"//msgmap/item"
>
...
...
Utilities/codegen/tests/testgen.src.xml
View file @
577e8515
...
...
@@ -20,7 +20,7 @@
<!-- name - название переменной в конф. файле -->
<item
name=
"input1_s"
vartype=
"in"
iotype=
"DI"
comment=
"comment for input1"
/>
<item
name=
"input2_s"
vartype=
"in"
iotype=
"DI"
comment=
"comment for input2"
/>
<item
name=
"output1_c"
vartype=
"out"
iotype=
"DO"
omment=
"comment for output1"
/>
<item
name=
"output1_c"
vartype=
"out"
iotype=
"DO"
omment=
"comment for output1"
no_check_id=
"1"
/>
</smap>
<msgmap>
...
...
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