Changes in uspace/app/edit/edit.c [d5c1051:b7fd2a0] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/edit/edit.c
rd5c1051 rb7fd2a0 132 132 static void pos_handle(pos_event_t *ev); 133 133 134 static int file_save(char const *fname);134 static errno_t file_save(char const *fname); 135 135 static void file_save_as(void); 136 static int file_insert(char *fname);137 static int file_save_range(char const *fname, spt_t const *spos,136 static errno_t file_insert(char *fname); 137 static errno_t file_save_range(char const *fname, spt_t const *spos, 138 138 spt_t const *epos); 139 139 static char *range_get_str(spt_t const *spos, spt_t const *epos); … … 191 191 cons_event_t ev; 192 192 bool new_file; 193 int rc;193 errno_t rc; 194 194 195 195 con = console_init(stdin, stdout); … … 578 578 579 579 /** Save the document. */ 580 static int file_save(char const *fname)580 static errno_t file_save(char const *fname) 581 581 { 582 582 spt_t sp, ep; 583 int rc;583 errno_t rc; 584 584 585 585 status_display("Saving..."); … … 616 616 } 617 617 618 int rc = file_save(fname);618 errno_t rc = file_save(fname); 619 619 if (rc != EOK) 620 620 return; … … 697 697 * of the caret. 698 698 */ 699 static int file_insert(char *fname)699 static errno_t file_insert(char *fname) 700 700 { 701 701 FILE *f; … … 735 735 736 736 /** Save a range of text into a file. */ 737 static int file_save_range(char const *fname, spt_t const *spos,737 static errno_t file_save_range(char const *fname, spt_t const *spos, 738 738 spt_t const *epos) 739 739 { … … 1283 1283 1284 1284 /* Search operations */ 1285 static int search_spt_producer(void *data, wchar_t *ret)1285 static errno_t search_spt_producer(void *data, wchar_t *ret) 1286 1286 { 1287 1287 assert(data != NULL); … … 1292 1292 } 1293 1293 1294 static int search_spt_reverse_producer(void *data, wchar_t *ret)1294 static errno_t search_spt_reverse_producer(void *data, wchar_t *ret) 1295 1295 { 1296 1296 assert(data != NULL); … … 1301 1301 } 1302 1302 1303 static int search_spt_mark(void *data, void **mark)1303 static errno_t search_spt_mark(void *data, void **mark) 1304 1304 { 1305 1305 assert(data != NULL); … … 1397 1397 1398 1398 match_t match; 1399 int rc = search_next_match(search, &match);1399 errno_t rc = search_next_match(search, &match); 1400 1400 if (rc != EOK) { 1401 1401 status_display("Failed searching."); … … 1515 1515 size_t off; 1516 1516 wchar_t c; 1517 int rc;1517 errno_t rc; 1518 1518 1519 1519 rc = clipboard_get_str(&str);
Note:
See TracChangeset
for help on using the changeset viewer.