summaryrefslogtreecommitdiffstats
path: root/src/browse.h
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2011-05-13 15:53:02 (GMT)
committerEvan Martin <martine@danga.com>2011-05-13 23:28:07 (GMT)
commit1c80bd1691f69332a8fec42080c1c341c0e2fa44 (patch)
treefd73c9d72997316fdc7b02f08ba6820784d790af /src/browse.h
parente2543e423499f2d9619941e33276ae1240fb2b91 (diff)
downloadNinja-1c80bd1691f69332a8fec42080c1c341c0e2fa44.zip
Ninja-1c80bd1691f69332a8fec42080c1c341c0e2fa44.tar.gz
Ninja-1c80bd1691f69332a8fec42080c1c341c0e2fa44.tar.bz2
make browse work for all ninja paths
Pass the path to the ninja binary in to the Python script. Confusingly, in some places the variables were already in place to do this, but they were accidentally used for something else entirely.
Diffstat (limited to 'src/browse.h')
-rw-r--r--src/browse.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/browse.h b/src/browse.h
index d46cbf0..263641f 100644
--- a/src/browse.h
+++ b/src/browse.h
@@ -18,8 +18,10 @@
struct State;
/// Run in "browse" mode, which execs a Python webserver.
-/// |command| is the command used to invoke ninja.
+/// \a ninja_command is the command used to invoke ninja.
+/// \a initial_target is the first target to load.
/// This function does not return if it runs successfully.
-void RunBrowsePython(State* state, const char* ninja_command);
+void RunBrowsePython(State* state, const char* ninja_command,
+ const char* initial_target);
#endif // NINJA_BROWSE_H_