Subversion Repositories SvarDOS

Rev

Rev 1302 | Rev 1308 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1302 Rev 1307
Line 28... Line 28...
28
#include <stdlib.h>
28
#include <stdlib.h>
29
#include <string.h>
29
#include <string.h>
30
#include <malloc.h>   /* _fcalloc() */
30
#include <malloc.h>   /* _fcalloc() */
31
 
31
 
32
#include "mdr\cout.h"
32
#include "mdr\cout.h"
-
 
33
#include "mdr\dos.h"
33
#include "mdr\keyb.h"
34
#include "mdr\keyb.h"
34
 
35
 
35
#include "svarlang\svarlang.h"
36
#include "svarlang\svarlang.h"
36
 
37
 
37
#define COL_TXT        0
38
#define COL_TXT        0
Line 363... Line 364...
363
  unsigned char cursorposx = 0, cursorposy = 0;
364
  unsigned char cursorposx = 0, cursorposy = 0;
364
  unsigned char uidirtyfrom = 0, uidirtyto = 0xff; /* make sure to redraw entire UI at first run */
365
  unsigned char uidirtyfrom = 0, uidirtyto = 0xff; /* make sure to redraw entire UI at first run */
365
 
366
 
366
  bzero(&db, sizeof(db));
367
  bzero(&db, sizeof(db));
367
 
368
 
-
 
369
  {
368
  svarlang_autoload_nlspath("sved");
370
    char nlspath[128], lang[8];
-
 
371
    svarlang_autoload_pathlist("sved", mdr_dos_getenv(nlspath, "NLSPATH", sizeof(nlspath)), mdr_dos_getenv(lang, "LANG", sizeof(lang)));
-
 
372
  }
369
 
373
 
370
  fname = parseargv();
374
  fname = parseargv();
371
 
375
 
372
  if (fname == NULL) {
376
  if (fname == NULL) {
373
    mdr_coutraw_puts(svarlang_str(1,0)); /* usage: sved file.txt */
377
    mdr_coutraw_puts(svarlang_str(1,0)); /* usage: sved file.txt */