Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 8826 → Rev 8827

/programs/system/shell/modules/module_program_console.c
2,9 → 2,7
#include "../program_console.h"
 
 
int program_console(int pid)
{
 
int program_console(int pid) {
char name[32];
char *buffer;
char *buf1k;
20,8 → 18,7
buffer = NULL;
buf1k = NULL;
 
for (i = 0; i < 30; i++)
{
for (i = 0; i < 30; i++) {
result = kol_buffer_open(name, SHM_OPEN | SHM_WRITE, 0, &buffer);
if (buffer != NULL)
break;
35,13 → 32,10
size = result;
 
is_end = 0;
for (;;)
{
 
for (;;) {
command = *(buffer);
switch (command)
{
switch (command) {
case SC_EXIT:
*buffer = SC_OK;
is_end = 1;
89,20 → 83,14
break;
default:
#if LANG_ENG
printf (" Error in console application.\n\r");
#elif LANG_RUS
printf (" Žè¨¡ª  ¢ ª®­á®«ì­®¬ ¯à¨«®¦¥­¨¨.\n\r");
#endif
printf (CON_APP_ERROR);
return 0;
};
if (is_end)
{
if (is_end) {
printf("\n\r");
return 1;
}
}
 
} // for end
return 9;
}