compiles but segfault

This commit is contained in:
Ben Harris 2016-11-07 12:43:10 -05:00
parent 2da9a803d8
commit b93de6229a
5 changed files with 13 additions and 2 deletions

View File

@ -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;

View File

@ -1,3 +1,5 @@
// Parser stuff for bish
#include <string>
#include <vector>
#include <iostream>

View File

@ -5,7 +5,6 @@
#include <string>
#include <vector>
#include <iostream>
using namespace std;
// method definitions

View File

@ -1,3 +1,5 @@
// bish util fns
#include <vector>
#include <string>
#include <string.h>

View File

@ -3,6 +3,9 @@
#ifndef _util_fns_
#define _util_fns_
#include <string>
#include <string.h>
#include <vector>
using namespace std;
// method definitions