Mercurial > vim
comparison src/integration.c @ 14862:27b9a84395b5 v8.1.0443
patch 8.1.0443: unnecessary static function prototypes
commit https://github.com/vim/vim/commit/6dff58f15cede9139b2fcfc64c9064326ea3d3b0
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Sep 30 21:43:26 2018 +0200
patch 8.1.0443: unnecessary static function prototypes
Problem: Unnecessary static function prototypes.
Solution: Remove unnecessary prototypes.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 30 Sep 2018 21:45:07 +0200 |
parents | 1a450ce6980c |
children | 0fcc1315c061 |
comparison
equal
deleted
inserted
replaced
14861:41fbdae837df | 14862:27b9a84395b5 |
---|---|
74 #ifndef NOCATGETS | 74 #ifndef NOCATGETS |
75 # define NOCATGETS(x) x | 75 # define NOCATGETS(x) x |
76 #endif | 76 #endif |
77 | 77 |
78 /* Functions private to this file */ | 78 /* Functions private to this file */ |
79 static void workshop_connection_closed(void); | |
80 static void messageFromEserve(XtPointer clientData, int *dum1, XtInputId *dum2); | |
81 static void workshop_disconnect(void); | 79 static void workshop_disconnect(void); |
82 static void workshop_sensitivity(int num, char *table); | 80 static void workshop_sensitivity(int num, char *table); |
83 static void adjust_sign_name(char *filename); | 81 static void adjust_sign_name(char *filename); |
84 static void process_menuItem(char *); | 82 static void process_menuItem(char *); |
85 static void process_toolbarButton(char *); | 83 static void process_toolbarButton(char *); |
109 static int sd = -1; | 107 static int sd = -1; |
110 static XtInputId inputHandler; /* Cookie for input */ | 108 static XtInputId inputHandler; /* Cookie for input */ |
111 | 109 |
112 Boolean save_files = True; /* When true, save all files before build actions */ | 110 Boolean save_files = True; /* When true, save all files before build actions */ |
113 | 111 |
114 void | 112 static void |
115 workshop_connection_closed(void) | 113 workshop_connection_closed(void) |
116 { | 114 { |
117 /* | 115 /* |
118 * socket closed on other end | 116 * socket closed on other end |
119 */ | 117 */ |
155 return NULL; | 153 return NULL; |
156 } | 154 } |
157 | 155 |
158 } | 156 } |
159 | 157 |
160 void | 158 static void |
161 messageFromEserve(XtPointer clientData UNUSED, | 159 messageFromEserve(XtPointer clientData UNUSED, |
162 int *dum1 UNUSED, | 160 int *dum1 UNUSED, |
163 XtInputId *dum2 UNUSED) | 161 XtInputId *dum2 UNUSED) |
164 { | 162 { |
165 char *cmd; /* the 1st word of the command */ | 163 char *cmd; /* the 1st word of the command */ |
516 break; | 514 break; |
517 #endif | 515 #endif |
518 } | 516 } |
519 } | 517 } |
520 | 518 |
521 static void | 519 static void |
522 process_menuItem( | 520 process_menuItem( |
523 char *cmd) | 521 char *cmd) |
524 { | 522 { |
525 char *label = strtok(&cmd[9], NOCATGETS("\001")); | 523 char *label = strtok(&cmd[9], NOCATGETS("\001")); |
526 char *verb = strtok(NULL, NOCATGETS("\001")); | 524 char *verb = strtok(NULL, NOCATGETS("\001")); |
538 workshop_menu_item(label, verb, acc, accText, name, filepos, sense); | 536 workshop_menu_item(label, verb, acc, accText, name, filepos, sense); |
539 | 537 |
540 } | 538 } |
541 | 539 |
542 | 540 |
543 static void | 541 static void |
544 process_toolbarButton( | 542 process_toolbarButton( |
545 char *cmd) /* button definition */ | 543 char *cmd) /* button definition */ |
546 { | 544 { |
547 char *label = strtok(&cmd[14], NOCATGETS("\001")); | 545 char *label = strtok(&cmd[14], NOCATGETS("\001")); |
548 char *verb = strtok(NULL, NOCATGETS("\001")); | 546 char *verb = strtok(NULL, NOCATGETS("\001")); |
569 sense, file, left); | 567 sense, file, left); |
570 } | 568 } |
571 | 569 |
572 | 570 |
573 #ifdef DEBUG | 571 #ifdef DEBUG |
574 void | 572 static void |
575 unrecognised_message( | 573 unrecognised_message( |
576 char *cmd) | 574 char *cmd) |
577 { | 575 { |
578 pldebug("Unrecognised eserve message:\n\t%s\n", cmd); | 576 pldebug("Unrecognised eserve message:\n\t%s\n", cmd); |
579 /* abort(); */ | 577 /* abort(); */ |
585 * Create the filename based on the height. The filename format | 583 * Create the filename based on the height. The filename format |
586 * of multisize icons are: | 584 * of multisize icons are: |
587 * x.xpm : largest icon | 585 * x.xpm : largest icon |
588 * x1.xpm : smaller icon | 586 * x1.xpm : smaller icon |
589 * x2.xpm : smallest icon */ | 587 * x2.xpm : smallest icon */ |
590 void | 588 static void |
591 adjust_sign_name(char *filename) | 589 adjust_sign_name(char *filename) |
592 { | 590 { |
593 char *s; | 591 char *s; |
594 static int fontSize = -1; | 592 static int fontSize = -1; |
595 | 593 |
733 | 731 |
734 vim_snprintf(buf, sizeof(buf), NOCATGETS("ack 1\n")); | 732 vim_snprintf(buf, sizeof(buf), NOCATGETS("ack 1\n")); |
735 dummy = write(sd, buf, strlen(buf)); | 733 dummy = write(sd, buf, strlen(buf)); |
736 } | 734 } |
737 | 735 |
738 void workshop_disconnect(void) | 736 static void |
737 workshop_disconnect(void) | |
739 { | 738 { |
740 /* Probably need to send some message here */ | 739 /* Probably need to send some message here */ |
741 | 740 |
742 /* | 741 /* |
743 * socket closed on other end | 742 * socket closed on other end |
889 | 888 |
890 /* | 889 /* |
891 * Toolbar code | 890 * Toolbar code |
892 */ | 891 */ |
893 | 892 |
894 void workshop_sensitivity(int num, char *table) | 893 static void |
894 workshop_sensitivity(int num, char *table) | |
895 { | 895 { |
896 /* build up a verb table */ | 896 /* build up a verb table */ |
897 VerbSense *vs; | 897 VerbSense *vs; |
898 int i; | 898 int i; |
899 char *s; | 899 char *s; |
945 * Options code | 945 * Options code |
946 */ | 946 */ |
947 /* Set an editor option. | 947 /* Set an editor option. |
948 * IGNORE an option if you do not recognize it. | 948 * IGNORE an option if you do not recognize it. |
949 */ | 949 */ |
950 void workshop_set_option_first(char *name, char *value) | 950 static void |
951 workshop_set_option_first(char *name, char *value) | |
951 { | 952 { |
952 /* Currently value can only be on/off. This may change later (for | 953 /* Currently value can only be on/off. This may change later (for |
953 * example to set an option like "balloon evaluate delay", but | 954 * example to set an option like "balloon evaluate delay", but |
954 * for now just convert it into a boolean */ | 955 * for now just convert it into a boolean */ |
955 Boolean on = !strcmp(value, "on"); | 956 Boolean on = !strcmp(value, "on"); |
1090 */ | 1091 */ |
1091 | 1092 |
1092 | 1093 |
1093 #ifdef DEBUG | 1094 #ifdef DEBUG |
1094 | 1095 |
1095 void | 1096 static void |
1096 pldebug( | 1097 pldebug( |
1097 char *fmt, /* a printf style format line */ | 1098 char *fmt, /* a printf style format line */ |
1098 ...) | 1099 ...) |
1099 { | 1100 { |
1100 va_list ap; | 1101 va_list ap; |