Changeset 7150 for trunk/tools
- Timestamp:
- Oct 22, 2001, 6:11:08 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/vslick/odin32.e
r7149 r7150 1 /* $Id: odin32.e,v 1. 7 2001-10-22 03:54:53bird Exp $1 /* $Id: odin32.e,v 1.8 2001-10-22 04:11:08 bird Exp $ 2 2 * 3 3 * Visual SlickEdit Documentation Macros. … … 26 26 * Ctrl+Shift+B: KLOGENTRYX(..) 27 27 * Ctrl+Shift+E: KLOGEXIT(..) 28 * Ctrl+Shift+Q: Do kLog stuff for the current file. 28 * Ctrl+Shift+N: Do kLog stuff for the current file. No questions. 29 * Ctrl+Shift+Q: Do kLog stuff for the current file. Ask a lot of questions. 29 30 * 30 31 * Remember to set the correct sOdin32UserName, sOdin32UserEmail and sOdin32UserInitials … … 45 46 def 'C-S-K' = odin32_constbox 46 47 def 'C-S-M' = odin32_modulebox 48 def 'C-S-N' = odin32_klog_file_no_ask 47 49 def 'C-S-O' = odin32_oneliner 48 def 'C-S-Q' = odin32_klog_file 50 def 'C-S-Q' = odin32_klog_file_ask 49 51 def 'C-S-S' = odin32_structbox 50 52 def 'C-S-T' = odin32_maketagfile … … 310 312 if (file_eq(p_extension, 'asm')) 311 313 { 312 _insert_text("; $Id: odin32.e,v 1. 7 2001-10-22 03:54:53bird Exp $\n");314 _insert_text("; $Id: odin32.e,v 1.8 2001-10-22 04:11:08 bird Exp $\n"); 313 315 _insert_text("; \n"); 314 316 _insert_text("; \n"); … … 323 325 else 324 326 { 325 _insert_text("/* $Id: odin32.e,v 1. 7 2001-10-22 03:54:53bird Exp $\n");327 _insert_text("/* $Id: odin32.e,v 1.8 2001-10-22 04:11:08 bird Exp $\n"); 326 328 _insert_text(" * \n"); 327 329 _insert_text(" * \n"); … … 449 451 else 450 452 { 451 if (sType == 'unsigned' || sType == 'UNSIGNED' || sType == ' DWORD' || sType == 'ULONG' || sType == 'UINT')453 if (sType == 'unsigned' || sType == 'UNSIGNED' || sType == 'UINT') 452 454 _insert_text("KLOGEXITUINT();"); 453 else if (sType == ' unsigned' || sType == 'UNSIGNED' || sType == 'DWORD' || sType == 'ULONG' || sType == 'UINT')455 else if (sType == 'int' || sType == 'INT') 454 456 _insert_text("KLOGEXITINT();"); 455 else if (sType == 'void *' || sType == 'VOID *' || sType == 'PVOID' )457 else if (sType == 'void *' || sType == 'VOID *' || sType == 'PVOID' || sType == 'LPVOID') 456 458 _insert_text("KLOGEXITHEX();"); 457 459 else … … 512 514 513 515 /** 514 * Goes thru a file. 515 */ 516 void odin32_klog_file() 516 * Processes a file - ask user all the time. 517 */ 518 void odin32_klog_file_ask() 519 { 520 odin32_klog_file_int(true) 521 } 522 523 524 /** 525 * Processes a file - no questions. 526 */ 527 void odin32_klog_file_no_ask() 528 { 529 odin32_klog_file_int(false) 530 } 531 532 533 534 /** 535 * Processes a file. 536 */ 537 static void odin32_klog_file_int(boolean fAsk) 517 538 { 518 539 show_all(); … … 521 542 522 543 /* ask question so we can get to the right position somehow.. */ 523 if ( _message_box("kLog process this file?", "Visual SlickEdit", MB_YESNO | MB_ICONQUESTION) != IDYES)544 if (fAsk && _message_box("kLog process this file?", "Visual SlickEdit", MB_YESNO | MB_ICONQUESTION) != IDYES) 524 545 return; 525 546 … … 529 550 while (!prev_proc()) 530 551 { 552 //say 'entry main loop: ' odin32_getfunction(); 553 531 554 /* 532 555 * Skip prototypes. … … 541 564 _refresh_scroll(); 542 565 sFunction = odin32_getfunction(); 543 rc = _message_box("Process this function ("sFunction")?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION);566 rc = fAsk ? _message_box("Process this function ("sFunction")?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES; 544 567 if (rc == IDYES) 545 568 { … … 563 586 _save_pos2(procpos); 564 587 sCurFunction = odin32_getfunction(); 588 //say 'exit main loop: ' sCurFunction 565 589 566 590 /* … … 575 599 while (!search("return", "WE<+") && odin32_getfunction() == sCurFunction) 576 600 { 601 //say 'exit sub loop: ' p_line 577 602 /* 578 603 * Ask User. … … 581 606 _refresh_scroll(); 582 607 sFunction = odin32_getfunction(); 583 rc = _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION);608 rc = fAsk ? _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES; 584 609 deselect(); 585 610 if (rc == IDYES) … … 620 645 _refresh_scroll(); 621 646 sFunction = odin32_getfunction(); 622 rc = _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION);647 rc = fAsk ? _message_box("Process this exit from "sFunction"?", "Visual SlickEdit", MB_YESNOCANCEL | MB_ICONQUESTION) : IDYES; 623 648 deselect(); 624 649 if (rc == IDYES) … … 923 948 iParLevel--; 924 949 } 925 926 say 'returntype='odin32_getreturntype(true);927 950 928 951 return iCurParam + 1;
Note:
See TracChangeset
for help on using the changeset viewer.