Changeset b4767da in rtems


Ignore:
Timestamp:
01/30/98 19:17:25 (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
bb9084db
Parents:
3a85d03d
Message:

Modified output of @Example style in MsWord? output routine so it would
be one paragraph with manual line breaks rather than multiple paragraphs..

Location:
doc/tools/pdl2texi
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • doc/tools/pdl2texi/base.h

    r3a85d03d rb4767da  
    2323 */
    2424
    25 #define BUFFER_SIZE    (2 * 1024)
    26 #define PARAGRAPH_SIZE (2 * 1024)
     25#define BUFFER_SIZE    (10 * 1024)
     26#define PARAGRAPH_SIZE (8 * 1024)
    2727
    2828#define NUMBER_ELEMENTS( _x ) (sizeof(_x) / sizeof _x[0])
  • doc/tools/pdl2texi/main.c

    r3a85d03d rb4767da  
    565565*/
    566566  fclose( OutFile );
    567   exit( status );
     567  exit( 1 );
    568568}
    569569
     
    27792779  char          Buffer[ PARAGRAPH_SIZE ];
    27802780  int           i;
     2781  int           length;
    27812782  char          ChapterTitle[ PARAGRAPH_SIZE ];
    27822783  char          InfoFile[ PARAGRAPH_SIZE ];
     
    29202921        sprintf( Buffer, "@Subheading = %s\n", line->Contents );
    29212922        strcpy( line->Contents, Buffer );
     2923        line = (Line_Control *) line->Node.next;
    29222924
    29232925        /* now take care of the raw text which is here */
    29242926
    2925          line = (Line_Control *) line->Node.next;
     2927#if 0
    29262928        while ( !line->keyword ) {
    29272929          sprintf( Buffer, "@Example = %s\n", line->Contents );
     
    29292931          line = (Line_Control *) line->Node.next;
    29302932        }
     2933
     2934        /* at this point line points to the next keyword */
     2935#endif
     2936
     2937        /* now take care of the raw text which is here */
     2938
     2939        new_line = AllocateLine();
     2940        _Chain_Insert( line->Node.previous, &new_line->Node );
     2941        strcpy( new_line->Contents, "@Example = " );
     2942
     2943        do {
     2944          if ( strlen( line->Contents ) ) {
     2945            new_line->keyword = line->keyword;
     2946            new_line->format = line->format;
     2947            length = strlen(new_line->Contents);
     2948            if ( (length + strlen(line->Contents) + 12) > PARAGRAPH_SIZE ) {
     2949              fprintf( stderr, "Output line too long at %d\n", line->number );
     2950              exit_application( 1 );
     2951            }
     2952
     2953            strcat( new_line->Contents, line->Contents );
     2954            strcat( new_line->Contents, "<@ManualCR>" );
     2955            line = DeleteLine( line );
     2956          } else {
     2957            line = (Line_Control *) line->Node.next;
     2958            new_line = AllocateLine();
     2959            _Chain_Insert( line->Node.previous, &new_line->Node );
     2960            strcpy( new_line->Contents, "@Example = " );
     2961          }
     2962        } while ( !line->keyword );
    29312963
    29322964        /* at this point line points to the next keyword */
Note: See TracChangeset for help on using the changeset viewer.