Ignore:
Timestamp:
Sep 12, 2002, 12:31:01 AM (23 years ago)
Author:
bird
Message:

Bugfixes for asm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tools/vslick/kdev.e

    r9222 r9223  
    1 /* $Id: kdev.e,v 1.2 2002-09-11 02:53:32 bird Exp $
     1/* $Id: kdev.e,v 1.3 2002-09-11 22:31:01 bird Exp $
    22 *
    33 * Visual SlickEdit Documentation Macros.
     
    123123static int k_alignup(int iValue, iAlign)
    124124{
     125    if (iAlign <= 0)
     126    {
     127        message('k_alignup: iValue='iValue ' iAlign='iAlign);
     128        iAlign = 4;
     129    }
    125130    return ((iValue intdiv iAlign) + 1) * iAlign;
    126131}
     
    154159         * Found extension.
    155160         */
    156         sLeft = eq_name2value('left',sLine);
    157         sRight = eq_name2value('right',sLine);
     161        sLeft = strip(eq_name2value('left',sLine));
     162        sRight = strip(eq_name2value('right',sLine));
    158163
    159164        /* Read comment column too */
     
    181186static boolean k_line_comment()
    182187{
    183     boolean fLineComment;
    184     fLineComment = 0;
     188    _str    sRight = '';
     189    boolean fLineComment = false;
    185190    if (k_readboxconfig(sLeft, sRight, iColumn))
    186191        fLineComment = (sRight == '' || iColumn > 0);
     
    856861    {
    857862        sText = k_comment();
    858         sText = substr(sText, length(sText));
    859     }
    860     if (length(sText) == 1)
    861         sText = ' ':+sText;
     863        sText = ' ':+substr(sText, length(sText));
     864    }
     865
    862866    if (sStr != '')
    863867        sText = sText:+' ':+sStr;
     
    889893{
    890894    if (k_line_comment())
    891     {
    892895        sText = k_comment();
    893         if (length(sText) == 1)
    894             sText = ' ':+sText;
    895     }
    896896    else
    897897    {
     
    945945    int     iCursorLine;
    946946    int     iPadd = k_alignup(11, p_SyntaxIndent);
    947 
    948947    /* look for parameters */
    949948    boolean fFoundFn = !k_func_goto_nearest_function();
     
    10501049        case 'GPL':
    10511050            sProg = skProgram;
     1051            k_javadoc_box_line()
    10521052            if (sProg == '')
    10531053                sProg = 'This program';
     
    10741074        case 'LGPL':
    10751075            sProg = skProgram;
     1076            k_javadoc_box_line()
    10761077            if (sProg == '')
    10771078                sProg = 'This program';
Note: See TracChangeset for help on using the changeset viewer.