Document correct state transition target name.
This commit is contained in:
parent
55f0ac5272
commit
0a43faba00
@ -6031,7 +6031,6 @@ static void dosleep(void)
|
|||||||
|
|
||||||
static void dostate(void)
|
static void dostate(void)
|
||||||
{
|
{
|
||||||
char name[sNAMEMAX+1];
|
|
||||||
constvalue *automaton;
|
constvalue *automaton;
|
||||||
constvalue *state;
|
constvalue *state;
|
||||||
constvalue *stlist;
|
constvalue *stlist;
|
||||||
@ -6100,13 +6099,13 @@ static void dostate(void)
|
|||||||
listid=-1;
|
listid=-1;
|
||||||
} /* if */
|
} /* if */
|
||||||
listindex=0;
|
listindex=0;
|
||||||
length=strlen(name)+70; /* +70 for the fixed part "<transition ... />\n" */
|
length=strlen(state->name)+70; /* +70 for the fixed part "<transition ... />\n" */
|
||||||
/* see if there are any condition strings to attach */
|
/* see if there are any condition strings to attach */
|
||||||
for (index=0; (str=get_autolist(index))!=NULL; index++)
|
for (index=0; (str=get_autolist(index))!=NULL; index++)
|
||||||
length+=strlen(str);
|
length+=strlen(str);
|
||||||
if ((doc=(char*)malloc(length*sizeof(char)))!=NULL) {
|
if ((doc=(char*)malloc(length*sizeof(char)))!=NULL) {
|
||||||
do {
|
do {
|
||||||
sprintf(doc,"<transition target=\"%s\"",name);
|
sprintf(doc,"<transition target=\"%s\"",state->name);
|
||||||
if (listid>=0) {
|
if (listid>=0) {
|
||||||
/* get the source state */
|
/* get the source state */
|
||||||
stateindex=state_listitem(listid,listindex);
|
stateindex=state_listitem(listid,listindex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user