- Timestamp:
- 2006-06-25T21:02:16Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- ce8725be
- Parents:
- 7431e867
- Location:
- generic
- Files:
-
- 2 added
- 2 moved
-
printf.c (moved) (moved from arch/mips32/loader/printf.c ) (1 diff)
-
printf.h (moved) (moved from arch/mips32/loader/printf.h ) (2 diffs)
-
stdarg.h (added)
-
types.h (added)
Legend:
- Unmodified
- Added
- Removed
-
generic/printf.c
r7431e867 r282f4724 28 28 29 29 #include "printf.h" 30 #include "msim.h" 30 #include "stdarg.h" 31 #include <types.h> 32 33 typedef char *char_ptr; 31 34 32 35 static char digits[] = "0123456789abcdef"; /**< Hexadecimal characters */ 33 34 36 35 37 void puts(const char *str) -
generic/printf.h
r7431e867 r282f4724 27 27 */ 28 28 29 #ifndef __PRINTF_H__30 #define __PRINTF_H__29 #ifndef PRINTF_H__ 30 #define PRINTF_H__ 31 31 32 32 #define INT8 1 … … 35 35 #define INT64 8 36 36 37 typedef signed char __s8; 37 extern void puts(const char *str); 38 extern void printf(const char *fmt, ...); 38 39 39 typedef unsigned char __u8; 40 typedef unsigned short __u16; 41 typedef unsigned int __u32; 42 typedef unsigned long long __u64; 43 44 typedef __u32 __address; 45 typedef __u32 __native; 46 47 typedef char *char_ptr; 48 49 void puts(const char *str); 50 void printf(const char *fmt, ...); 40 extern void write(const char *str, const int len); 51 41 52 42 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
