1
0
forked from aniani/vim

updated for version 7.2.327

This commit is contained in:
Bram Moolenaar
2010-01-06 18:25:34 +01:00
parent 6f97701373
commit ba07ce32cc
3 changed files with 31 additions and 20 deletions

View File

@@ -78,7 +78,7 @@
/* Functions private to this file */ /* Functions private to this file */
static void workshop_connection_closed(void); static void workshop_connection_closed(void);
static void messageFromEserve(XtPointer clientData, int *NOTUSED1, XtInputId *NOTUSED2); static void messageFromEserve(XtPointer clientData, int *dum1, XtInputId *dum2);
static void workshop_disconnect(void); static void workshop_disconnect(void);
static void workshop_sensitivity(int num, char *table); static void workshop_sensitivity(int num, char *table);
static void adjust_sign_name(char *filename); static void adjust_sign_name(char *filename);
@@ -157,9 +157,10 @@ getCommand(void)
} }
/*ARGSUSED*/
void void
messageFromEserve(XtPointer clientData, int *NOTUSED1, XtInputId *NOTUSED2) messageFromEserve(XtPointer clientData UNUSED,
int *dum1 UNUSED,
XtInputId *dum2 UNUSED)
{ {
char *cmd; /* the 1st word of the command */ char *cmd; /* the 1st word of the command */
@@ -199,7 +200,7 @@ messageFromEserve(XtPointer clientData, int *NOTUSED1, XtInputId *NOTUSED2)
if (sign) { if (sign) {
sign++; sign++;
} }
/* Change sign name to accomodate a different size? */ /* Change sign name to accommodate a different size? */
adjust_sign_name(sign); adjust_sign_name(sign);
workshop_add_mark_type(idx, color, sign); workshop_add_mark_type(idx, color, sign);
} }
@@ -580,7 +581,7 @@ unrecognised_message(
#endif #endif
/* Change sign name to accomodate a different size: /* Change sign name to accommodate a different size:
* Create the filename based on the height. The filename format * Create the filename based on the height. The filename format
* of multisize icons are: * of multisize icons are:
* x.xpm : largest icon * x.xpm : largest icon
@@ -614,6 +615,7 @@ adjust_sign_name(char *filename)
strcpy(s, ".xpm"); strcpy(s, ".xpm");
} }
#if 0
/* Were we invoked by WorkShop? This function can be used early during startup /* Were we invoked by WorkShop? This function can be used early during startup
if you want to do things differently if the editor is started standalone if you want to do things differently if the editor is started standalone
or in WorkShop mode. For example, in standalone mode you may not want to or in WorkShop mode. For example, in standalone mode you may not want to
@@ -627,6 +629,7 @@ workshop_invoked()
} }
return result; return result;
} }
#endif
/* Connect back to eserve */ /* Connect back to eserve */
void workshop_connect(XtAppContext context) void workshop_connect(XtAppContext context)
@@ -750,6 +753,7 @@ void workshop_disconnect()
* Utility functions * Utility functions
*/ */
#if 0
/* Set icon for the window */ /* Set icon for the window */
void void
workshop_set_icon(Display *display, Widget shell, char **xpmdata, workshop_set_icon(Display *display, Widget shell, char **xpmdata,
@@ -793,6 +797,7 @@ workshop_set_icon(Display *display, Widget shell, char **xpmdata,
} }
XtFree((char *)xpmAttributes.colorsymbols); XtFree((char *)xpmAttributes.colorsymbols);
} }
#endif
/* Minimize and maximize shells. From libutil's shell.cc. */ /* Minimize and maximize shells. From libutil's shell.cc. */
@@ -927,7 +932,7 @@ Boolean workshop_get_width_height(int *width, int *height)
return success; return success;
} }
#if 0
Boolean workshop_get_rows_cols(int *rows, int *cols) Boolean workshop_get_rows_cols(int *rows, int *cols)
{ {
static int r = 0; static int r = 0;
@@ -958,6 +963,7 @@ Boolean workshop_get_rows_cols(int *rows, int *cols)
} }
return success; return success;
} }
#endif
/* /*
* Toolbar code * Toolbar code
@@ -1043,12 +1049,11 @@ void workshop_set_option_first(char *name, char *value)
} }
#if 0
/* /*
* Send information to eserve on certain editor events * Send information to eserve on certain editor events
* You must make sure these are called when necessary * You must make sure these are called when necessary
*/ */
void workshop_file_closed(char *filename) void workshop_file_closed(char *filename)
{ {
char buffer[2*MAXPATHLEN]; char buffer[2*MAXPATHLEN];
@@ -1056,6 +1061,7 @@ void workshop_file_closed(char *filename)
NOCATGETS("deletedFile %s\n"), filename); NOCATGETS("deletedFile %s\n"), filename);
write(sd, buffer, strlen(buffer)); write(sd, buffer, strlen(buffer));
} }
#endif
void workshop_file_closed_lineno(char *filename, int lineno) void workshop_file_closed_lineno(char *filename, int lineno)
{ {
@@ -1086,14 +1092,7 @@ void workshop_file_saved(char *filename)
workshop_moved_marks(filename); workshop_moved_marks(filename);
} }
void workshop_move_mark(char *filename, int markId, int newLineno) #if 0
{
char buffer[2*MAXPATHLEN];
vim_snprintf(buffer, sizeof(buffer),
NOCATGETS("moveMark %s %d %d\n"), filename, markId, newLineno);
write(sd, buffer, strlen(buffer));
}
void workshop_file_modified(char *filename) void workshop_file_modified(char *filename)
{ {
char buffer[2*MAXPATHLEN]; char buffer[2*MAXPATHLEN];
@@ -1102,6 +1101,15 @@ void workshop_file_modified(char *filename)
write(sd, buffer, strlen(buffer)); write(sd, buffer, strlen(buffer));
} }
void workshop_move_mark(char *filename, int markId, int newLineno)
{
char buffer[2*MAXPATHLEN];
vim_snprintf(buffer, sizeof(buffer),
NOCATGETS("moveMark %s %d %d\n"), filename, markId, newLineno);
write(sd, buffer, strlen(buffer));
}
#endif
void workshop_frame_moved(int new_x, int new_y, int new_w, int new_h) void workshop_frame_moved(int new_x, int new_y, int new_w, int new_h)
{ {
char buffer[200]; char buffer[200];
@@ -1179,10 +1187,12 @@ void workshop_perform_verb(char *verb, void *clientData)
} }
/* Send a message to eserve */ /* Send a message to eserve */
#if defined(NOHANDS_SUPPORT_FUNCTIONS) || defined(FEAT_BEVAL)
void workshop_send_message(char *buf) void workshop_send_message(char *buf)
{ {
write(sd, buf, strlen(buf)); write(sd, buf, strlen(buf));
} }
#endif
/* Some methods, like currentFile, cursorPos, etc. are missing here. /* Some methods, like currentFile, cursorPos, etc. are missing here.
* But it looks like these are used for NoHands testing only so we * But it looks like these are used for NoHands testing only so we

View File

@@ -681,6 +681,8 @@ static char *(features[]) =
static int included_patches[] = static int included_patches[] =
{ /* Add new patch number below this line */ { /* Add new patch number below this line */
/**/
327,
/**/ /**/
326, 326,
/**/ /**/

View File

@@ -56,12 +56,12 @@ static void load_buffer_by_number(int, int);
static void load_window(char *, int lnum); static void load_window(char *, int lnum);
static void warp_to_pc(int); static void warp_to_pc(int);
#ifdef FEAT_BEVAL #ifdef FEAT_BEVAL
void workshop_beval_cb(BalloonEval *, int); void workshop_beval_cb(BalloonEval *, int);
static int computeIndex(int, char_u *, int);
#endif #endif
static char *fixAccelText(char *); static char *fixAccelText(char *);
static void addMenu(char *, char *, char *); static void addMenu(char *, char *, char *);
static char *lookupVerb(char *, int); static char *lookupVerb(char *, int);
static int computeIndex(int, char_u *, int);
static void coloncmd(char *, Boolean); static void coloncmd(char *, Boolean);
extern Widget vimShell; extern Widget vimShell;
@@ -1624,8 +1624,6 @@ workshop_beval_cb(
} }
} }
} }
#endif
static int static int
computeIndex( computeIndex(
@@ -1649,6 +1647,7 @@ computeIndex(
return -1; return -1;
} }
#endif
static void static void
addMenu( addMenu(