Changeset 9b0a6b4 in mainline for kernel/generic
- Timestamp:
- 2012-04-13T06:36:25Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 90f067d9
- Parents:
- e61aa80 (diff), d11a181 (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. - Location:
- kernel/generic/src
- Files:
-
- 3 edited
-
console/console.c (modified) (1 diff)
-
lib/str.c (modified) (4 diffs)
-
main/version.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
kernel/generic/src/console/console.c
re61aa80 r9b0a6b4 57 57 58 58 /** Kernel log cyclic buffer */ 59 static wchar_t klog[KLOG_LENGTH] __attribute__ ((aligned(PAGE_SIZE)));59 wchar_t klog[KLOG_LENGTH] __attribute__((aligned(PAGE_SIZE))); 60 60 61 61 /** Kernel log initialized */ -
kernel/generic/src/lib/str.c
re61aa80 r9b0a6b4 111 111 #include <debug.h> 112 112 #include <macros.h> 113 114 /** Check the condition if wchar_t is signed */ 115 #ifdef WCHAR_IS_UNSIGNED 116 #define WCHAR_SIGNED_CHECK(cond) (true) 117 #else 118 #define WCHAR_SIGNED_CHECK(cond) (cond) 119 #endif 113 120 114 121 /** Byte mask consisting of lowest @n bits (out of 8) */ … … 206 213 * 207 214 * @return EOK if the character was encoded successfully, EOVERFLOW if there 208 * was not enough space in the output buffer or EINVAL if the character209 * code was invalid.210 */ 211 int chr_encode( wchar_t ch, char *str, size_t *offset, size_t size)215 * was not enough space in the output buffer or EINVAL if the character 216 * code was invalid. 217 */ 218 int chr_encode(const wchar_t ch, char *str, size_t *offset, size_t size) 212 219 { 213 220 if (*offset >= size) … … 427 434 bool ascii_check(wchar_t ch) 428 435 { 429 if ( (ch >= 0) && (ch <= 127))436 if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 127)) 430 437 return true; 431 438 … … 440 447 bool chr_check(wchar_t ch) 441 448 { 442 if ( (ch >= 0) && (ch <= 1114111))449 if (WCHAR_SIGNED_CHECK(ch >= 0) && (ch <= 1114111)) 443 450 return true; 444 451 -
kernel/generic/src/main/version.c
re61aa80 r9b0a6b4 38 38 39 39 static const char *project = "SPARTAN kernel"; 40 static const char *copyright = "Copyright (c) 2001-2011 HelenOS project";40 static const char *copyright = STRING(COPYRIGHT); 41 41 static const char *release = STRING(RELEASE); 42 42 static const char *name = STRING(NAME);
Note:
See TracChangeset
for help on using the changeset viewer.
