]> granicus.if.org Git - vim/commitdiff
updated for version 7.0057
authorBram Moolenaar <Bram@vim.org>
Mon, 7 Mar 2005 23:09:59 +0000 (23:09 +0000)
committerBram Moolenaar <Bram@vim.org>
Mon, 7 Mar 2005 23:09:59 +0000 (23:09 +0000)
runtime/doc/debugger.txt
src/Make_ming.mak
src/feature.h
src/fileio.c
src/os_mswin.c
src/os_unix.c
src/tag.c

index 5bea42a773978cbeb8776f37d4fef4977e643440..4e4f1c06a7ed377341a5ac8a97e12cc6c86ad61b 100644 (file)
@@ -1,4 +1,4 @@
-*debugger.txt*  For Vim version 7.0aa.  Last change: 2005 Feb 23
+*debugger.txt*  For Vim version 7.0aa.  Last change: 2005 Mar 07
 
 
                  VIM REFERENCE MANUAL    by Gordon Prieur
@@ -98,12 +98,15 @@ balloon.
 The 'ballooneval' option needs to be set to switch it on.
 
 Balloon evaluation is only available when compiled with the |+balloon_eval|
-and |+sun_workshop| features.
+feature.
 
 The Balloon evaluation functions are also used to show a tooltip for the
 toolbar.  The 'ballooneval' option does not need to be set for this.  But the
 other settings apply.
 
+Another way to use the balloon is with the 'balloonexpr' option.  This is
+completely user definable.
+
 ==============================================================================
 2. Vim Compile Options                                 *debugger-compilation*
 
index 7cbceb85951a17b149f0a3fe9266ea449a56c27c..1633b6586c5686c9432ee0db27952986b5d34622 100644 (file)
@@ -355,7 +355,7 @@ CFLAGS += -s
 endif
 
 LIB = -lkernel32 -luser32 -lgdi32 -ladvapi32 -lcomdlg32 -lcomctl32
-GUIOBJ =  $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/os_w32exe.o
+GUIOBJ =  $(OUTDIR)/gui.o $(OUTDIR)/gui_w32.o $(OUTDIR)/gui_beval.o $(OUTDIR)/os_w32exe.o
 OBJ = \
        $(OUTDIR)/buffer.o \
        $(OUTDIR)/charset.o \
@@ -423,7 +423,7 @@ endif
 ifeq ($(NETBEANS),yes)
 # Only allow NETBEANS for a GUI build.
 ifeq (yes, $(GUI))
-OBJ += $(OUTDIR)/netbeans.o $(OUTDIR)/gui_beval.o
+OBJ += $(OUTDIR)/netbeans.o
 LIB += -lwsock32
 endif
 endif
index fa874ed7a7dc6d2070772517625528e486b20099..0dac4abde498869d10f8b0b03cc5e0e9384d0c7a 100644 (file)
        && (   (defined(FEAT_TOOLBAR) \
                && !defined(FEAT_GUI_GTK) && !defined(FEAT_GUI_W32)) \
            || defined(FEAT_SUN_WORKSHOP) \
-           || defined(FEAT_NETBEANS_INTG))
+           || defined(FEAT_NETBEANS_INTG) || defined(FEAT_EVAL))
 # define FEAT_BEVAL
 # if !defined(FEAT_XFONTSET) && !defined(FEAT_GUI_GTK) \
        && !defined(FEAT_GUI_KDE) && !defined(FEAT_GUI_W32)
index 1edf0ae79a585ad7b05fa6a07f2302fcdc7ab9e6..a3ac1ae59bca1b907ace462f3a433c2ad57f3a58 100644 (file)
@@ -5905,7 +5905,7 @@ buf_check_timestamp(buf, focus)
     char_u     *path;
     char_u     *tbuf;
     char       *mesg = NULL;
-    char       *mesg2;
+    char       *mesg2 = "";
     int                helpmesg = FALSE;
     int                reload = FALSE;
 #if defined(FEAT_CON_DIALOG) || defined(FEAT_GUI_DIALOG)
index a5e10be498ef701d0970472244774c9db19dd9ea..c833113db50b1201e397bf92c9d038f7d4a710ff 100644 (file)
@@ -1411,6 +1411,7 @@ acp_to_enc(str, str_size, out, outlen)
     MultiByteToWideChar_alloc(GetACP(), 0, str, str_size, &widestr, outlen);
     if (widestr != NULL)
     {
+       ++*outlen;      /* Include the 0 after the string */
        *out = ucs2_to_enc((short_u *)widestr, outlen);
        vim_free(widestr);
     }
index 5df0d35f23bec86e444cdb0d9ed1ddfdd29b4804..c23d88b5660b71f67d4fcdbbe0d86913b16d227e 100644 (file)
@@ -841,7 +841,10 @@ sig_alarm SIGDEFARG(sigarg)
 }
 #endif
 
