Changeset b72efe8 in mainline for uspace/app
- Timestamp:
- 2011-06-19T14:38:59Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 74464e8
- Parents:
- 1d1bb0f
- Location:
- uspace/app
- Files:
-
- 7 edited
-
edit/sheet.c (modified) (8 diffs)
-
edit/sheet.h (modified) (2 diffs)
-
sbi/src/compat.h (modified) (2 diffs)
-
sbi/src/list_t.h (modified) (1 diff)
-
tester/mm/common.c (modified) (1 diff)
-
usbinfo/dump.c (modified) (1 diff)
-
usbinfo/hid.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/sheet.c
r1d1bb0f rb72efe8 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 -
uspace/app/edit/sheet.h
r1d1bb0f rb72efe8 57 57 char *data; 58 58 59 li nk_t tags_head;59 list_t tags; 60 60 } sheet_t; 61 61 … … 91 91 /* Note: This structure is opaque for the user. */ 92 92 93 /** Link to list of all tags in the sheet (see sheet_t.tags _head) */93 /** Link to list of all tags in the sheet (see sheet_t.tags) */ 94 94 link_t link; 95 95 sheet_t *sh; -
uspace/app/sbi/src/compat.h
r1d1bb0f rb72efe8 38 38 #ifdef __HELENOS__ 39 39 40 #define list sbi_list 41 #define list_t sbi_list_t 42 40 43 /* 41 44 * Avoid name conflicts with ADT library. … … 44 47 #define list_prepend sbi_list_prepend 45 48 #define list_remove sbi_list_remove 49 #define list_first sbi_list_first 50 #define list_last sbi_list_last 46 51 47 52 #endif -
uspace/app/sbi/src/list_t.h
r1d1bb0f rb72efe8 30 30 #define LIST_T_H_ 31 31 32 #include "compat.h" 33 32 34 typedef struct list_node { 33 35 struct list_node *prev, *next; -
uspace/app/tester/mm/common.c
r1d1bb0f rb72efe8 73 73 link_t *link; 74 74 75 while ((link = list_ head(&mem_blocks)) != NULL) {75 while ((link = list_first(&mem_blocks)) != NULL) { 76 76 mem_block_t *block = list_get_instance(link, mem_block_t, link); 77 77 free_block(block); 78 78 } 79 79 80 while ((link = list_ head(&mem_areas)) != NULL) {80 while ((link = list_first(&mem_areas)) != NULL) { 81 81 mem_area_t *area = list_get_instance(link, mem_area_t, link); 82 82 unmap_area(area); -
uspace/app/usbinfo/dump.c
r1d1bb0f rb72efe8 103 103 void dump_match_ids(match_id_list_t *matches, const char *line_prefix) 104 104 { 105 link_t *link; 106 for (link = matches->ids.next; 107 link != &matches->ids; 108 link = link->next) { 105 list_foreach(matches->ids, link) { 109 106 match_id_t *match = list_get_instance(link, match_id_t, link); 110 107 -
uspace/app/usbinfo/hid.c
r1d1bb0f rb72efe8 101 101 get_indent(0), iface_no); 102 102 list_foreach(report->reports, report_it) { 103 usb_hid_report_description_t *description = list_get_instance(report_it, usb_hid_report_description_t, link); 103 usb_hid_report_description_t *description = list_get_instance( 104 report_it, usb_hid_report_description_t, reports_link); 104 105 printf("%sReport %d (type %d)\n", get_indent(1), 105 106 (int) description->report_id, 106 107 (int) description->type); 107 108 list_foreach(description->report_items, item_it) { 108 usb_hid_report_field_t *field = list_get_instance(item_it, usb_hid_report_field_t, link); 109 usb_hid_report_field_t *field = list_get_instance( 110 item_it, usb_hid_report_field_t, ritems_link); 109 111 printf("%sUsage page = 0x%04x Usage = 0x%04x\n", 110 112 get_indent(2),
Note:
See TracChangeset
for help on using the changeset viewer.
