comparison src/workshop.c @ 1887:fc89a4f98a8b v7.2.184

updated for version 7.2-184
author vimboss
date Thu, 21 May 2009 21:27:43 +0000
parents 5fafc42c22d2
children 07de57cbcb25
comparison
equal deleted inserted replaced
1886:11472bbcdb6e 1887:fc89a4f98a8b
202 * workshop_load_file 202 * workshop_load_file
203 * 203 *
204 * Function: 204 * Function:
205 * Load a given file into the WorkShop buffer. 205 * Load a given file into the WorkShop buffer.
206 */ 206 */
207 /*ARGSUSED*/
208 void 207 void
209 workshop_load_file( 208 workshop_load_file(
210 char *filename, /* the file to load */ 209 char *filename, /* the file to load */
211 int line, /* an optional line number (or 0) */ 210 int line, /* an optional line number (or 0) */
212 char *frameid) /* used for multi-frame support */ 211 char *frameid UNUSED) /* used for multi-frame support */
213 { 212 {
214 #ifdef WSDEBUG_TRACE 213 #ifdef WSDEBUG_TRACE
215 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE)) 214 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
216 wstrace("workshop_load_file(%s, %d)\n", filename, line); 215 wstrace("workshop_load_file(%s, %d)\n", filename, line);
217 #endif 216 #endif
261 #endif 260 #endif
262 261
263 load_window(filename, lineno); 262 load_window(filename, lineno);
264 } 263 }
265 264
266 /*ARGSUSED*/
267 void 265 void
268 workshop_front_file( 266 workshop_front_file(
269 char *filename) 267 char *filename UNUSED)
270 { 268 {
271 #ifdef WSDEBUG_TRACE 269 #ifdef WSDEBUG_TRACE
272 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE)) 270 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
273 wstrace("workshop_front_file()\n"); 271 wstrace("workshop_front_file()\n");
274 #endif 272 #endif
536 * Are there any moved marks? If so, call workshop_move_mark on 534 * Are there any moved marks? If so, call workshop_move_mark on
537 * each of them now. This is how eserve can find out if for example 535 * each of them now. This is how eserve can find out if for example
538 * breakpoints have moved when a program has been recompiled and 536 * breakpoints have moved when a program has been recompiled and
539 * reloaded into dbx. 537 * reloaded into dbx.
540 */ 538 */
541 /*ARGSUSED*/ 539 void
542 void 540 workshop_moved_marks(char *filename UNUSED)
543 workshop_moved_marks(char *filename)
544 { 541 {
545 #ifdef WSDEBUG_TRACE 542 #ifdef WSDEBUG_TRACE
546 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE)) 543 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
547 wstrace("XXXworkshop_moved_marks(%s)\n", filename); 544 wstrace("XXXworkshop_moved_marks(%s)\n", filename);
548 #endif 545 #endif
573 } 570 }
574 571
575 return (int)h; 572 return (int)h;
576 } 573 }
577 574
578 /*ARGSUSED*/
579 void 575 void
580 workshop_footer_message( 576 workshop_footer_message(
581 char *message, 577 char *message,
582 int severity) /* severity is currently unused */ 578 int severity UNUSED) /* severity is currently unused */
583 { 579 {
584 #ifdef WSDEBUG_TRACE 580 #ifdef WSDEBUG_TRACE
585 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE)) 581 if (WSDLEVEL(WS_TRACE_VERBOSE | WS_TRACE))
586 wstrace("workshop_footer_message(%s, %d)\n", message, severity); 582 wstrace("workshop_footer_message(%s, %d)\n", message, severity);
587 #endif 583 #endif
685 /* 681 /*
686 * This is where menus are really made. Each item will generate an amenu vim 682 * This is where menus are really made. Each item will generate an amenu vim
687 * command. The globals curMenuName and curMenuPriority contain the name and 683 * command. The globals curMenuName and curMenuPriority contain the name and
688 * priority of the parent menu tree. 684 * priority of the parent menu tree.
689 */ 685 */
690 /*ARGSUSED*/
691 void 686 void
692 workshop_menu_item( 687 workshop_menu_item(
693 char *label, 688 char *label,
694 char *verb, 689 char *verb,
695 char *accelerator, 690 char *accelerator UNUSED,
696 char *acceleratorText, 691 char *acceleratorText,
697 char *name, 692 char *name UNUSED,
698 char *filepos, 693 char *filepos UNUSED,
699 char *sensitive) 694 char *sensitive)
700 { 695 {
701 char cbuf[BUFSIZ]; 696 char cbuf[BUFSIZ];
702 char namebuf[BUFSIZ]; 697 char namebuf[BUFSIZ];
703 char accText[BUFSIZ]; 698 char accText[BUFSIZ];
808 set_option_value((char_u *)"go", 0L, buf, 0); 803 set_option_value((char_u *)"go", 0L, buf, 0);
809 } 804 }
810 workshopInitDone = True; 805 workshopInitDone = True;
811 } 806 }
812 807
813 /*ARGSUSED*/
814 void 808 void
815 workshop_toolbar_button( 809 workshop_toolbar_button(
816 char *label, 810 char *label,
817 char *verb, 811 char *verb,
818 char *senseVerb, 812 char *senseVerb UNUSED,
819 char *filepos, 813 char *filepos UNUSED,
820 char *help, 814 char *help,
821 char *sense, 815 char *sense,
822 char *file, 816 char *file,
823 char *left) 817 char *left)
824 { 818 {
966 { 960 {
967 case 's': 961 case 's':
968 if (strcmp(option, "syntax") == 0) 962 if (strcmp(option, "syntax") == 0)
969 vim_snprintf(cbuf, sizeof(cbuf), "syntax %s", value); 963 vim_snprintf(cbuf, sizeof(cbuf), "syntax %s", value);
970 else if (strcmp(option, "savefiles") == 0) 964 else if (strcmp(option, "savefiles") == 0)
971 ; /* XXX - Not yet implemented */ 965 {
966 /* XXX - Not yet implemented */
967 }
972 break; 968 break;
973 969
974 case 'l': 970 case 'l':
975 if (strcmp(option, "lineno") == 0) 971 if (strcmp(option, "lineno") == 0)
976 sprintf(cbuf, "set %snu", 972 sprintf(cbuf, "set %snu",
1096 } 1092 }
1097 1093
1098 /* 1094 /*
1099 * A button in the toolbar has been pushed. 1095 * A button in the toolbar has been pushed.
1100 */ 1096 */
1101 /*ARGSUSED*/
1102 int 1097 int
1103 workshop_get_positions( 1098 workshop_get_positions(
1104 void *clientData, /* unused */ 1099 void *clientData UNUSED,
1105 char **filename, /* output data */ 1100 char **filename, /* output data */
1106 int *curLine, /* output data */ 1101 int *curLine, /* output data */
1107 int *curCol, /* output data */ 1102 int *curCol, /* output data */
1108 int *selStartLine, /* output data */ 1103 int *selStartLine, /* output data */
1109 int *selStartCol, /* output data */ 1104 int *selStartCol, /* output data */
1524 return selection; 1519 return selection;
1525 else 1520 else
1526 return NULL; 1521 return NULL;
1527 } 1522 }
1528 1523
1529 /*ARGSUSED*/ 1524 void
1530 void 1525 workshop_save_sensitivity(char *filename UNUSED)
1531 workshop_save_sensitivity(char *filename)
1532 { 1526 {
1533 } 1527 }
1534 1528
1535 #endif 1529 #endif
1536 1530