-#if defined(HAVE_SETJMP_H) || defined(PROTO)
+#if (defined(HAVE_SETJMP_H) \
+       && ((defined(FEAT_X11) && defined(FEAT_XCLIPBOARD)) \
+           || defined(FEAT_LIBCALL))) \
+    || defined(PROTO)
 /*
  * A simplistic version of setjmp() that only allows one level of using.
  * Don't call twice before calling mch_endjmp()!.
index e2c5238b3f1b09a1d3545dbc7858efa87e1806dd..082287596731ef09d4ad23a0f1c3ef5cc53570af 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -3551,12 +3551,15 @@ add_tag_field(dict, field_name, start, end)
     char_u  *end;
 {
     char_u     buf[MAXPATHL];
-    int                len;
+    int                len = 0;
 
-    len = end - start;
-    if (len > sizeof(buf) - 1)
-       len = sizeof(buf) - 1;
-    STRNCPY(buf, start, len);
+    if (start != NULL)
+    {
+       len = end - start;
+       if (len > sizeof(buf) - 1)
+           len = sizeof(buf) - 1;
+       STRNCPY(buf, start, len);
+    }
     buf[len] = NUL;
     return dict_add_nr_str(dict, field_name, 0L, buf);
 }
@@ -3575,8 +3578,6 @@ get_tags(list, pat)
     dict_T     *dict;
     tagptrs_T  tp;
     long       is_static;
-    char_u     buf[200];
-    char_u     *bp;
 
     ret = find_tags(pat, &num_matches, &matches,
                                    TAG_REGEXP | TAG_NOIC, (int)MAXCOL, NULL);
@@ -3584,14 +3585,18 @@ get_tags(list, pat)
     {
        for (i = 0; i < num_matches; ++i)
        {
+           parse_match(matches[i], &tp);
+           is_static = test_for_static(&tp);
+
+           /* Skip pseudo-tag lines. */
+           if (STRNCMP(tp.tagname, "!_TAG_", 6) == 0)
+               continue;
+
            if ((dict = dict_alloc()) == NULL)
                ret = FAIL;
            if (list_append_dict(list, dict) == FAIL)
                ret = FAIL;
 
-           parse_match(matches[i], &tp);
-           is_static = test_for_static(&tp);
-
            if (add_tag_field(dict, "name", tp.tagname, tp.tagname_end) == FAIL
                    || add_tag_field(dict, "filename", tp.fname,
                                                         tp.fname_end) == FAIL
@@ -3602,8 +3607,6 @@ get_tags(list, pat)
                    || dict_add_nr_str(dict, "static", is_static, NULL) == FAIL)
                ret = FAIL;
 
-           bp = buf;
-
            if (tp.command_end != NULL)
            {
                for (p = tp.command_end + 3;
@@ -3616,41 +3619,28 @@ get_tags(list, pat)
                    else if (STRNCMP(p, "file:", 5) == 0)
                        /* skip "file:" (static tag) */
                        p += 4;
-                   else if (STRNCMP(p, "struct:", 7) == 0
-                           || STRNCMP(p, "enum:", 5) == 0
-                           || STRNCMP(p, "class:", 6) == 0)
+                   else if (!vim_iswhite(*p))
                    {
                        char_u  *s, *n;
+                       int     len;
 
-                       /* Field we recognize, add as a dict entry. */
+                       /* Add extra field as a dict entry. */
                        n = p;
-                       if (*n == 's')
-                           p += 7;
-                       else if (*n == 'e')
-                           p += 5;
-                       else
-                           p += 6;
-                       s = p;
-                       while (*p != NUL && *p != '\n' && *p != '\r')
+                       while (*p != NUL && *p > ' ' && *p < 127 && *p != ':')
                            ++p;
-                       if (add_tag_field(dict,
-                                   *n == 's' ? "struct"
-                                              : *n == 'e' ? "enum" : "class",
-                                                               s, p) == FAIL)
-                           ret = FAIL;
+                       len = p - n;
+                       if (*p == ':' && len > 0)
+                       {
+                           s = ++p;
+                           while (*p != NUL && *p > ' ' && *p < 127)
+                               ++p;
+                           n[len] = NUL;
+                           if (add_tag_field(dict, (char *)n, s, p) == FAIL)
+                               ret = FAIL;
+                           n[len] = ':';
+                       }
                        --p;
                    }
-                   else if ((bp - buf) < sizeof(buf) - 1
-                                           && (bp > buf || !vim_iswhite(*p)))
-                       /* Field not recognized, add to "extra" dict entry. */
-                       *bp++ = *p;
-               }
-
-               if (bp > buf)
-               {
-                   *bp = NUL;
-                   if (dict_add_nr_str(dict, "extra", 0L, buf) == FAIL)
-                       ret = FAIL;
                }
            }