compiles but segfault
This commit is contained in:
parent
2da9a803d8
commit
b93de6229a
7
bish.cc
7
bish.cc
|
@ -1,3 +1,8 @@
|
|||
// *************************
|
||||
// Ben's Implemented SHell
|
||||
// bish
|
||||
// *************************
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdlib>
|
||||
#include <string>
|
||||
|
@ -52,7 +57,7 @@ int main(int argc, char **argv){
|
|||
// char **args = v_to_cpp(split(line));
|
||||
command *cmd = parse(split(line));
|
||||
print_cmd(cmd);
|
||||
continue;
|
||||
// continue;
|
||||
|
||||
free(line);
|
||||
line = (char*)NULL;
|
||||
|
|
2
parse.cc
2
parse.cc
|
@ -1,3 +1,5 @@
|
|||
// Parser stuff for bish
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
|
1
parse.h
1
parse.h
|
@ -5,7 +5,6 @@
|
|||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
using namespace std;
|
||||
|
||||
// method definitions
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// bish util fns
|
||||
|
||||
#include <vector>
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
#ifndef _util_fns_
|
||||
#define _util_fns_
|
||||
|
||||
#include <string>
|
||||
#include <string.h>
|
||||
#include <vector>
|
||||
using namespace std;
|
||||
|
||||
// method definitions
|
||||
|
|
Loading…
Reference in New Issue