/svarlang.lib/trunk/autoload.c |
---|
0,0 → 1,30 |
/* This file is part of the svarlang project and is published under the terms |
* of the MIT license. |
* |
* Copyright (C) 2021-2023 Mateusz Viste |
* |
* Permission is hereby granted, free of charge, to any person obtaining a |
* copy of this software and associated documentation files (the "Software"), |
* to deal in the Software without restriction, including without limitation |
* the rights to use, copy, modify, merge, publish, distribute, sublicense, |
* and/or sell copies of the Software, and to permit persons to whom the |
* Software is furnished to do so, subject to the following conditions: |
* |
* The above copyright notice and this permission notice shall be included in |
* all copies or substantial portions of the Software. |
* |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
* DEALINGS IN THE SOFTWARE. |
*/ |
#include "svarlang.h" |
int svarlang_autoload(const char *progname) { |
if (svarlang_autoload_nlspath(progname) == 0) return(0); |
return(-1); |
} |
/svarlang.lib/trunk/history.txt |
---|
1,5 → 1,4 |
xxxxxxxx |
- dropped svarlang_autoload() (replaced by more specialized functions below) |
- added svarlang_autoload_exepath() and svarlang_autoload_nlspath() |
- svarlang_load() simplified so it takes the target filename as an argument |
/svarlang.lib/trunk/makefile |
---|
7,39 → 7,41 |
CFLAGS=-0 -wx -we -ox |
ALLFILES=auto_exe.c auto_nls.c svarlang.c version.c |
svarlngs.lib: $(ALLFILES) |
svarlngs.lib: autoload.c auto_exe.c auto_nls.c svarlang.c version.c |
wcc $(CFLAGS) -ms autoload.c |
wcc $(CFLAGS) -ms auto_exe.c |
wcc $(CFLAGS) -ms auto_nls.c |
wcc $(CFLAGS) -ms svarlang.c |
wcc $(CFLAGS) -ms version.c |
if exist svarlngs.lib del svarlngs.lib |
wlib -n svarlngs.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
wlib -n svarlngs.lib +autoload.obj +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
svarlngc.lib: $(ALLFILES) |
svarlngc.lib: autoload.c auto_exe.c auto_nls.c svarlang.c version.c |
wcc $(CFLAGS) -mc autoload.c |
wcc $(CFLAGS) -mc auto_exe.c |
wcc $(CFLAGS) -mc auto_nls.c |
wcc $(CFLAGS) -mc svarlang.c |
wcc $(CFLAGS) -mc version.c |
if exist svarlngc.lib del svarlngc.lib |
wlib -n svarlngc.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
wlib -n svarlngc.lib +autoload.obj +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
svarlngm.lib: $(ALLFILES) |
svarlngm.lib: autoload.c auto_exe.c auto_nls.c svarlang.c version.c |
wcc $(CFLAGS) -mm autoload.c |
wcc $(CFLAGS) -mm auto_exe.c |
wcc $(CFLAGS) -mm auto_nls.c |
wcc $(CFLAGS) -mm svarlang.c |
wcc $(CFLAGS) -mm version.c |
if exist svarlngm.lib del svarlngm.lib |
wlib -n svarlngm.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
wlib -n svarlngm.lib +autoload.obj +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
svarlngl.lib: $(ALLFILES) |
svarlngl.lib: autoload.c auto_exe.c auto_nls.c svarlang.c version.c |
wcc $(CFLAGS) -ml autoload.c |
wcc $(CFLAGS) -ml auto_exe.c |
wcc $(CFLAGS) -ml auto_nls.c |
wcc $(CFLAGS) -ml svarlang.c |
wcc $(CFLAGS) -ml version.c |
if exist svarlngl.lib del svarlngl.lib |
wlib -n svarlngl.lib +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
wlib -n svarlngl.lib +autoload.obj +auto_exe.obj +auto_nls.obj +svarlang.obj +version.obj |
tlumacz.exe: tlumacz.c |
/svarlang.lib/trunk/svarlang.h |
---|
53,7 → 53,7 |
/* this relies on getenv() to pull LANG and NLSPATH variables and looks |
* for a translation file named "%NLSPATH%\progname.lng". |
* this call should be used only by "CORE" SvarDOS / FreeDOS programs. */ |
* this call should be used only by "CORE" SvarDOS programs. */ |
int svarlang_autoload_nlspath(const char *progname); |
/* Returns a pointer to the string "id". Does not require svalang_load() to be |