From 3edb7f980ae4601e1893b051482dad5e551bf696 Mon Sep 17 00:00:00 2001 From: Nikita Kalyazin Date: Wed, 23 Apr 2014 11:05:40 +0400 Subject: [PATCH] add comment to findEgrepPatternCmd It also requires for cscope to be invoked at the same directory as db was created. --- src/cscope.coffee | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/cscope.coffee b/src/cscope.coffee index 417d857..7046b26 100644 --- a/src/cscope.coffee +++ b/src/cscope.coffee @@ -8,9 +8,9 @@ nexpect = require 'nexpect' findSymbolCmd = "1" funcsCalledByCmd = "2" funcsCallingCmd = "3" -findTextStringCmd = "4" # FIXME: only same dir +# findTextStringCmd = "4" # FIXME: only same dir # changeTextStringCmd = "5" # TODO: do i need this at all? -findEgrepPatternCmd = "6" +# findEgrepPatternCmd = "6" # FIXME: only same dir findFileCmd = "7" findFilesIncludingCmd = "8" findAssignCmd = "9" @@ -72,14 +72,14 @@ funcsCalledBy = (symbol, db, callback) -> funcsCalling = (symbol, db, callback) -> genericFind funcsCallingCmd, symbol, db, callback -findTextString = (symbol, db, callback) -> - genericFind findTextStringCmd, symbol, db, callback +# findTextString = (symbol, db, callback) -> +# genericFind findTextStringCmd, symbol, db, callback # changeTextString = (symbol, db, callback) -> # genericFind changeTextStringCmd, symbol, db, callback -findEgrepPattern = (symbol, db, callback) -> - genericFind findEgrepPatternCmd, symbol, db, callback +# findEgrepPattern = (symbol, db, callback) -> +# genericFind findEgrepPatternCmd, symbol, db, callback findFile = (symbol, db, callback) -> genericFind findFileCmd, symbol, db, callback @@ -95,11 +95,11 @@ printResult = (results) -> console.log "file: #{r.file}, sym: #{r.sym}, line: #{r.line}" # findSymbol symbolToSearch, dbPath, printResult -# funcsCalledBy symbolToSearch, dbPath, printResult +funcsCalledBy symbolToSearch, dbPath, printResult # funcsCalling symbolToSearch, dbPath, printResult # findTextString symbolToSearch, dbPath, printResult # changeTextString symbolToSearch, dbPath, printResult -findEgrepPattern symbolToSearch, dbPath, printResult +# findEgrepPattern symbolToSearch, dbPath, printResult # findFile symbolToSearch, dbPath, printResult # findFilesIncluding symbolToSearch, dbPath, printResult # findAssign symbolToSearch, dbPath, printResult