Changeset 214 for trunk/VSlickMacros/kdev.e
- Timestamp:
- Jan 12, 2005, 9:19:35 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/VSlickMacros/kdev.e
r113 r214 79 79 #pragma option(redeclvars, on) 80 80 #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 81 87 82 88 /* Remeber to change these! */ … … 117 123 i = pos("/", date); 118 124 j = pos("/", date, i+1); 119 month = substr(date, 1, i-1);125 _str month = substr(date, 1, i-1); 120 126 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); 122 128 if (length(day) == 1) day = '0'day; 123 year = substr(date, j+1);129 _str year = substr(date, j+1); 124 130 return year"-"month"-"day; 125 131 } … … 132 138 static _str k_year() 133 139 { 134 date = _date('U');140 _str date = _date('U'); 135 141 return substr(date, pos("/",date, pos("/",date)+1)+1, 4); 136 142 } … … 172 178 * Get comment setup from the lexer. 173 179 */ 180 _str sLine = ''; 174 181 if (sLexer) 175 182 { 176 sLine = '';177 183 /* multiline */ 178 184 rc = _ini_get_value(slick_path_search("user.vlx"), sLexer, 'mlcomment', sLine); … … 196 202 sRight = ''; 197 203 iColumn = 0; 198 sTmp = word(sLine, 2);204 _str sTmp = word(sLine, 2); 199 205 if (isnumber(sTmp)) 200 206 iColumn = (int)sTmp; … … 207 213 * Read the nonboxchars and determin user or default box.ini. 208 214 */ 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); 211 217 if (frc) 212 218 { 213 sFile = slick_path_search("box.ini") 219 sFile = slick_path_search("box.ini"); 214 220 frc = _ini_get_value(sFile, sExt, 'nonboxchars', sLine); 215 221 } … … 252 258 { 253 259 _str sRight = ''; 260 _str sLeft = ''; 261 int iColumn; 254 262 boolean fLineComment = false; 255 263 if (k_commentconfig(sLeft, sRight, iColumn)) … … 284 292 } 285 293 294 int iCol = 0; 286 295 if (iColumn <= 0) 287 296 { /* … … 334 343 static _str k_comment(boolean fRight = false) 335 344 { 336 sComment = '/*'; 345 _str sLeft, sRight; 346 int iColumn; 347 _str sComment = '/*'; 337 348 if (k_commentconfig(sLeft, sRight, iColumn)) 338 349 sComment = (!fRight || iColumn > 0 ? sLeft : sRight); … … 352 363 static void k_box_start(sTag) 353 364 { 365 _str sLeft, sRight; 366 int iColumn; 354 367 if (!k_commentconfig(sLeft, sRight, iColumn)) 355 368 return; … … 359 372 _insert_text(" "); 360 373 361 sText = sLeft;374 _str sText = sLeft; 362 375 if (sTag != '' && fkStyleBoxTag) 363 376 { … … 367 380 } 368 381 382 int i; 369 383 for (i = length(sText); i <= ikStyleWidth - p_col; i++) 370 384 sText = sText:+'*'; … … 381 395 static void k_box_line(_str sStr) 382 396 { 397 _str sLeft, sRight; 398 int iColumn; 383 399 if (!k_commentconfig(sLeft, sRight, iColumn)) 384 400 return; … … 387 403 _insert_text(" "); 388 404 389 sText = '';405 _str sText = ''; 390 406 if (k_line_comment()) 391 407 sText = sLeft; … … 394 410 395 411 sText = sText:+' '; 412 int i; 396 413 for (i = length(sText); i < p_SyntaxIndent; i++) 397 414 sText = sText:+' '; … … 412 429 static void k_box_end() 413 430 { 431 _str sLeft, sRight; 432 int iColumn, i; 414 433 if (!k_commentconfig(sLeft, sRight, iColumn)) 415 434 return; … … 418 437 _insert_text(" "); 419 438 420 sText = '';439 _str sText = ''; 421 440 if (k_line_comment()) 422 441 sText = sLeft; … … 441 460 { 442 461 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; 446 466 _save_pos2(org_pos); 447 467 … … 505 525 * Check if this is a real function implementation. 506 526 */ 527 typeless procpos; 507 528 _save_pos2(procpos); 508 if (!k_func_goto_nearest_function s())509 { 510 proc_line = p_line;529 if (!k_func_goto_nearest_function()) 530 { 531 int proc_line = p_line; 511 532 512 533 if (!k_func_searchcode("{")) … … 532 553 static _str k_func_getfunction_name() 533 554 { 534 sFunctionName = current_proc();555 _str sFunctionName = current_proc(); 535 556 if (!sFunctionName) 536 557 sFunctionName = ""; … … 546 567 static _str k_func_getparams() 547 568 { 569 typeless org_pos; 548 570 _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 } 549 592 550 593 /* … … 558 601 * Get parameters. 559 602 */ 603 typeless posStart; 560 604 _save_pos2(posStart); 561 offStart = _QROffset();605 long offStart = _QROffset(); 562 606 if (!find_matching_paren()) 563 607 { 564 offEnd = _QROffset();608 long offEnd = _QROffset(); 565 609 _restore_pos2(posStart); 566 610 p_col++; 567 _str sParamsRaw = strip(get_text( offEnd - offStart - 1));611 _str sParamsRaw = strip(get_text((int)(offEnd - offStart - 1))); 568 612 569 613 … … 574 618 575 619 int i; 620 _str chPrev; 576 621 for (i = 1, chPrev = ' '; i <= length(sParamsRaw); i++) 577 622 { 578 ch = substr(sParamsRaw, i, 1);623 _str ch = substr(sParamsRaw, i, 1); 579 624 580 625 /* … … 673 718 if (iParam == iCurParam) 674 719 { /* (yeah, we did!) */ 675 sArg = strip(substr(sParams, iStartParam, i - iStartParam));720 _str sArg = strip(substr(sParams, iStartParam, i - iStartParam)); 676 721 /* remove M$ stuff */ 677 722 sArg = stranslate(sArg, "", "IN", "E"); … … 719 764 int iParLevel; 720 765 int iCurParam; 721 722 sType = sName = sDefault = ""; 766 _str sType = "", sName = "", sDefault = ""; 723 767 724 768 /* check for 0 parameters */ … … 749 793 static _str k_func_getreturntype(boolean fPureType = false) 750 794 { 795 typeless org_pos; 751 796 _save_pos2(org_pos); 752 797 … … 759 804 * Return type is from function start to function name... 760 805 */ 806 typeless posStart; 761 807 _save_pos2(posStart); 762 offStart = _QROffset();808 long offStart = _QROffset(); 763 809 764 810 if (!k_func_searchcode("(")) /* makes some assumptions. */ 765 811 { 766 812 prev_word(); 767 offEnd = _QROffset();813 long offEnd = _QROffset(); 768 814 _restore_pos2(posStart); 769 _str sTypeRaw = strip(get_text( offEnd - offStart));815 _str sTypeRaw = strip(get_text((int)(offEnd - offStart))); 770 816 771 817 //say 'sTypeRaw='sTypeRaw; … … 838 884 839 885 int i; 886 _str chPrev; 840 887 for (i = 1, chPrev = ' '; i <= length(sTypeRaw); i++) 841 888 { 842 ch = substr(sTypeRaw, i, 1);889 _str ch = substr(sTypeRaw, i, 1); 843 890 844 891 /* … … 912 959 static boolean k_func_in_code() 913 960 { 961 typeless searchsave; 914 962 _save_pos2(searchsave); 915 963 boolean fRc = !_in_comment(); … … 924 972 static _str k_func_get_next_code_text() 925 973 { 926 _str ch;974 typeless searchsave; 927 975 _save_pos2(searchsave); 928 ch = k_func_get_next_code_text2();976 _str ch = k_func_get_next_code_text2(); 929 977 _restore_pos2(searchsave); 930 978 return ch; … … 939 987 boolean fRc; 940 988 int curline = p_line; 941 989 typeless searchsave; 942 990 _save_pos2(searchsave); 943 991 k_func_get_next_code_text2(); … … 958 1006 do 959 1007 { 960 curcol = ++p_col;961 end_line() 1008 int curcol = ++p_col; 1009 end_line(); 962 1010 if (p_col <= curcol) 963 1011 { … … 993 1041 static void k_javadoc_box_start(_str sStr = '', boolean fDouble = true) 994 1042 { 1043 _str sLeft, sRight; 1044 int iColumn; 995 1045 if (!k_commentconfig(sLeft, sRight, iColumn)) 996 1046 return; … … 1000 1050 _insert_text(" "); 1001 1051 1002 sText = sLeft;1052 _str sText = sLeft; 1003 1053 if (fDouble) 1004 1054 sText = sLeft:+substr(sLeft, length(sLeft), 1); … … 1013 1063 static void k_javadoc_box_line(_str sStr = '', int iPadd = 0, _str sStr2 = '', int iPadd2 = 0, _str sStr3 = '') 1014 1064 { 1065 _str sLeft, sRight; 1066 int iColumn; 1015 1067 if (!k_commentconfig(sLeft, sRight, iColumn)) 1016 1068 return; … … 1019 1071 _insert_text(" "); 1020 1072 1073 _str sText; 1021 1074 if (k_line_comment()) 1022 1075 sText = sLeft; … … 1031 1084 if (iPadd > 0) 1032 1085 { 1086 int i; 1033 1087 for (i = length(sText); i < iPadd; i++) 1034 1088 sText = sText:+' '; … … 1054 1108 static void k_javadoc_box_end() 1055 1109 { 1110 _str sLeft, sRight; 1111 int iColumn; 1056 1112 if (!k_commentconfig(sLeft, sRight, iColumn)) 1057 1113 return; … … 1060 1116 _insert_text(" "); 1061 1117 1118 _str sText; 1062 1119 if (k_line_comment()) 1063 1120 sText = sLeft; … … 1133 1190 */ 1134 1191 int iPadd2 = 0; 1192 int i; 1135 1193 for (i = 0; i < cArgs; i++) 1136 1194 { … … 1150 1208 if (!k_func_enumparams(sArgs, i, sType, sName, sDefault)) 1151 1209 { 1152 sStr3 = '';1210 _str sStr3 = ''; 1153 1211 if (sDefault != "") 1154 1212 sStr3 = '(default='sDefault')'; … … 1169 1227 k_javadoc_box_line('@time', iPadd); 1170 1228 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 '>'); 1175 1231 k_javadoc_box_line('@remark', iPadd); 1232 } 1176 1233 k_javadoc_box_end(); 1177 1234 … … 1222 1279 1223 1280 case 'GPL': 1224 sProg = skProgram;1225 k_javadoc_box_line() 1281 _str sProg = skProgram; 1282 k_javadoc_box_line(); 1226 1283 if (sProg == '') 1227 1284 sProg = 'This program'; … … 1235 1292 k_javadoc_box_line('the Free Software Foundation; either version 2 of the License, or'); 1236 1293 k_javadoc_box_line('(at your option) any later version.'); 1237 k_javadoc_box_line() 1294 k_javadoc_box_line(); 1238 1295 k_javadoc_box_line(sProg ' is distributed in the hope that it will be useful,'); 1239 1296 k_javadoc_box_line('but WITHOUT ANY WARRANTY; without even the implied warranty of'); 1240 1297 k_javadoc_box_line('MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the'); 1241 1298 k_javadoc_box_line('GNU General Public License for more details.'); 1242 k_javadoc_box_line() 1299 k_javadoc_box_line(); 1243 1300 k_javadoc_box_line('You should have received a copy of the GNU General Public License'); 1244 1301 k_javadoc_box_line('along with ' sProg '; if not, write to the Free Software'); … … 1248 1305 case 'LGPL': 1249 1306 sProg = skProgram; 1250 k_javadoc_box_line() 1307 k_javadoc_box_line(); 1251 1308 if (sProg == '') 1252 1309 sProg = 'This program'; … … 1260 1317 k_javadoc_box_line('by the Free Software Foundation; either version 2 of the License, or'); 1261 1318 k_javadoc_box_line('(at your option) any later version.'); 1262 k_javadoc_box_line() 1319 k_javadoc_box_line(); 1263 1320 k_javadoc_box_line(sProg ' is distributed in the hope that it will be useful,'); 1264 1321 k_javadoc_box_line('but WITHOUT ANY WARRANTY; without even the implied warranty of'); 1265 1322 k_javadoc_box_line('MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the'); 1266 1323 k_javadoc_box_line('GNU Lesser General Public License for more details.'); 1267 k_javadoc_box_line() 1324 k_javadoc_box_line(); 1268 1325 k_javadoc_box_line('You should have received a copy of the GNU Lesser General Public License'); 1269 1326 k_javadoc_box_line('along with ' sProg '; if not, write to the Free Software'); … … 1348 1405 void k_oneliner() 1349 1406 { 1407 _str sLeft, sRight; 1408 int iColumn; 1350 1409 if ( k_commentconfig(sLeft, sRight, iColumn) 1351 1410 && iColumn > 0) … … 1366 1425 { 1367 1426 /* not supported for column based sources */ 1427 _str sLeft, sRight; 1428 int iColumn; 1368 1429 if ( !k_commentconfig(sLeft, sRight, iColumn) 1369 1430 || iColumn > 0) 1370 1431 return; 1371 1432 _str sStr; 1372 1433 if (skChange != '') 1373 1434 sStr = skChange ' (' skUserInitials ')'; … … 1386 1447 { 1387 1448 /* kso I5-10000 2002-09-10: */ 1449 _str sSig; 1388 1450 if (skChange != '') 1389 1451 sSig = skUserInitials ' ' skChange ' ' k_date() ': '; … … 1402 1464 void klib_klogentry() 1403 1465 { 1466 typeless org_pos; 1404 1467 _save_pos2(org_pos); 1405 1468 … … 1425 1488 { 1426 1489 p_col++; 1427 cArgs = k_func_countparams(sParams);1490 int cArgs = k_func_countparams(sParams); 1428 1491 if (cArgs > 0) 1429 1492 { 1430 sArgs = ""; 1493 _str sArgs = ""; 1494 int i; 1431 1495 for (i = 0; i < cArgs; i++) 1432 1496 { 1433 _str sType, sName, sDefault 1497 _str sType, sName, sDefault; 1434 1498 if (!k_func_enumparams(sParams, i, sType, sName, sDefault)) 1435 1499 sArgs = sArgs', 'sName; … … 1447 1511 if (def_next_word_style == 'E') 1448 1512 prev_word(); 1513 int iIgnorePos = 0; 1449 1514 if (substr(cur_word(iIgnorePos), 1, 9) == "KLOGENTRY") 1450 1515 delete_line(); … … 1468 1533 void klib_klogexit() 1469 1534 { 1535 typeless org_pos; 1470 1536 _save_pos2(org_pos); 1471 1537 … … 1487 1553 * Insert text. 1488 1554 */ 1489 cur_col = p_col;1555 int cur_col = p_col; 1490 1556 if (sType == 'void' || sType == 'VOID') 1491 1557 { /* procedure */ 1558 int iIgnorePos; 1492 1559 fReturn = cur_word(iIgnorePos) == 'return'; 1493 1560 if (!fReturn) … … 1501 1568 if (fReturn) 1502 1569 { 1570 int i; 1503 1571 for (i = 1; i < cur_col; i++) 1504 1572 _insert_text(" "); … … 1509 1577 { /* function */ 1510 1578 _insert_text("KLOGEXIT();\n"); 1579 int i; 1511 1580 for (i = 1; i < cur_col; i++) 1512 1581 _insert_text(" "); … … 1516 1585 * Insert value if possible. 1517 1586 */ 1587 typeless valuepos; 1518 1588 _save_pos2(valuepos); 1519 1589 next_word(); 1520 1590 if (def_next_word_style == 'E') 1521 1591 prev_word(); 1592 int iIgnorePos; 1522 1593 if (cur_word(iIgnorePos) == 'return') 1523 1594 { 1524 1595 p_col += length('return'); 1596 typeless posStart; 1525 1597 _save_pos2(posStart); 1526 offStart = _QROffset();1598 long offStart = _QROffset(); 1527 1599 if (!k_func_searchcode(";", "E+")) 1528 1600 { 1529 offEnd = _QROffset();1601 long offEnd = _QROffset(); 1530 1602 _restore_pos2(posStart); 1531 _str sValue = strip(get_text( offEnd - offStart));1603 _str sValue = strip(get_text((int)(offEnd - offStart))); 1532 1604 //say 'sValue = 'sValue; 1533 1605 _restore_pos2(valuepos); … … 1542 1614 * Remove old KLOGEXIT statement on previous line if any. 1543 1615 */ 1616 typeless valuepos; 1544 1617 _save_pos2(valuepos); 1545 newexitline = p_line;1618 int newexitline = p_line; 1546 1619 p_line--; p_col = 1; 1547 1620 next_word(); 1548 1621 if (def_next_word_style == 'E') 1549 1622 prev_word(); 1623 int iIgnorePos; 1550 1624 if (p_line == newexitline - 1 && substr(cur_word(iIgnorePos), 1, 8) == 'KLOGEXIT') 1551 1625 delete_line(); … … 1574 1648 else 1575 1649 { 1650 typeless returnget; 1576 1651 _save_pos2(returnget); 1577 1652 k_func_searchcode("return", "E-"); 1578 return_col = p_col;1653 int return_col = p_col; 1579 1654 _restore_pos2(returnget); 1580 1655 … … 1590 1665 prev_word(); 1591 1666 p_col -= p_SyntaxIndent; 1592 codecol = p_col;1667 int codecol = p_col; 1593 1668 _insert_text("{\n"); 1594 1669 while (p_col < codecol) … … 1613 1688 void klib_klog_file_ask() 1614 1689 { 1615 klib_klog_file_int(true) 1690 klib_klog_file_int(true); 1616 1691 } 1617 1692 … … 1622 1697 void klib_klog_file_no_ask() 1623 1698 { 1624 klib_klog_file_int(false) 1699 klib_klog_file_int(false); 1625 1700 } 1626 1701 … … 1658 1733 center_line(); 1659 1734 _refresh_scroll(); 1660 sFunction = k_func_getfunction_name();1735 _str sFunction = k_func_getfunction_name(); 1661 1736 rc = fAsk ? _message_box("Process this function ("sFunction")?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES; 1662 1737 if (rc == IDYES) 1663 1738 { 1739 typeless procpos; 1664 1740 _save_pos2(procpos); 1665 1741 klib_klogentry(); … … 1679 1755 while (!prev_proc() && !fUserCancel) 1680 1756 { 1757 typeless procpos; 1681 1758 _save_pos2(procpos); 1682 sCurFunction = k_func_getfunction_name();1759 _str sCurFunction = k_func_getfunction_name(); 1683 1760 //say 'exit main loop: ' sCurFunction 1684 1761 … … 1701 1778 center_line(); 1702 1779 _refresh_scroll(); 1703 sFunction = k_func_getfunction_name();1780 _str sFunction = k_func_getfunction_name(); 1704 1781 rc = fAsk ? _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES; 1705 1782 deselect(); 1706 1783 if (rc == IDYES) 1707 1784 { 1785 typeless returnpos; 1708 1786 _save_pos2(returnpos); 1709 1787 klib_klogexit(); … … 1724 1802 _restore_pos2(procpos); 1725 1803 _save_pos2(procpos); 1726 sType = k_func_getreturntype(true);1804 _str sType = k_func_getreturntype(true); 1727 1805 if (!fUserCancel && sType && (sType == 'void' || sType == 'VOID')) 1728 1806 { … … 1730 1808 && !find_matching_paren()) 1731 1809 { 1810 typeless funcend; 1732 1811 _save_pos2(funcend); 1733 1812 prev_word(); 1813 int iIgnorePos; 1734 1814 if (cur_word(iIgnorePos) != "return") 1735 1815 { … … 1740 1820 center_line(); 1741 1821 _refresh_scroll(); 1742 sFunction = k_func_getfunction_name();1822 _str sFunction = k_func_getfunction_name(); 1743 1823 rc = fAsk ? _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES; 1744 1824 deselect(); 1745 1825 if (rc == IDYES) 1746 1826 { 1827 typeless returnpos; 1747 1828 _save_pos2(returnpos); 1748 1829 klib_klogexit(); … … 1772 1853 /* 1773 1854 RetagFilesInTagFile2(project_tag_file, orig_view_id, temp_view_id, rebuild_all, false, 1774 doRemove,false,true,true);*/ 71855 doRemove,false,true,true);*/ 1775 1856 } 1776 1857 else … … 1989 2070 * Find user format ini file. 1990 2071 */ 1991 userini = maybe_quote_filename(_config_path():+'uformat.ini');2072 _str userini = maybe_quote_filename(_config_path():+'uformat.ini'); 1992 2073 if (file_match('-p 'userini, 1) == '') 1993 2074 { 1994 ini = maybe_quote_filename(slick_path_search('uformat.ini'));2075 _str ini = maybe_quote_filename(slick_path_search('uformat.ini')); 1995 2076 if (ini != '') userini = ini; 1996 2077 } … … 2000 2081 * Remove any old schemes. 2001 2082 */ 2083 int i,j,tv; 2002 2084 for (i = 0; i < StyleSchemes._length(); i++) 2003 2085 for (j = 0; j < StyleLanguages._length(); j++) 2004 2086 { 2005 sectionname = StyleLanguages[j]:+'-scheme-':+StyleSchemes[i].name;2087 _str sectionname = StyleLanguages[j]:+'-scheme-':+StyleSchemes[i].name; 2006 2088 if (!_ini_get_section(userini, sectionname, tv)) 2007 2089 { … … 2019 2101 for (j = 0; j < StyleLanguages._length(); j++) 2020 2102 { 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); 2023 2106 activate_view(temp_view_id); 2024 2107 for (k = 0; k < StyleSchemes[i].settings._length(); k++) … … 2028 2111 _ini_replace_section(userini, sectionname, temp_view_id); 2029 2112 //message(userini) 2030 activate_view(orig_view_id);2113 //bogus id - activate_view(orig_view_id); 2031 2114 } 2032 2115 } … … 2045 2128 * Find user format ini file. 2046 2129 */ 2047 userini = maybe_quote_filename(_config_path():+'uformat.ini');2130 _str userini = maybe_quote_filename(_config_path():+'uformat.ini'); 2048 2131 if (file_match('-p 'userini, 1) == '') 2049 2132 { 2050 ini = maybe_quote_filename(slick_path_search('uformat.ini'));2133 _str ini = maybe_quote_filename(slick_path_search('uformat.ini')); 2051 2134 if (ini != '') userini = ini; 2052 2135 } … … 2055 2138 * Set the scheme for each language. 2056 2139 */ 2140 int j; 2057 2141 for (j = 0; j < StyleLanguages._length(); j++) 2058 2142 { … … 2114 2198 { 2115 2199 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 :+ ')'); 2118 2202 iBraceStyle = 2; 2119 } 2203 } 2204 2120 2205 /* 2121 2206 * def-options for extentions known to have that info. 2122 2207 */ 2208 int i; 2123 2209 for (i = 0; i < defoptions._length(); i++) 2124 2210 { 2125 i dx = find_index(defoptions[i], MISC_TYPE);2211 int idx = find_index(defoptions[i], MISC_TYPE); 2126 2212 if (!idx) 2127 2213 continue;
Note:
See TracChangeset
for help on using the changeset viewer.