moving to project folder
This commit is contained in:
parent
00f1dfe790
commit
24ad0cf680
|
@ -195,6 +195,7 @@ fn_sym_def(object *args, object *env)
|
|||
}
|
||||
|
||||
|
||||
>>>>>>> 5392bac (moving to project folder)
|
||||
object *
|
||||
fn_listlibrary2(object *args, object *env)
|
||||
{
|
||||
|
@ -367,7 +368,6 @@ fn_sd_rename(object *args, object *env)
|
|||
char buffer1[BUFFERSIZE];
|
||||
char buffer2[BUFFERSIZE];
|
||||
|
||||
|
||||
object *pathFrom = car(args);
|
||||
if (!stringp(pathFrom)) {
|
||||
error2("filenames must be strings.");
|
||||
|
@ -392,7 +392,6 @@ fn_sd_remove(object *args, object *env)
|
|||
(void) env;
|
||||
char buffer[BUFFERSIZE];
|
||||
|
||||
|
||||
object *arg = car(args);
|
||||
if (!SD.remove(MakeFilename(arg, buffer))) {
|
||||
return nil;
|
||||
|
@ -407,7 +406,6 @@ fn_sd_existsp(object *args, object *env)
|
|||
(void) env;
|
||||
|
||||
char buffer[BUFFERSIZE];
|
||||
|
||||
object *arg = car(args);
|
||||
if (!SD.exists(MakeFilename(arg, buffer))) {
|
||||
return nil;
|
||||
|
@ -466,9 +464,8 @@ fn_sd_list(object *args, object *env)
|
|||
{
|
||||
(void) env;
|
||||
|
||||
SDBegin();
|
||||
char *sd_path_buf = NULL;
|
||||
|
||||
SDBegin();
|
||||
File root;
|
||||
object *result = cons(NULL, NULL);
|
||||
object *ptr = result;
|
||||
|
@ -476,8 +473,8 @@ fn_sd_list(object *args, object *env)
|
|||
if (args != NULL) {
|
||||
object *arg1 = checkstring(first(args));
|
||||
int len = stringlength(arg1) + 2; //make it longer for the initial slash and the null terminator
|
||||
sd_path_buf = (char*)malloc(len);
|
||||
|
||||
sd_path_buf = (char*)malloc(len);
|
||||
if (sd_path_buf != NULL) {
|
||||
cstring(arg1, &sd_path_buf[1], len-1);
|
||||
sd_path_buf[0] = '/'; //really weird way to add a slash at the front...
|
||||
|
|
Loading…
Reference in New Issue