403:b59935b2de79 | 404:384f6d1f5784 |
---|---|
26 * POSSIBILITY OF SUCH DAMAGE. | 26 * POSSIBILITY OF SUCH DAMAGE. |
27 */ | 27 */ |
28 | 28 |
29 #include <stdio.h> | 29 #include <stdio.h> |
30 #include <stdlib.h> | 30 #include <stdlib.h> |
31 #include <string.h> | |
31 | 32 |
32 #include <ui/ui.h> | 33 #include <ui/ui.h> |
33 #include <cx/buffer.h> | 34 #include <cx/buffer.h> |
34 #include <cx/utils.h> | 35 #include <cx/utils.h> |
36 | |
37 #ifndef UI_COCOA | |
35 | 38 |
36 typedef struct { | 39 typedef struct { |
37 UiString *str1; | 40 UiString *str1; |
38 UiString *str2; | 41 UiString *str2; |
39 UiString *path; | 42 UiString *path; |
447 | 450 |
448 ui_main(); | 451 ui_main(); |
449 | 452 |
450 return (EXIT_SUCCESS); | 453 return (EXIT_SUCCESS); |
451 } | 454 } |
455 | |
456 #endif | |
457 | |
458 #ifdef UI_COCOA | |
459 | |
460 void application_startup(UiEvent *event, void *data) { | |
461 | |
462 } | |
463 | |
464 int main(int argc, char** argv) { | |
465 ui_init("app1", argc, argv); | |
466 ui_onstartup(application_startup, NULL); | |
467 ui_main(); | |
468 return (EXIT_SUCCESS); | |
469 } | |
470 | |
471 #endif |