Changes in uspace/dist/src/c/demos/edit/edit.c [09ab0a9a:28a5ebd] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/edit/edit.c
r09ab0a9a r28a5ebd 147 147 static void pane_caret_display(void); 148 148 149 static void insert_char( wchar_t c);149 static void insert_char(char32_t c); 150 150 static void delete_char_before(void); 151 151 static void delete_char_after(void); … … 630 630 kbd_event_t *kev; 631 631 char *str; 632 wchar_t buffer[INFNAME_MAX_LEN + 1];632 char32_t buffer[INFNAME_MAX_LEN + 1]; 633 633 int max_len; 634 634 int nc; … … 670 670 default: 671 671 if (kev->c >= 32 && nc < max_len) { 672 put wchar(kev->c);672 putuchar(kev->c); 673 673 console_flush(con); 674 674 buffer[nc++] = kev->c; … … 696 696 { 697 697 FILE *f; 698 wchar_t c;698 char32_t c; 699 699 char buf[BUF_SIZE]; 700 700 int bcnt; … … 847 847 coord_t rbc, rec; 848 848 char row_buf[ROW_BUF_SIZE]; 849 wchar_t c;849 char32_t c; 850 850 size_t pos, size; 851 851 int s_column; … … 1052 1052 1053 1053 /** Insert a character at caret position. */ 1054 static void insert_char( wchar_t c)1054 static void insert_char(char32_t c) 1055 1055 { 1056 1056 spt_t pt; … … 1282 1282 1283 1283 /* Search operations */ 1284 static errno_t search_spt_producer(void *data, wchar_t *ret)1284 static errno_t search_spt_producer(void *data, char32_t *ret) 1285 1285 { 1286 1286 assert(data != NULL); … … 1291 1291 } 1292 1292 1293 static errno_t search_spt_reverse_producer(void *data, wchar_t *ret)1293 static errno_t search_spt_reverse_producer(void *data, char32_t *ret) 1294 1294 { 1295 1295 assert(data != NULL); … … 1510 1510 char *str; 1511 1511 size_t off; 1512 wchar_t c;1512 char32_t c; 1513 1513 errno_t rc; 1514 1514 … … 1606 1606 } 1607 1607 1608 static wchar_t get_first_wchar(const char *str)1608 static char32_t get_first_wchar(const char *str) 1609 1609 { 1610 1610 size_t offset = 0; … … 1627 1627 return false; 1628 1628 1629 wchar_t first_char = get_first_wchar(ch);1629 char32_t first_char = get_first_wchar(ch); 1630 1630 switch (first_char) { 1631 1631 case ' ': … … 1653 1653 return false; 1654 1654 1655 wchar_t first_char = get_first_wchar(ch);1655 char32_t first_char = get_first_wchar(ch); 1656 1656 switch (first_char) { 1657 1657 case ',':
Note:
See TracChangeset
for help on using the changeset viewer.