… | |
… | |
73 | |
73 | |
74 | /********************************************************************** |
74 | /********************************************************************** |
75 | * private |
75 | * private |
76 | **********************************************************************/ |
76 | **********************************************************************/ |
77 | |
77 | |
78 | static void AppDestroy(App self); |
78 | void AppDestroy(App self); |
79 | static Edit AppEditInsert(App self,String path,EditType type); |
79 | Edit AppEditInsert(App self,String path,EditType type); |
80 | static void AppEditAttach(App self,Edit edit); |
80 | void AppEditAttach(App self,Edit edit); |
81 | |
81 | |
82 | #if 0 |
82 | #if 0 |
83 | static void AbsToCr(App self,String abs) |
83 | static void AbsToCr(App self,String abs) |
84 | { |
84 | { |
85 | char mapdir[PATH_MAX+1],path[PATH_MAX+1],*current,*filename; |
85 | char mapdir[PATH_MAX+1],path[PATH_MAX+1],*current,*filename; |
… | |
… | |
853 | } |
853 | } |
854 | |
854 | |
855 | /* |
855 | /* |
856 | * member: vanish application |
856 | * member: vanish application |
857 | */ |
857 | */ |
858 | static void AppDestroy(App self) |
858 | void AppDestroy(App self) |
859 | { |
859 | { |
860 | Edit edit; |
860 | Edit edit; |
861 | Edit temp; |
861 | Edit temp; |
862 | |
862 | |
863 | debug0("AppDestroy()"); |
863 | debug0("AppDestroy()"); |
… | |
… | |
1010 | |
1010 | |
1011 | |
1011 | |
1012 | /* |
1012 | /* |
1013 | * member: add editor |
1013 | * member: add editor |
1014 | */ |
1014 | */ |
1015 | static Edit AppEditInsert(App self,String path,EditType type) |
1015 | Edit AppEditInsert(App self,String path,EditType type) |
1016 | { |
1016 | { |
1017 | Edit edit; |
1017 | Edit edit; |
1018 | Edit editor; |
1018 | Edit editor; |
1019 | |
1019 | |
1020 | /*** check if exist ***/ |
1020 | /*** check if exist ***/ |
… | |
… | |
1048 | } |
1048 | } |
1049 | |
1049 | |
1050 | /* |
1050 | /* |
1051 | * attach Edit to App environment |
1051 | * attach Edit to App environment |
1052 | */ |
1052 | */ |
1053 | static void AppEditAttach(App self,Edit edit) |
1053 | void AppEditAttach(App self,Edit edit) |
1054 | { |
1054 | { |
1055 | debug1("AppEditAttach() %s\n",EditGetPath(edit)); |
1055 | debug1("AppEditAttach() %s\n",EditGetPath(edit)); |
1056 | /*** attach edit to list ***/ |
1056 | /*** attach edit to list ***/ |
1057 | edit->next = self->edit; |
1057 | edit->next = self->edit; |
1058 | self->edit = edit; |
1058 | self->edit = edit; |