forked from KolibriOS/kolibrios
TinyHashView: now uses autoimport.
git-svn-id: svn://kolibrios.org@9625 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
3ff8dda3d4
commit
84cfbe46f0
@ -1,9 +1,10 @@
|
|||||||
if tup.getconfig("NO_TCC") ~= "" then return end
|
if tup.getconfig("NO_TCC") ~= "" then return end
|
||||||
|
if tup.getconfig("HELPERDIR") == ""
|
||||||
TCC="kos32-tcc"
|
then
|
||||||
CFLAGS = "-I../../develop/ktcc/trunk/libc.obj/include"
|
HELPERDIR = "../../../programs"
|
||||||
LDFLAGS = "-nostdlib ../../develop/ktcc/trunk/bin/lib/crt0.o -L../../develop/ktcc/trunk/bin/lib"
|
end
|
||||||
LIBS = "-ltcc -lcryptal -ldialog -lbox -lc.obj"
|
tup.include(HELPERDIR .. "/use_tcc.lua")
|
||||||
|
|
||||||
COMMAND=string.format("%s %s %s %s %s ", TCC, CFLAGS, LDFLAGS, "%f -o %o", LIBS)
|
LIBS = "-lcryptal -lbox_lib -ldialog"
|
||||||
tup.rule("thashview.c", COMMAND .. tup.getconfig("KPACK_CMD"), "thashview")
|
|
||||||
|
link_tcc({"thashview.c"}, "thashview");
|
||||||
|
@ -274,9 +274,7 @@ bool hash_compare() //
|
|||||||
|
|
||||||
int main(int argc, char** argv)
|
int main(int argc, char** argv)
|
||||||
{
|
{
|
||||||
kolibri_boxlib_init(); // ‡ £à㦠¥¬ boxlib
|
|
||||||
if(argc<2){ // …᫨ à£ã¬¥â®¢ ¥â, â® § ¯ã᪠¥¬ ¤¨ «®£ ¢ë¡®à ä
|
if(argc<2){ // …᫨ à£ã¬¥â®¢ ¥â, â® § ¯ã᪠¥¬ ¤¨ «®£ ¢ë¡®à ä
|
||||||
kolibri_dialog_init(); // § £à㦠¥¬ proc_lib(libdialog)
|
|
||||||
open_dialog* dialog = kolibri_new_open_dialog(OPEN,0, 0, 420, 320);
|
open_dialog* dialog = kolibri_new_open_dialog(OPEN,0, 0, 420, 320);
|
||||||
OpenDialog_init(dialog);
|
OpenDialog_init(dialog);
|
||||||
OpenDialog_start(dialog);
|
OpenDialog_start(dialog);
|
||||||
@ -322,7 +320,7 @@ int main(int argc, char** argv)
|
|||||||
break;
|
break;
|
||||||
case KSYS_EVENT_KEY:
|
case KSYS_EVENT_KEY:
|
||||||
hash_edit_box.text_color = BLACK;
|
hash_edit_box.text_color = BLACK;
|
||||||
edit_box_key(&hash_edit_box, _ksys_get_key().val);
|
edit_box_key_safe(&hash_edit_box, _ksys_get_key());
|
||||||
break;
|
break;
|
||||||
case KSYS_EVENT_BUTTON: // ‘®¡ë⨥ ®¡à ¡®âª¨ ª®¯®ª
|
case KSYS_EVENT_BUTTON: // ‘®¡ë⨥ ®¡à ¡®âª¨ ª®¯®ª
|
||||||
pressed_button = _ksys_get_button(); // <20>®«ã票¥ ª®¤ ¦ ⮩ ª®¯ª¨.
|
pressed_button = _ksys_get_button(); // <20>®«ã票¥ ª®¤ ¦ ⮩ ª®¯ª¨.
|
||||||
|
Loading…
Reference in New Issue
Block a user