Ignore:
Timestamp:
Jan 12, 2005, 9:19:35 PM (21 years ago)
Author:
bird
Message:

use tagging to get args.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/VSlickMacros/kdev.e

    r113 r214  
    7979#pragma option(redeclvars, on)
    8080#include 'slick.sh'
     81#ifndef VS_TAGDETAIL_context_args
     82/* newer vslick version. */
     83#include 'tagsdb.sh'
     84//#pragma option(strict,on)
     85/*#else: Version 4.0 (OS/2) */
     86#endif
    8187
    8288/* Remeber to change these! */
     
    117123    i = pos("/", date);
    118124    j = pos("/", date, i+1);
    119     month = substr(date, 1, i-1);
     125    _str month = substr(date, 1, i-1);
    120126    if (length(month) == 1) month = '0'month;
    121     day   = substr(date, i+1, j-i-1);
     127    _str day   = substr(date, i+1, j-i-1);
    122128    if (length(day)   == 1) day   = '0'day;
    123     year  = substr(date, j+1);
     129    _str year  = substr(date, j+1);
    124130    return year"-"month"-"day;
    125131}
     
    132138static _str k_year()
    133139{
    134     date = _date('U');
     140    _str date = _date('U');
    135141    return  substr(date, pos("/",date, pos("/",date)+1)+1, 4);
    136142}
     
    172178     * Get comment setup from the lexer.
    173179     */
     180    _str sLine = '';
    174181    if (sLexer)
    175182    {
    176         sLine = '';
    177183        /* multiline */
    178184        rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'mlcomment', sLine);
     
    196202            sRight = '';
    197203            iColumn = 0;
    198             sTmp = word(sLine, 2);
     204            _str sTmp = word(sLine, 2);
    199205            if (isnumber(sTmp))
    200206                iColumn = (int)sTmp;
     
    207213     * Read the nonboxchars and determin user or default box.ini.
    208214     */
    209     sFile = slick_path_search("ubox.ini");
    210     frc = _ini_get_value(sFile, sExt, 'nonboxchars', sLine);
     215    _str sFile = slick_path_search("ubox.ini");
     216    boolean frc = _ini_get_value(sFile, sExt, 'nonboxchars', sLine);
    211217    if (frc)
    212218    {
    213         sFile = slick_path_search("box.ini")
     219        sFile = slick_path_search("box.ini");
    214220        frc = _ini_get_value(sFile, sExt, 'nonboxchars', sLine);
    215221    }
     
    252258{
    253259    _str    sRight = '';
     260    _str    sLeft = '';
     261    int     iColumn;
    254262    boolean fLineComment = false;
    255263    if (k_commentconfig(sLeft, sRight, iColumn))
     
    284292    }
    285293
     294    int iCol = 0;
    286295    if (iColumn <= 0)
    287296    {   /*
     
    334343static _str k_comment(boolean fRight = false)
    335344{
    336     sComment = '/*';
     345    _str sLeft, sRight;
     346    int iColumn;
     347    _str sComment = '/*';
    337348    if (k_commentconfig(sLeft, sRight, iColumn))
    338349        sComment = (!fRight || iColumn > 0 ? sLeft : sRight);
     
    352363static void k_box_start(sTag)
    353364{
     365    _str sLeft, sRight;
     366    int iColumn;
    354367    if (!k_commentconfig(sLeft, sRight, iColumn))
    355368        return;
     
    359372           _insert_text(" ");
    360373
    361     sText = sLeft;
     374    _str sText = sLeft;
    362375    if (sTag != '' && fkStyleBoxTag)
    363376    {
     
    367380    }
    368381
     382    int i;
    369383    for (i = length(sText); i <= ikStyleWidth - p_col; i++)
    370384        sText = sText:+'*';
     
    381395static void k_box_line(_str sStr)
    382396{
     397    _str sLeft, sRight;
     398    int iColumn;
    383399    if (!k_commentconfig(sLeft, sRight, iColumn))
    384400        return;
     
    387403           _insert_text(" ");
    388404
    389     sText = '';
     405    _str sText = '';
    390406    if (k_line_comment())
    391407        sText = sLeft;
     
    394410
    395411    sText = sText:+' ';
     412    int i;
    396413    for (i = length(sText); i < p_SyntaxIndent; i++)
    397414        sText = sText:+' ';
     
    412429static void k_box_end()
    413430{
     431    _str sLeft, sRight;
     432    int iColumn, i;
    414433    if (!k_commentconfig(sLeft, sRight, iColumn))
    415434        return;
     
    418437           _insert_text(" ");
    419438
    420     sText = '';
     439    _str sText = '';
    421440    if (k_line_comment())
    422441        sText = sLeft;
     
    441460{
    442461    boolean fFix = false;               /* cursor at function fix. (last function) */
    443     cur_line = p_line;
    444     prev_line = -1;
    445     next_line = -1;
     462    int cur_line = p_line;
     463    int prev_line = -1;
     464    int next_line = -1;
     465    typeless org_pos;
    446466    _save_pos2(org_pos);
    447467
     
    505525     * Check if this is a real function implementation.
    506526     */
     527    typeless procpos;
    507528    _save_pos2(procpos);
    508     if (!k_func_goto_nearest_functions())
    509     {
    510         proc_line = p_line;
     529    if (!k_func_goto_nearest_function())
     530    {
     531        int proc_line = p_line;
    511532
    512533        if (!k_func_searchcode("{"))
     
    532553static _str k_func_getfunction_name()
    533554{
    534     sFunctionName = current_proc();
     555    _str sFunctionName = current_proc();
    535556    if (!sFunctionName)
    536557        sFunctionName = "";
     
    546567static _str k_func_getparams()
    547568{
     569    typeless org_pos;
    548570    _save_pos2(org_pos);
     571
     572    /*
     573     * Try use the tags first.
     574     */
     575    _UpdateContext(true);
     576    int context_id = tag_current_context();
     577    if (context_id <= 0)
     578    {
     579        k_func_goto_nearest_function();
     580        context_id = tag_current_context();
     581    }
     582    if (context_id > 0)
     583    {
     584        _str args = '';
     585        _str type = '';
     586       tag_get_detail2(VS_TAGDETAIL_context_args, context_id, args);
     587       tag_get_detail2(VS_TAGDETAIL_context_type, context_id, type);
     588       if (tag_tree_type_is_func(type))
     589           return args
     590           //caption = tag_tree_make_caption_fast(VS_TAGMATCH_context,context_id,true,true,false);
     591    }
    549592
    550593    /*
     
    558601         * Get parameters.
    559602         */
     603        typeless posStart;
    560604        _save_pos2(posStart);
    561         offStart = _QROffset();
     605        long offStart = _QROffset();
    562606        if (!find_matching_paren())
    563607        {
    564             offEnd = _QROffset();
     608            long offEnd = _QROffset();
    565609            _restore_pos2(posStart);
    566610            p_col++;
    567             _str sParamsRaw = strip(get_text(offEnd - offStart - 1));
     611            _str sParamsRaw = strip(get_text((int)(offEnd - offStart - 1)));
    568612
    569613
     
    574618
    575619            int i;
     620            _str chPrev;
    576621            for (i = 1, chPrev = ' '; i <= length(sParamsRaw); i++)
    577622            {
    578                 ch = substr(sParamsRaw, i, 1);
     623                _str ch = substr(sParamsRaw, i, 1);
    579624
    580625                /*
     
    673718    if (iParam == iCurParam)
    674719    {   /* (yeah, we did!) */
    675         sArg = strip(substr(sParams, iStartParam, i - iStartParam));
     720        _str sArg = strip(substr(sParams, iStartParam, i - iStartParam));
    676721        /* remove M$ stuff */
    677722        sArg = stranslate(sArg, "", "IN", "E");
     
    719764    int     iParLevel;
    720765    int     iCurParam;
    721 
    722     sType = sName = sDefault = "";
     766    _str    sType = "", sName = "", sDefault = "";
    723767
    724768    /* check for 0 parameters */
     
    749793static _str k_func_getreturntype(boolean fPureType = false)
    750794{
     795    typeless org_pos;
    751796    _save_pos2(org_pos);
    752797
     
    759804         * Return type is from function start to function name...
    760805         */
     806        typeless posStart;
    761807        _save_pos2(posStart);
    762         offStart = _QROffset();
     808        long offStart = _QROffset();
    763809
    764810        if (!k_func_searchcode("("))               /* makes some assumptions. */
    765811        {
    766812            prev_word();
    767             offEnd = _QROffset();
     813            long offEnd = _QROffset();
    768814            _restore_pos2(posStart);
    769             _str sTypeRaw = strip(get_text(offEnd - offStart));
     815            _str sTypeRaw = strip(get_text((int)(offEnd - offStart)));
    770816
    771817            //say 'sTypeRaw='sTypeRaw;
     
    838884
    839885            int i;
     886            _str chPrev;
    840887            for (i = 1, chPrev = ' '; i <= length(sTypeRaw); i++)
    841888            {
    842                 ch = substr(sTypeRaw, i, 1);
     889                _str ch = substr(sTypeRaw, i, 1);
    843890
    844891                /*
     
    912959static boolean k_func_in_code()
    913960{
     961    typeless searchsave;
    914962    _save_pos2(searchsave);
    915963    boolean fRc = !_in_comment();
     
    924972static _str k_func_get_next_code_text()
    925973{
    926     _str ch;
     974    typeless searchsave;
    927975    _save_pos2(searchsave);
    928     ch = k_func_get_next_code_text2();
     976    _str ch = k_func_get_next_code_text2();
    929977    _restore_pos2(searchsave);
    930978    return ch;
     
    939987    boolean fRc;
    940988    int     curline = p_line;
    941 
     989    typeless searchsave;
    942990    _save_pos2(searchsave);
    943991    k_func_get_next_code_text2();
     
    9581006    do
    9591007    {
    960         curcol = ++p_col;
    961         end_line()
     1008        int curcol = ++p_col;
     1009        end_line();
    9621010        if (p_col <= curcol)
    9631011        {
     
    9931041static void k_javadoc_box_start(_str sStr = '', boolean fDouble = true)
    9941042{
     1043    _str sLeft, sRight;
     1044    int iColumn;
    9951045    if (!k_commentconfig(sLeft, sRight, iColumn))
    9961046        return;
     
    10001050           _insert_text(" ");
    10011051
    1002     sText = sLeft;
     1052    _str sText = sLeft;
    10031053    if (fDouble)
    10041054        sText = sLeft:+substr(sLeft, length(sLeft), 1);
     
    10131063static void k_javadoc_box_line(_str sStr = '', int iPadd = 0, _str sStr2 = '', int iPadd2 = 0, _str sStr3 = '')
    10141064{
     1065    _str sLeft, sRight;
     1066    int iColumn;
    10151067    if (!k_commentconfig(sLeft, sRight, iColumn))
    10161068        return;
     
    10191071           _insert_text(" ");
    10201072
     1073    _str sText;
    10211074    if (k_line_comment())
    10221075        sText = sLeft;
     
    10311084    if (iPadd > 0)
    10321085    {
     1086        int i;
    10331087        for (i = length(sText); i < iPadd; i++)
    10341088            sText = sText:+' ';
     
    10541108static void k_javadoc_box_end()
    10551109{
     1110    _str sLeft, sRight;
     1111    int iColumn;
    10561112    if (!k_commentconfig(sLeft, sRight, iColumn))
    10571113        return;
     
    10601116           _insert_text(" ");
    10611117
     1118    _str sText;
    10621119    if (k_line_comment())
    10631120        sText = sLeft;
     
    11331190         */
    11341191        int     iPadd2 = 0;
     1192        int     i;
    11351193        for (i = 0; i < cArgs; i++)
    11361194        {
     
    11501208            if (!k_func_enumparams(sArgs, i, sType, sName, sDefault))
    11511209            {
    1152                 sStr3 = '';
     1210                _str sStr3 = '';
    11531211                if (sDefault != "")
    11541212                    sStr3 = '(default='sDefault')';
     
    11691227        k_javadoc_box_line('@time', iPadd);
    11701228        k_javadoc_box_line('@sketch', iPadd);
    1171     }
    1172     k_javadoc_box_line('@status', iPadd);
    1173     k_javadoc_box_line('@author', iPadd, skUserName ' <' skUserEmail '>');
    1174     if (fkStyleFullHeaders)
     1229        k_javadoc_box_line('@status', iPadd);
     1230        k_javadoc_box_line('@author', iPadd, skUserName ' <' skUserEmail '>');
    11751231        k_javadoc_box_line('@remark', iPadd);
     1232    }
    11761233    k_javadoc_box_end();
    11771234
     
    12221279
    12231280        case 'GPL':
    1224             sProg = skProgram;
    1225             k_javadoc_box_line()
     1281            _str sProg = skProgram;
     1282            k_javadoc_box_line();
    12261283            if (sProg == '')
    12271284                sProg = 'This program';
     
    12351292            k_javadoc_box_line('the Free Software Foundation; either version 2 of the License, or');
    12361293            k_javadoc_box_line('(at your option) any later version.');
    1237             k_javadoc_box_line()
     1294            k_javadoc_box_line();
    12381295            k_javadoc_box_line(sProg ' is distributed in the hope that it will be useful,');
    12391296            k_javadoc_box_line('but WITHOUT ANY WARRANTY; without even the implied warranty of');
    12401297            k_javadoc_box_line('MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the');
    12411298            k_javadoc_box_line('GNU General Public License for more details.');
    1242             k_javadoc_box_line()
     1299            k_javadoc_box_line();
    12431300            k_javadoc_box_line('You should have received a copy of the GNU General Public License');
    12441301            k_javadoc_box_line('along with ' sProg '; if not, write to the Free Software');
     
    12481305        case 'LGPL':
    12491306            sProg = skProgram;
    1250             k_javadoc_box_line()
     1307            k_javadoc_box_line();
    12511308            if (sProg == '')
    12521309                sProg = 'This program';
     
    12601317            k_javadoc_box_line('by the Free Software Foundation; either version 2 of the License, or');
    12611318            k_javadoc_box_line('(at your option) any later version.');
    1262             k_javadoc_box_line()
     1319            k_javadoc_box_line();
    12631320            k_javadoc_box_line(sProg ' is distributed in the hope that it will be useful,');
    12641321            k_javadoc_box_line('but WITHOUT ANY WARRANTY; without even the implied warranty of');
    12651322            k_javadoc_box_line('MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the');
    12661323            k_javadoc_box_line('GNU Lesser General Public License for more details.');
    1267             k_javadoc_box_line()
     1324            k_javadoc_box_line();
    12681325            k_javadoc_box_line('You should have received a copy of the GNU Lesser General Public License');
    12691326            k_javadoc_box_line('along with ' sProg '; if not, write to the Free Software');
     
    13481405void k_oneliner()
    13491406{
     1407    _str sLeft, sRight;
     1408    int iColumn;
    13501409    if (    k_commentconfig(sLeft, sRight, iColumn)
    13511410        &&  iColumn > 0)
     
    13661425{
    13671426    /* not supported for column based sources */
     1427    _str sLeft, sRight;
     1428    int iColumn;
    13681429    if (    !k_commentconfig(sLeft, sRight, iColumn)
    13691430        ||  iColumn > 0)
    13701431        return;
    1371 
     1432    _str sStr;
    13721433    if (skChange != '')
    13731434        sStr = skChange ' (' skUserInitials ')';
     
    13861447{
    13871448    /* kso I5-10000 2002-09-10: */
     1449    _str sSig;
    13881450    if (skChange != '')
    13891451        sSig = skUserInitials ' ' skChange ' ' k_date() ': ';
     
    14021464void klib_klogentry()
    14031465{
     1466    typeless org_pos;
    14041467    _save_pos2(org_pos);
    14051468
     
    14251488            {
    14261489                p_col++;
    1427                 cArgs = k_func_countparams(sParams);
     1490                int cArgs = k_func_countparams(sParams);
    14281491                if (cArgs > 0)
    14291492                {
    1430                     sArgs = "";
     1493                    _str sArgs = "";
     1494                    int i;
    14311495                    for (i = 0; i < cArgs; i++)
    14321496                    {
    1433                         _str sType, sName, sDefault
     1497                        _str sType, sName, sDefault;
    14341498                        if (!k_func_enumparams(sParams, i, sType, sName, sDefault))
    14351499                            sArgs = sArgs', 'sName;
     
    14471511                if (def_next_word_style == 'E')
    14481512                    prev_word();
     1513                int iIgnorePos = 0;
    14491514                if (substr(cur_word(iIgnorePos), 1, 9) == "KLOGENTRY")
    14501515                    delete_line();
     
    14681533void klib_klogexit()
    14691534{
     1535    typeless org_pos;
    14701536    _save_pos2(org_pos);
    14711537
     
    14871553             * Insert text.
    14881554             */
    1489             cur_col = p_col;
     1555            int cur_col = p_col;
    14901556            if (sType == 'void' || sType == 'VOID')
    14911557            {   /* procedure */
     1558                int iIgnorePos;
    14921559                fReturn = cur_word(iIgnorePos) == 'return';
    14931560                if (!fReturn)
     
    15011568                if (fReturn)
    15021569                {
     1570                    int i;
    15031571                    for (i = 1; i < cur_col; i++)
    15041572                        _insert_text(" ");
     
    15091577            {   /* function */
    15101578                _insert_text("KLOGEXIT();\n");
     1579                int i;
    15111580                for (i = 1; i < cur_col; i++)
    15121581                    _insert_text(" ");
     
    15161585                 * Insert value if possible.
    15171586                 */
     1587                typeless valuepos;
    15181588                _save_pos2(valuepos);
    15191589                next_word();
    15201590                if (def_next_word_style == 'E')
    15211591                    prev_word();
     1592                int iIgnorePos;
    15221593                if (cur_word(iIgnorePos) == 'return')
    15231594                {
    15241595                    p_col += length('return');
     1596                    typeless posStart;
    15251597                    _save_pos2(posStart);
    1526                     offStart = _QROffset();
     1598                    long offStart = _QROffset();
    15271599                    if (!k_func_searchcode(";", "E+"))
    15281600                    {
    1529                         offEnd = _QROffset();
     1601                        long offEnd = _QROffset();
    15301602                        _restore_pos2(posStart);
    1531                         _str sValue = strip(get_text(offEnd - offStart));
     1603                        _str sValue = strip(get_text((int)(offEnd - offStart)));
    15321604                        //say 'sValue = 'sValue;
    15331605                        _restore_pos2(valuepos);
     
    15421614             * Remove old KLOGEXIT statement on previous line if any.
    15431615             */
     1616            typeless valuepos;
    15441617            _save_pos2(valuepos);
    1545             newexitline = p_line;
     1618            int newexitline = p_line;
    15461619            p_line--; p_col = 1;
    15471620            next_word();
    15481621            if (def_next_word_style == 'E')
    15491622                prev_word();
     1623            int iIgnorePos;
    15501624            if (p_line == newexitline - 1 && substr(cur_word(iIgnorePos), 1, 8) == 'KLOGEXIT')
    15511625                delete_line();
     
    15741648                    else
    15751649                    {
     1650                        typeless returnget;
    15761651                        _save_pos2(returnget);
    15771652                        k_func_searchcode("return", "E-");
    1578                         return_col = p_col;
     1653                        int return_col = p_col;
    15791654                        _restore_pos2(returnget);
    15801655
     
    15901665                    prev_word();
    15911666                    p_col -= p_SyntaxIndent;
    1592                     codecol = p_col;
     1667                    int codecol = p_col;
    15931668                    _insert_text("{\n");
    15941669                    while (p_col < codecol)
     
    16131688void klib_klog_file_ask()
    16141689{
    1615     klib_klog_file_int(true)
     1690    klib_klog_file_int(true);
    16161691}
    16171692
     
    16221697void klib_klog_file_no_ask()
    16231698{
    1624     klib_klog_file_int(false)
     1699    klib_klog_file_int(false);
    16251700}
    16261701
     
    16581733        center_line();
    16591734        _refresh_scroll();
    1660         sFunction = k_func_getfunction_name();
     1735        _str sFunction = k_func_getfunction_name();
    16611736        rc = fAsk ? _message_box("Process this function ("sFunction")?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES;
    16621737        if (rc == IDYES)
    16631738        {
     1739            typeless procpos;
    16641740            _save_pos2(procpos);
    16651741            klib_klogentry();
     
    16791755    while (!prev_proc() && !fUserCancel)
    16801756    {
     1757        typeless procpos;
    16811758        _save_pos2(procpos);
    1682         sCurFunction = k_func_getfunction_name();
     1759        _str sCurFunction = k_func_getfunction_name();
    16831760        //say 'exit main loop: ' sCurFunction
    16841761
     
    17011778            center_line();
    17021779            _refresh_scroll();
    1703             sFunction = k_func_getfunction_name();
     1780            _str sFunction = k_func_getfunction_name();
    17041781            rc =  fAsk ? _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES;
    17051782            deselect();
    17061783            if (rc == IDYES)
    17071784            {
     1785                typeless returnpos;
    17081786                _save_pos2(returnpos);
    17091787                klib_klogexit();
     
    17241802        _restore_pos2(procpos);
    17251803        _save_pos2(procpos);
    1726         sType = k_func_getreturntype(true);
     1804        _str sType = k_func_getreturntype(true);
    17271805        if (!fUserCancel && sType && (sType == 'void' || sType == 'VOID'))
    17281806        {
     
    17301808                &&  !find_matching_paren())
    17311809            {
     1810                typeless funcend;
    17321811                _save_pos2(funcend);
    17331812                prev_word();
     1813                int iIgnorePos;
    17341814                if (cur_word(iIgnorePos) != "return")
    17351815                {
     
    17401820                    center_line();
    17411821                    _refresh_scroll();
    1742                     sFunction = k_func_getfunction_name();
     1822                    _str sFunction = k_func_getfunction_name();
    17431823                    rc = fAsk ? _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES;
    17441824                    deselect();
    17451825                    if (rc == IDYES)
    17461826                    {
     1827                        typeless returnpos;
    17471828                        _save_pos2(returnpos);
    17481829                        klib_klogexit();
     
    17721853        /*
    17731854        RetagFilesInTagFile2(project_tag_file, orig_view_id, temp_view_id, rebuild_all, false,
    1774                              doRemove,false,true,true);*/7
     1855                             doRemove,false,true,true);*/
    17751856    }
    17761857    else
     
    19892070     * Find user format ini file.
    19902071     */
    1991     userini = maybe_quote_filename(_config_path():+'uformat.ini');
     2072    _str userini = maybe_quote_filename(_config_path():+'uformat.ini');
    19922073    if (file_match('-p 'userini, 1) == '')
    19932074    {
    1994         ini = maybe_quote_filename(slick_path_search('uformat.ini'));
     2075        _str ini = maybe_quote_filename(slick_path_search('uformat.ini'));
    19952076        if (ini != '') userini = ini;
    19962077    }
     
    20002081     * Remove any old schemes.
    20012082     */
     2083    int i,j,tv;
    20022084    for (i = 0; i < StyleSchemes._length(); i++)
    20032085        for (j = 0; j < StyleLanguages._length(); j++)
    20042086        {
    2005             sectionname = StyleLanguages[j]:+'-scheme-':+StyleSchemes[i].name;
     2087            _str sectionname = StyleLanguages[j]:+'-scheme-':+StyleSchemes[i].name;
    20062088            if (!_ini_get_section(userini, sectionname, tv))
    20072089            {
     
    20192101        for (j = 0; j < StyleLanguages._length(); j++)
    20202102        {
    2021             sectionname = StyleLanguages[j]:+'-scheme-':+StyleSchemes[i].name;
    2022             orig_view_id = _create_temp_view(temp_view_id);
     2103            _str sectionname = StyleLanguages[j]:+'-scheme-':+StyleSchemes[i].name;
     2104            int temp_view_id, k;
     2105            _str orig_view_id = _create_temp_view(temp_view_id);
    20232106            activate_view(temp_view_id);
    20242107            for (k = 0; k < StyleSchemes[i].settings._length(); k++)
     
    20282111            _ini_replace_section(userini, sectionname, temp_view_id);
    20292112            //message(userini)
    2030             activate_view(orig_view_id);
     2113            //bogus id - activate_view(orig_view_id);
    20312114        }
    20322115    }
     
    20452128     * Find user format ini file.
    20462129     */
    2047     userini = maybe_quote_filename(_config_path():+'uformat.ini');
     2130    _str userini = maybe_quote_filename(_config_path():+'uformat.ini');
    20482131    if (file_match('-p 'userini, 1) == '')
    20492132    {
    2050         ini = maybe_quote_filename(slick_path_search('uformat.ini'));
     2133        _str ini = maybe_quote_filename(slick_path_search('uformat.ini'));
    20512134        if (ini != '') userini = ini;
    20522135    }
     
    20552138     * Set the scheme for each language.
    20562139     */
     2140    int j;
    20572141    for (j = 0; j < StyleLanguages._length(); j++)
    20582142    {
     
    21142198{
    21152199    if (iBraceStyle < 1 || iBraceStyle > 3)
    2116         {
    2117         say 'k_styles_setindent: iBraceStyle is bad (='iBraceStyle')';
     2200    {
     2201        message('k_styles_setindent: iBraceStyle is bad (=' :+ iBraceStyle :+ ')');
    21182202        iBraceStyle = 2;
    2119         }
     2203    }
     2204
    21202205    /*
    21212206     * def-options for extentions known to have that info.
    21222207     */
     2208    int i;
    21232209    for (i = 0; i < defoptions._length(); i++)
    21242210    {
    2125         idx = find_index(defoptions[i], MISC_TYPE);
     2211        int idx = find_index(defoptions[i], MISC_TYPE);
    21262212        if (!idx)
    21272213            continue;
Note: See TracChangeset for help on using the changeset viewer.