/sved/trunk/deflang.c |
---|
1,9 → 1,10 |
/* THIS FILE HAS BEEN GENERATED BY TLUMACZ (PART OF THE SVARLANG LIBRARY) */ |
const unsigned short svarlang_memsz = 119u; |
const unsigned short svarlang_string_count = 7u; |
const unsigned short svarlang_memsz = 132u; |
const unsigned short svarlang_string_count = 8u; |
char svarlang_mem[119] = { |
char svarlang_mem[132] = { |
0x48,0x45,0x4c,0x50,0x00, |
0x2a,0x4e,0x45,0x57,0x20,0x46,0x49,0x4c,0x45,0x2a,0x00, |
0x75,0x73,0x61,0x67,0x65,0x3a,0x20,0x73,0x76,0x65,0x64,0x20,0x66,0x69,0x6c,0x65, |
0x2e,0x74,0x78,0x74,0x00, |
0x46,0x35,0x20,0x20,0x3d,0x20,0x73,0x61,0x76,0x65,0x20,0x66,0x69,0x6c,0x65,0x00, |
15,12 → 16,13 |
0x50,0x72,0x65,0x73,0x73,0x20,0x61,0x6e,0x79,0x20,0x6b,0x65,0x79,0x00 |
}; |
unsigned short svarlang_dict[14] = { |
unsigned short svarlang_dict[16] = { |
0x0000,0x0000, |
0x0100,0x0005, |
0x0800,0x001a, |
0x0801,0x002a, |
0x0802,0x003b, |
0x080a,0x0055, |
0x080b,0x0060 |
0x0001,0x0005, |
0x0100,0x0010, |
0x0800,0x0025, |
0x0801,0x0035, |
0x0802,0x0046, |
0x080a,0x0060, |
0x080b,0x006b |
}; |
/sved/trunk/nls/en_utf8.txt |
---|
5,8 → 5,8 |
############### |
0.0:HELP |
0.1:*NEW FILE* |
################ |
# USAGE SCREEN # |
################ |
/sved/trunk/nls/pl_utf8.txt |
---|
6,8 → 6,8 |
############### |
0.0:POMOC |
0.1:*NOWY PLIK* |
############### |
# HELP SCREEN # |
############### |
/sved/trunk/sved.c |
---|
119,7 → 119,11 |
mdr_cout_char_rep(screenh - 1, 0, ' ', scheme[COL_STATUSBAR1], screenw); |
/* filename */ |
mdr_cout_str(screenh - 1, 0, db->fname, scheme[COL_STATUSBAR1], screenw); |
if (db->fname[0] == 0) { |
mdr_cout_str(screenh - 1, 0, svarlang_str(0, 1), scheme[COL_STATUSBAR1], screenw); |
} else { |
mdr_cout_str(screenh - 1, 0, db->fname, scheme[COL_STATUSBAR1], screenw); |
} |
/* eol type */ |
if (db->lfonly) { |
383,7 → 387,7 |
} |
/* check args now */ |
if (count != 1) return(NULL); |
if (count == 0) return(""); |
return(argv[0]); |
} |
395,20 → 399,20 |
int fd; |
struct file *db; |
len = strlen(fname) + 1; |
db = calloc(1, sizeof(struct file) + len); |
if (db == NULL) return(NULL); |
memcpy(db->fname, fname, len); |
if (*fname == 0) goto SKIPLOADING; |
if (_dos_open(fname, O_RDONLY, &fd) != 0) { |
mdr_coutraw_puts("Failed to open file:"); |
mdr_coutraw_puts(fname); |
free(db); |
return(NULL); |
} |
len = strlen(fname) + 1; |
db = calloc(1, sizeof(struct file) + len); |
if (db == NULL) { |
_dos_close(fd); |
return(NULL); |
} |
memcpy(db->fname, fname, len); |
db->lfonly = 1; |
do { |
443,9 → 447,11 |
_dos_close(fd); |
SKIPLOADING: |
/* add an empty line at end if not present already, also rewind cursor to top of file */ |
if (db != NULL) { |
if (db->cursor->len != 0) line_add(db, ""); |
if ((db->cursor == NULL) || (db->cursor->len != 0)) line_add(db, ""); |
db_rewind(db); |
} |
/sved/trunk/sved.lng |
---|
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |