/programs/cmm/eolite/Eolite.c |
---|
187,9 → 187,11 |
dword id; |
int old_cur_y; |
#ifndef __COFF__ |
load_dll(boxlib, #box_lib_init,0); |
load_dll(libini, #lib_init,1); |
load_dll(libimg, #libimg_init,1); |
#endif |
handle_param(); |
/programs/cmm/lib/kolibri.h |
---|
8,6 → 8,8 |
#pragma option cri- |
#pragma option -CPA |
#initallvar 0 |
#ifndef __COFF__ |
#jumptomain FALSE |
#startaddress 0 |
28,7 → 30,17 |
dword I_Path = #program_path; |
char param[4096]; |
char program_path[4096]; |
#else |
extern dword __argv; |
extern dword __path; |
dword I_Param = #__argv; |
dword I_Path = #__path; |
#define param __argv |
#define program_path __path |
#endif |
#define bool int |
#define NULL 0 |
653,13 → 665,19 |
dword __generator; // random number generator init |
//The initialization of the initial data before running |
#ifdef __COFF__ |
void start() |
#else |
:void ______INIT______() |
#endif |
{ |
skin_h = @GetSkinHeight(); |
screen.w = @GetScreenWidth()+1; |
screen.h = @GetScreenHeight()+1; |
__generator = @GetStartTime(); |
#ifndef __COFF__ |
mem_init(); |
#endif |
main(); |
} |
______STOP______: |
/programs/cmm/lib/obj/box_lib.h |
---|
6,6 → 6,25 |
#include "../lib/kolibri.h" |
#endif |
#ifdef __COFF__ |
extern dword edit_box_draw; |
extern dword edit_box_key; |
extern dword edit_box_mouse; |
extern dword edit_box_set_text; |
extern dword scrollbar_v_draw; |
extern dword scrollbar_v_mouse; |
extern dword scrollbar_h_draw; |
extern dword scrollbar_h_mouse; |
extern dword PathShow_prepare; |
extern dword PathShow_draw; |
extern dword progressbar_draw; |
extern dword progressbar_progress; |
extern dword frame_draw; |
#else |
#ifndef INCLUDE_DLL_H |
#include "../lib/dll.h" |
#endif |
55,8 → 74,8 |
char aProgressbar_progress[] = "progressbar_progress"; |
char aFrame_draw[] = "frame_draw"; |
#endif |
struct PathShow_data |
{ |
dword type; |
/programs/cmm/lib/obj/http.h |
---|
5,6 → 5,18 |
#include "../lib/kolibri.h" |
#endif |
#ifdef __COFF__ |
extern dword http_get; |
extern dword http_head; |
extern dword http_post; |
extern dword http_find_header_field; |
extern dword http_send; |
extern dword http_receive; |
extern dword http_disconnect; |
extern dword http_free; |
extern dword http_escape; |
extern dword http_unescape; |
#else |
#ifndef INCLUDE_DLL_H |
#include "../lib/dll.h" |
#endif |
36,6 → 48,7 |
char aHTTPfree[] = "free"; |
char aURIescape[] = "escape"; |
char aURIunescape[] = "unescape"; |
#endif |
// status flags |
#define FLAG_HTTP11 1 << 0 |
/programs/cmm/lib/obj/libimg.h |
---|
10,6 → 10,22 |
#include "../lib/mem.h" |
#endif |
#ifdef __COFF__ |
extern dword img_decode; |
extern dword img_destroy; |
extern dword img_draw; |
extern dword img_create; |
extern dword img_encode; |
extern dword img_convert; |
extern dword img_from_file; |
extern dword img_blend; |
//extern dword img_is_img; |
//extern dword img_to_rgb2; |
//extern dword img_scale; |
extern dword img_flip; |
extern dword img_rotate; |
extern dword img_to_rgb; |
#else |
#ifndef INCLUDE_DLL_H |
#include "../lib/dll.h" |
#endif |
52,6 → 68,7 |
//char aimg_is_img[] = "img_is_img"; |
//char aimg_to_rgb[] = "img_to_rgb"; |
//char aimg_to_rgb2[] = "img_to_rgb2"; |
#endif |
#define LIBIMG_FORMAT_BMP 1 |
#define LIBIMG_FORMAT_ICO 2 |
/programs/cmm/lib/obj/libini.h |
---|
5,6 → 5,17 |
#include "../lib/kolibri.h" |
#endif |
#ifdef __COFF__ |
extern dword ini_enum_sections; |
extern dword ini_enum_keys; |
extern dword ini_get_str; |
extern dword ini_get_int; |
extern dword ini_get_color; |
extern dword ini_set_str; |
extern dword ini_set_int; |
//extern dword ini_set_color; |
//extern dword ini_get_shortcut; |
#else |
#ifndef INCLUDE_DLL_H |
#include "../lib/dll.h" |
#endif |
34,6 → 45,7 |
//char aini_get_shortcut[] = "ini_get_shortcut"; |
char aini_get_color[] = "ini_get_color"; |
//char aini_set_color[] = "ini_set_color"; |
#endif |
//===================================================// |
// // |
/programs/cmm/lib/obj/proc_lib.h |
---|
5,6 → 5,10 |
#include "../lib/kolibri.h" |
#endif |
#ifdef __COFF__ |
extern dword OpenDialog_init; |
extern dword OpenDialog_start; |
#else |
#ifndef INCLUDE_DLL_H |
#include "../lib/dll.h" |
#endif |
18,6 → 22,7 |
char aOpenDialog_init[] = "OpenDialog_init"; |
char aOpenDialog_start[] = "OpenDialog_start"; |
#endif |
struct opendialog |
{ |