mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 21:28:04 +02:00
# ignore-this-changeset --HG-- extra : amend_source : 4d301d3b0b8711c4692392aa76088ba7fd7d1022
21 lines
433 B
C++
21 lines
433 B
C++
#include "OSObject.cpp"
|
|
#include "jsoptparse.cpp"
|
|
#define main shell_main
|
|
#include "js.cpp"
|
|
#undef main
|
|
|
|
#include <unistd.h>
|
|
|
|
extern "C" bool GetDocumentsDirectory(char* dir);
|
|
|
|
// Fake editline
|
|
char* readline(const char* prompt) { return nullptr; }
|
|
|
|
void add_history(char* line) {}
|
|
|
|
int main(int argc, char** argv, char** envp) {
|
|
char dir[1024];
|
|
GetDocumentsDirectory(dir);
|
|
chdir(dir);
|
|
return shell_main(argc, argv, envp);
|
|
}
|