Changeset 8ff0bd2 in mainline for uspace/app/edit/sheet.c
- Timestamp:
- 2011-09-04T11:30:58Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 03bc76a
- Parents:
- d2c67e7 (diff), deac215e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified uspace/app/edit/sheet.c ¶
rd2c67e7 r8ff0bd2 75 75 return ENOMEM; 76 76 77 list_initialize(&sh->tags _head);77 list_initialize(&sh->tags); 78 78 79 79 return EOK; … … 97 97 char *ipp; 98 98 size_t sz; 99 link_t *link;100 99 tag_t *tag; 101 100 char *newp; … … 121 120 /* Adjust tags. */ 122 121 123 link = sh->tags_head.next; 124 while (link != &sh->tags_head) { 122 list_foreach(sh->tags, link) { 125 123 tag = list_get_instance(link, tag_t, link); 126 124 … … 129 127 else if (tag->b_off == pos->b_off && dir == dir_before) 130 128 tag->b_off += sz; 131 132 link = link->next;133 129 } 134 130 … … 150 146 char *spp; 151 147 size_t sz; 152 link_t *link;153 148 tag_t *tag; 154 149 char *newp; … … 162 157 163 158 /* Adjust tags. */ 164 link = sh->tags_head.next; 165 while (link != &sh->tags_head) { 159 list_foreach(sh->tags, link) { 166 160 tag = list_get_instance(link, tag_t, link); 167 161 … … 170 164 else if (tag->b_off >= spos->b_off) 171 165 tag->b_off = spos->b_off; 172 173 link = link->next;174 166 } 175 167 … … 328 320 tag->b_off = pt->b_off; 329 321 tag->sh = sh; 330 list_append(&tag->link, &sh->tags _head);322 list_append(&tag->link, &sh->tags); 331 323 } 332 324
Note:
See TracChangeset
for help on using the changeset viewer.