Changeset 1c841bd2 in rtems
- Timestamp:
- 05/27/99 16:13:19 (25 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 11cdbeb
- Parents:
- 556ea0e3
- Files:
-
- 5 added
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/libcsupport/src/assoc.c
r556ea0e3 r1c841bd2 9 9 #include "assoc.h" 10 10 11 #include <stdio.h> /* sprintf */12 11 #include <string.h> /* strcat, strcmp */ 13 12 … … 136 135 */ 137 136 138 const char * 139 rtems_assoc_name_bad( 137 const char *rtems_assoc_name_bad( 140 138 unsigned32 bad_value 141 ) 142 { 143 #ifdef RTEMS_DEBUG 144 static char bad_buffer[32]; 145 146 sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value); 147 #else 148 static char bad_buffer[32] = "<assoc.c: BAD NAME>"; 149 #endif 150 return bad_buffer; 151 } 139 ); 140 141 /* body in separate file to reduce dependency on printf */ 152 142 153 143 -
c/src/lib/libc/assoc.c
r556ea0e3 r1c841bd2 9 9 #include "assoc.h" 10 10 11 #include <stdio.h> /* sprintf */12 11 #include <string.h> /* strcat, strcmp */ 13 12 … … 136 135 */ 137 136 138 const char * 139 rtems_assoc_name_bad( 137 const char *rtems_assoc_name_bad( 140 138 unsigned32 bad_value 141 ) 142 { 143 #ifdef RTEMS_DEBUG 144 static char bad_buffer[32]; 145 146 sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value); 147 #else 148 static char bad_buffer[32] = "<assoc.c: BAD NAME>"; 149 #endif 150 return bad_buffer; 151 } 139 ); 140 141 /* body in separate file to reduce dependency on printf */ 152 142 153 143 -
c/src/lib/libmisc/assoc/Makefile.in
r556ea0e3 r1c841bd2 19 19 20 20 # C source names, if any, go here -- minus the .c 21 C_PIECES=assoc 21 C_PIECES=assoc assocnamebad 22 22 C_FILES=$(C_PIECES:%=%.c) 23 23 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/lib/libmisc/assoc/assoc.c
r556ea0e3 r1c841bd2 9 9 #include "assoc.h" 10 10 11 #include <stdio.h> /* sprintf */12 11 #include <string.h> /* strcat, strcmp */ 13 12 … … 136 135 */ 137 136 138 const char * 139 rtems_assoc_name_bad( 137 const char *rtems_assoc_name_bad( 140 138 unsigned32 bad_value 141 ) 142 { 143 #ifdef RTEMS_DEBUG 144 static char bad_buffer[32]; 145 146 sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value); 147 #else 148 static char bad_buffer[32] = "<assoc.c: BAD NAME>"; 149 #endif 150 return bad_buffer; 151 } 139 ); 140 141 /* body in separate file to reduce dependency on printf */ 152 142 153 143 -
c/src/libmisc/assoc/Makefile.in
r556ea0e3 r1c841bd2 19 19 20 20 # C source names, if any, go here -- minus the .c 21 C_PIECES=assoc 21 C_PIECES=assoc assocnamebad 22 22 C_FILES=$(C_PIECES:%=%.c) 23 23 C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) -
c/src/libmisc/assoc/assoc.c
r556ea0e3 r1c841bd2 9 9 #include "assoc.h" 10 10 11 #include <stdio.h> /* sprintf */12 11 #include <string.h> /* strcat, strcmp */ 13 12 … … 136 135 */ 137 136 138 const char * 139 rtems_assoc_name_bad( 137 const char *rtems_assoc_name_bad( 140 138 unsigned32 bad_value 141 ) 142 { 143 #ifdef RTEMS_DEBUG 144 static char bad_buffer[32]; 145 146 sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value); 147 #else 148 static char bad_buffer[32] = "<assoc.c: BAD NAME>"; 149 #endif 150 return bad_buffer; 151 } 139 ); 140 141 /* body in separate file to reduce dependency on printf */ 152 142 153 143 -
cpukit/libcsupport/src/assoc.c
r556ea0e3 r1c841bd2 9 9 #include "assoc.h" 10 10 11 #include <stdio.h> /* sprintf */12 11 #include <string.h> /* strcat, strcmp */ 13 12 … … 136 135 */ 137 136 138 const char * 139 rtems_assoc_name_bad( 137 const char *rtems_assoc_name_bad( 140 138 unsigned32 bad_value 141 ) 142 { 143 #ifdef RTEMS_DEBUG 144 static char bad_buffer[32]; 145 146 sprintf(bad_buffer, "< %d [0x%x] >", bad_value, bad_value); 147 #else 148 static char bad_buffer[32] = "<assoc.c: BAD NAME>"; 149 #endif 150 return bad_buffer; 151 } 139 ); 140 141 /* body in separate file to reduce dependency on printf */ 152 142 153 143
Note: See TracChangeset
for help on using the changeset viewer.