• R/O
  • SSH
  • HTTPS

cstl: Commit


Commit MetaInfo

Revision35 (tree)
Time2007-03-21 23:33:23
Authorkatono

Log Message

(empty log message)

Change Summary

Incremental Difference

--- branches/try-change-assign/sample/vector.c (revision 34)
+++ branches/try-change-assign/sample/vector.c (revision 35)
@@ -1,5 +1,5 @@
11 #include <stdio.h>
2-#include "../cstl/vector.h"
2+#include <cstl/vector.h>
33
44 VECTOR_INTERFACE(CharVector, char)
55 VECTOR_IMPLEMENT(CharVector, char)
@@ -7,7 +7,7 @@
77 int main(void)
88 {
99 CharVector *x = CharVector_new(32);
10- CharVector_assign_array(x, "aaaa", 4);
10+ CharVector_insert_n(x, 0, "aaaa", 4);
1111 CharVector_push_back(x, '\0');
1212 printf("%s\n", CharVector_at(x, 0));
1313 printf("size:%d\n", CharVector_size(x));
--- branches/try-change-assign/sample/deque.c (revision 34)
+++ branches/try-change-assign/sample/deque.c (revision 35)
@@ -1,5 +1,5 @@
11 #include <stdio.h>
2-#include "../cstl/deque.h"
2+#include <cstl/deque.h>
33 #define NELEMS(array) (sizeof(array) / sizeof(array[0]))
44
55 DEQUE_INTERFACE(UCharDeque, unsigned char)
--- branches/try-change-assign/sample/string1.c (revision 34)
+++ branches/try-change-assign/sample/string1.c (revision 35)
@@ -2,7 +2,7 @@
22 * Nicolai M. Josuttis著, 吉川邦夫訳, アスキー, 2001
33 * p.450の例を移植 */
44 #include <stdio.h>
5-#include "../cstl/string.h"
5+#include <cstl/string.h>
66
77 STRING_INTERFACE(String, char)
88 STRING_IMPLEMENT(String, char)
--- branches/try-change-assign/sample/multimap.c (revision 34)
+++ branches/try-change-assign/sample/multimap.c (revision 35)
@@ -3,7 +3,7 @@
33 * p.212の例を移植 */
44 #include <stdio.h>
55 #include <string.h>
6-#include "../cstl/map.h"
6+#include <cstl/map.h>
77
88 MULTIMAP_INTERFACE(StrStrMMap, char *, char *)
99 MULTIMAP_IMPLEMENT(StrStrMMap, char *, char *, strcmp, ASC)
--- branches/try-change-assign/sample/string2.c (revision 34)
+++ branches/try-change-assign/sample/string2.c (revision 35)
@@ -2,7 +2,7 @@
22 * Nicolai M. Josuttis著, 吉川邦夫訳, アスキー, 2001
33 * p.454の例を移植 */
44 #include <stdio.h>
5-#include "../cstl/string.h"
5+#include <cstl/string.h>
66
77 STRING_INTERFACE(String, char)
88 STRING_IMPLEMENT(String, char)
--- branches/try-change-assign/sample/list.c (revision 34)
+++ branches/try-change-assign/sample/list.c (revision 35)
@@ -1,7 +1,7 @@
11 #include <stdlib.h>
22 #include <stdio.h>
33 #include <string.h>
4-#include "../cstl/list.h"
4+#include <cstl/list.h>
55
66 typedef struct Hoge_t {
77 char *key;
--- branches/try-change-assign/sample/set.c (revision 34)
+++ branches/try-change-assign/sample/set.c (revision 35)
@@ -1,5 +1,5 @@
11 #include <stdio.h>
2-#include "../cstl/set.h"
2+#include <cstl/set.h>
33
44 SET_INTERFACE(IntSet, int)
55 SET_IMPLEMENT(IntSet, int, SIMPLE_CMP, ASC)
--- branches/try-change-assign/sample/map.c (revision 34)
+++ branches/try-change-assign/sample/map.c (revision 35)
@@ -3,7 +3,7 @@
33 * p.211の例を移植 */
44 #include <stdio.h>
55 #include <string.h>
6-#include "../cstl/map.h"
6+#include <cstl/map.h>
77
88 MAP_INTERFACE(StrFltMap, char *, float)
99 MAP_IMPLEMENT(StrFltMap, char *, float, strcmp, ASC)
Show on old repository browser