Changeset 8b863a62 in mainline for uspace/dist/src/c/demos/edit/sheet_impl.h
- Timestamp:
- 2014-04-16T17:14:06Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (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 moved
Legend:
- Unmodified
- Added
- Removed
-
uspace/dist/src/c/demos/edit/sheet_impl.h
rdba3e2c r8b863a62 27 27 */ 28 28 29 /** @addtogroup inet29 /** @addtogroup edit 30 30 * @{ 31 31 */ 32 32 /** 33 33 * @file 34 * @brief35 34 */ 36 35 37 #include <assert.h> 38 #include <bitops.h> 39 #include <sys/types.h> 40 #include "inet_util.h" 36 #ifndef SHEET_IMPL_H__ 37 #define SHEET_IMPL_H__ 41 38 42 uint32_t inet_netmask(int bits) 43 { 44 assert(bits >= 0); 45 assert(bits < 32); 39 #include "sheet.h" 46 40 47 if (bits == 0) 48 return 0; 49 else 50 return BIT_RANGE(uint32_t, 31, 31 - (bits - 1)); 51 } 41 /** Sheet */ 42 struct sheet { 43 /* Note: This structure is opaque for the user. */ 44 45 size_t text_size; 46 size_t dbuf_size; 47 char *data; 48 49 list_t tags; 50 }; 51 52 #endif 52 53 53 54 /** @}
Note:
See TracChangeset
for help on using the changeset viewer.