4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
11 Problem: Unused functions in Workshop.
12 Solution: Add "#if 0" and minor cleanup. (Dominique Pelle)
13 Files: src/workshop.c, src/integration.c, src/ingegration.h
16 *** ../vim-7.2.326/src/workshop.c 2009-05-21 23:25:38.000000000 +0200
17 --- src/workshop.c 2010-01-06 18:10:10.000000000 +0100
20 static void load_window(char *, int lnum);
21 static void warp_to_pc(int);
23 ! void workshop_beval_cb(BalloonEval *, int);
25 static char *fixAccelText(char *);
26 static void addMenu(char *, char *, char *);
27 static char *lookupVerb(char *, int);
28 - static int computeIndex(int, char_u *, int);
29 static void coloncmd(char *, Boolean);
31 extern Widget vimShell;
33 static void load_window(char *, int lnum);
34 static void warp_to_pc(int);
36 ! void workshop_beval_cb(BalloonEval *, int);
37 ! static int computeIndex(int, char_u *, int);
39 static char *fixAccelText(char *);
40 static void addMenu(char *, char *, char *);
41 static char *lookupVerb(char *, int);
42 static void coloncmd(char *, Boolean);
44 extern Widget vimShell;
66 *** ../vim-7.2.326/src/integration.c 2008-06-24 22:27:10.000000000 +0200
67 --- src/integration.c 2010-01-06 18:18:11.000000000 +0100
71 /* Functions private to this file */
72 static void workshop_connection_closed(void);
73 ! static void messageFromEserve(XtPointer clientData, int *NOTUSED1, XtInputId *NOTUSED2);
74 static void workshop_disconnect(void);
75 static void workshop_sensitivity(int num, char *table);
76 static void adjust_sign_name(char *filename);
79 /* Functions private to this file */
80 static void workshop_connection_closed(void);
81 ! static void messageFromEserve(XtPointer clientData, int *dum1, XtInputId *dum2);
82 static void workshop_disconnect(void);
83 static void workshop_sensitivity(int num, char *table);
84 static void adjust_sign_name(char *filename);
92 ! messageFromEserve(XtPointer clientData, int *NOTUSED1, XtInputId *NOTUSED2)
94 char *cmd; /* the 1st word of the command */
101 ! messageFromEserve(XtPointer clientData UNUSED,
103 ! XtInputId *dum2 UNUSED)
105 char *cmd; /* the 1st word of the command */
112 ! /* Change sign name to accomodate a different size? */
113 adjust_sign_name(sign);
114 workshop_add_mark_type(idx, color, sign);
120 ! /* Change sign name to accommodate a different size? */
121 adjust_sign_name(sign);
122 workshop_add_mark_type(idx, color, sign);
129 ! /* Change sign name to accomodate a different size:
130 * Create the filename based on the height. The filename format
131 * of multisize icons are:
132 * x.xpm : largest icon
137 ! /* Change sign name to accommodate a different size:
138 * Create the filename based on the height. The filename format
139 * of multisize icons are:
140 * x.xpm : largest icon
148 /* Were we invoked by WorkShop? This function can be used early during startup
149 if you want to do things differently if the editor is started standalone
150 or in WorkShop mode. For example, in standalone mode you may not want to
159 /* Connect back to eserve */
160 void workshop_connect(XtAppContext context)
168 /* Set icon for the window */
170 workshop_set_icon(Display *display, Widget shell, char **xpmdata,
175 XtFree((char *)xpmAttributes.colorsymbols);
179 /* Minimize and maximize shells. From libutil's shell.cc. */
187 Boolean workshop_get_rows_cols(int *rows, int *cols)
195 Boolean workshop_get_rows_cols(int *rows, int *cols)
215 * Send information to eserve on certain editor events
216 * You must make sure these are called when necessary
219 void workshop_file_closed(char *filename)
221 char buffer[2*MAXPATHLEN];
228 * Send information to eserve on certain editor events
229 * You must make sure these are called when necessary
231 void workshop_file_closed(char *filename)
233 char buffer[2*MAXPATHLEN];
237 NOCATGETS("deletedFile %s\n"), filename);
238 write(sd, buffer, strlen(buffer));
242 void workshop_file_closed_lineno(char *filename, int lineno)
246 workshop_moved_marks(filename);
249 ! void workshop_move_mark(char *filename, int markId, int newLineno)
251 char buffer[2*MAXPATHLEN];
252 vim_snprintf(buffer, sizeof(buffer),
253 ! NOCATGETS("moveMark %s %d %d\n"), filename, markId, newLineno);
254 write(sd, buffer, strlen(buffer));
257 ! void workshop_file_modified(char *filename)
259 char buffer[2*MAXPATHLEN];
260 vim_snprintf(buffer, sizeof(buffer),
261 ! NOCATGETS("modifiedFile %s\n"), filename);
262 write(sd, buffer, strlen(buffer));
265 void workshop_frame_moved(int new_x, int new_y, int new_w, int new_h)
268 workshop_moved_marks(filename);
272 ! void workshop_file_modified(char *filename)
274 char buffer[2*MAXPATHLEN];
275 vim_snprintf(buffer, sizeof(buffer),
276 ! NOCATGETS("modifiedFile %s\n"), filename);
277 write(sd, buffer, strlen(buffer));
280 ! void workshop_move_mark(char *filename, int markId, int newLineno)
282 char buffer[2*MAXPATHLEN];
283 vim_snprintf(buffer, sizeof(buffer),
284 ! NOCATGETS("moveMark %s %d %d\n"), filename, markId, newLineno);
285 write(sd, buffer, strlen(buffer));
289 void workshop_frame_moved(int new_x, int new_y, int new_w, int new_h)
296 /* Send a message to eserve */
297 + #if defined(NOHANDS_SUPPORT_FUNCTIONS) || defined(FEAT_BEVAL)
298 void workshop_send_message(char *buf)
300 write(sd, buf, strlen(buf));
304 /* Some methods, like currentFile, cursorPos, etc. are missing here.
305 * But it looks like these are used for NoHands testing only so we
306 *** ../vim-7.2.326/src/version.c 2010-01-06 17:46:03.000000000 +0100
307 --- src/version.c 2010-01-06 18:20:41.000000000 +0100
311 { /* Add new patch number below this line */
317 From "know your smileys":
318 (:-# Said something he shouldn't have
320 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
321 /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
322 \\\ download, build and distribute -- http://www.A-A-P.org ///
323 \\\ help me help AIDS victims -- http://ICCF-Holland.org ///