Skip to content

Commit

Permalink
add comment to findEgrepPatternCmd
Browse files Browse the repository at this point in the history
It also requires for cscope to be invoked at the same directory as db
was created.
  • Loading branch information
kalyazin authored and Nikita Kalyazin committed Apr 23, 2014
1 parent f36a8ef commit 3edb7f9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/cscope.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand All @@ -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

0 comments on commit 3edb7f9

Please sign in to comment.