Loading ...
Sorry, an error occurred while loading the content.

[PATCH] src/if_cscope.c: Add new search type no.9 "find assignments to" introduced in cscope 15.8

Expand Messages
  • UliM
    Hi, there is a new search type in cscope 15.8 to search for assignments and this patch allows you to use it from vim. The same functionality had been offered
    Message 1 of 3 , Sep 1, 2012
    • 0 Attachment
      Hi,

      there is a new search type in cscope 15.8 to search for assignments
      and this patch allows you to use it from vim.
      The same functionality had been offered before by a RedHat patch.
      However, that patch reused search type 4 (text) and therefore didn't
      require changes to vim.
      See the cscope Changelog, specifically the entry for 2012-03-05.
      The patch should apply fine against the mercurial head.

      Thanks,

      Uli

      diff -rc ./src/if_cscope.c ../vim-7.3.429/src/if_cscope.c
      *** ./src/if_cscope.c 2012-09-01 12:21:02.251387233 +0200
      --- ../vim-7.3.429/src/if_cscope.c 2012-09-01 12:21:15.419387585 +0200
      ***************
      *** 792,797 ****
      --- 792,800 ----
      case '8' : case 'i' :
      search = 8;
      break;
      + case '9' : case 'a' :
      + search = 9;
      + break;
      default :
      (void)EMSG(_("E561: unknown cscope search type"));
      cs_usage_msg(Find);
      ***************
      *** 1345,1351 ****
      " g: Find this definition\n"
      " i: Find files #including this file\n"
      " s: Find this C symbol\n"
      ! " t: Find this text string\n"));

      cmdp++;
      }
      --- 1348,1355 ----
      " g: Find this definition\n"
      " i: Find files #including this file\n"
      " s: Find this C symbol\n"
      ! " t: Find this text string\n"
      ! " a: Find assignments to this symbol\n"));

      cmdp++;
      }
      diff -rc ./src/if_cscope.h ../vim-7.3.429/src/if_cscope.h
      *** ./src/if_cscope.h 2012-02-05 01:18:48.000000000 +0100
      --- ../vim-7.3.429/src/if_cscope.h 2012-09-01 12:23:09.287390636 +0200
      ***************
      *** 35,45 ****
      * d 2name Find functions called by this function
      * c 3name Find functions calling this function
      * t 4string find text string (cscope 12.9)
      ! * t 4name Find assignments to (cscope 13.3)
      * 5pattern change pattern -- NOT USED
      * e 6pattern Find this egrep pattern
      * f 7name Find this file
      * i 8name Find files #including this file
      */

      typedef struct {
      --- 35,46 ----
      * d 2name Find functions called by this function
      * c 3name Find functions calling this function
      * t 4string find text string (cscope 12.9)
      ! * t 4name Find assignments to (RedHat cscope 13.3)
      * 5pattern change pattern -- NOT USED
      * e 6pattern Find this egrep pattern
      * f 7name Find this file
      * i 8name Find files #including this file
      + * a 9name Find assignments to (cscope 15.8)
      */

      typedef struct {

      --
      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php
    • Bram Moolenaar
      ... Thanks, can I have your full name to mention on the Vim patch? -- Not too long ago, a program was something you watched on TV... /// Bram Moolenaar --
      Message 2 of 3 , Sep 2, 2012
      • 0 Attachment
        Uli wrote:

        > there is a new search type in cscope 15.8 to search for assignments
        > and this patch allows you to use it from vim.
        > The same functionality had been offered before by a RedHat patch.
        > However, that patch reused search type 4 (text) and therefore didn't
        > require changes to vim.
        > See the cscope Changelog, specifically the entry for 2012-03-05.
        > The patch should apply fine against the mercurial head.

        Thanks, can I have your full name to mention on the Vim patch?


        --
        Not too long ago, a program was something you watched on TV...

        /// Bram Moolenaar -- Bram@... -- http://www.Moolenaar.net \\\
        /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
        \\\ an exciting new programming language -- http://www.Zimbu.org ///
        \\\ help me help AIDS victims -- http://ICCF-Holland.org ///

        --
        You received this message from the "vim_dev" maillist.
        Do not top-post! Type your reply below the text you are replying to.
        For more information, visit http://www.vim.org/maillist.php
      • Uli Meis
        Hey Bram, ... thanks a lot for using the patch and sorry about the missing last name, totally forgot about that. Uli Meis -- You received this message from the
        Message 3 of 3 , Sep 2, 2012
        • 0 Attachment
          Hey Bram,

          On Sun, Sep 2, 2012 at 2:44 PM, Bram Moolenaar <Bram@...> wrote:
          >
          > Uli wrote:
          >
          >> there is a new search type in cscope 15.8 to search for assignments
          >> and this patch allows you to use it from vim.
          >> The same functionality had been offered before by a RedHat patch.
          >> However, that patch reused search type 4 (text) and therefore didn't
          >> require changes to vim.
          >> See the cscope Changelog, specifically the entry for 2012-03-05.
          >> The patch should apply fine against the mercurial head.
          >
          > Thanks, can I have your full name to mention on the Vim patch?

          thanks a lot for using the patch and sorry about the missing last
          name, totally forgot about that.

          Uli Meis

          --
          You received this message from the "vim_dev" maillist.
          Do not top-post! Type your reply below the text you are replying to.
          For more information, visit http://www.vim.org/maillist.php
        Your message has been successfully submitted and would be delivered to recipients shortly.