Changeset 1d012410 in rtems


Ignore:
Timestamp:
Jan 23, 1998, 4:56:40 PM (23 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
173c59c8
Parents:
4a7c0451
Message:

Fixed some "NodeNameIncludesChapterName?" problems which were uncovered
doing the HWAPI manual.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • doc/tools/bmenu/main.c

    r4a7c0451 r1d012410  
    722722      strcpy( ChapterName, NodeName );
    723723
     724    } else if ( NodeNameIncludesChapter ) {
     725
     726      sprintf( Buffer, "%s %s", ChapterName, NodeName );
     727      strcpy( NodeName, Buffer );
    724728    }
    725729
     
    829833        if ( up_node->level == (line->level - 1) ) {
    830834          LineCopySectionName( up_node, Buffer );
    831           if (NodeNameIncludesChapter)
    832             sprintf( UpNodeName, "%s %s", ChapterName, Buffer );
    833           else
     835          if (NodeNameIncludesChapter) {
     836            if (!strcmp(ChapterName, Buffer))
     837              sprintf( UpNodeName, "%s", Buffer );
     838            else
     839              sprintf( UpNodeName, "%s %s", ChapterName, Buffer );
     840          } else
    834841            sprintf( UpNodeName, "%s", Buffer );
    835842          break;
     
    854861
    855862    /* node_line was previously inserted */
    856     sprintf(
    857       node_line->Contents,
    858       "@node %s, %s, %s, %s",
    859       NodeName,
    860       NextNodeName,
    861       PreviousNodeName,
    862       UpNodeName
    863     );
     863    if (!NodeNameIncludesChapter) {
     864      sprintf(
     865        node_line->Contents,
     866        "@node %s, %s, %s, %s",
     867        NodeName,
     868        NextNodeName,
     869        PreviousNodeName,
     870        UpNodeName
     871      );
     872    } else {
     873      sprintf(
     874        node_line->Contents,
     875        "@node %s, %s, %s, %s",
     876        NodeName,
     877        NextNodeName,
     878        PreviousNodeName,
     879        UpNodeName
     880      );
     881    }
    864882
    865883    strcpy( PreviousNodeName, NodeName );
Note: See TracChangeset for help on using the changeset viewer.