OLD | NEW |
1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "todomvc_presenter.h" | 5 #include "todomvc_presenter.h" |
6 | 6 |
7 void VoidCallback(void*) {} | 7 void VoidCallback(void*) {} |
8 | 8 |
9 void TodoMVCPresenter::createItem(char* title) { | 9 void TodoMVCPresenter::createItem(char* title) { |
10 int length = 0; | 10 int length = 0; |
11 while (title[length] != '\0') ++length; | 11 while (title[length] != '\0') ++length; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 case TAG_CONS_FST: enterConsFst(); break; | 44 case TAG_CONS_FST: enterConsFst(); break; |
45 case TAG_CONS_SND: enterConsSnd(); break; | 45 case TAG_CONS_SND: enterConsSnd(); break; |
46 case TAG_CONS_DELETE_EVENT: enterConsDeleteEvent(); break; | 46 case TAG_CONS_DELETE_EVENT: enterConsDeleteEvent(); break; |
47 case TAG_CONS_COMPLETE_EVENT: enterConsCompleteEvent(); break; | 47 case TAG_CONS_COMPLETE_EVENT: enterConsCompleteEvent(); break; |
48 case TAG_CONS_UNCOMPLETE_EVENT: enterConsUncompleteEvent(); break; | 48 case TAG_CONS_UNCOMPLETE_EVENT: enterConsUncompleteEvent(); break; |
49 default: abort(); | 49 default: abort(); |
50 } | 50 } |
51 } | 51 } |
52 updateNode(patch.getContent()); | 52 updateNode(patch.getContent()); |
53 } | 53 } |
OLD | NEW |