Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 9807 → Rev 9808

/programs/system/shell/all.h
6,6 → 6,8
#include "lang.h"
#endif
 
#include <stdio.h> // Added by Coldy (this should be right here)
 
#include "system/boolean.h"
#include "system/kolibri.h"
//#include "system/stdlib.h"
37,8 → 39,6
}
//--------
 
extern int _FUNC(sprintf)(char* buffer, const char* format, ...);
 
#include "globals.h"
#include "prototypes.h"
 
/programs/system/shell/cmd/cmd_ls.c
7,7 → 7,7
unsigned *t;
unsigned type_of_file; // check is this a file or a folder
int i, result;
char tmp[FILENAME_MAX];
char* tmp = (char*) malloc(FILENAME_MAX);
 
bool single_column_mode = FALSE;
 
121,6 → 121,7
}
 
free((void*)k70.p16);
free(tmp);
return TRUE;
}
 
/programs/system/shell/cmd/cmd_more.c
6,7 → 6,7
unsigned result, i;
unsigned long long filesize, pos;
char buf[81]; //����
char temp[FILENAME_MAX];
char* temp = (char*) malloc(FILENAME_MAX);
unsigned flags;
 
if (strlen(file)<1) {
87,6 → 87,7
}
con_set_flags(flags);
printf ("\n\r");
free(temp);
return TRUE;
}
 
/programs/system/shell/cmd/cmd_rm.c
2,7 → 2,7
int cmd_rm(char file[]) {
 
kol_struct70 k70;
char temp[FILENAME_MAX];
char* temp = (char*) malloc(FILENAME_MAX);
unsigned result;
 
if (NULL == file || strlen(file) == 0) {
42,6 → 42,8
 
result = kol_file_70(&k70);
 
free(temp);
 
if (0 == result)
return TRUE;
else
/programs/system/shell/cmd/cmd_rmdir.c
1,6 → 1,6
 
int cmd_rmdir(char dir[]) {
char temp[FILENAME_MAX];
char* temp = (char*) malloc(FILENAME_MAX);
kol_struct70 k70;
unsigned result;
 
35,6 → 35,8
 
result = kol_file_70(&k70);
 
free(temp);
if (0 == result)
return TRUE;
else
/programs/system/shell/cmd/cmd_touch.c
2,7 → 2,7
int cmd_touch(char file[])
{
kol_struct70 k70;
char temp[FILENAME_MAX];
char* temp = (char*) malloc(FILENAME_MAX);
unsigned result;
 
if (NULL == file || strlen(file) == 0) {
43,6 → 43,8
 
result = kol_file_70(&k70);
 
free(temp);
if (0 == result)
return TRUE;
else
/programs/system/shell/system/kolibri.h
12,6 → 12,7
#define E_NOMEM 30
#define E_PARAM 33
 
#undef FILENAME_MAX // Added by Coldy (elimination of conflict with stdio.h)
#define FILENAME_MAX 1024
 
#pragma pack(push,1)