Mercurial > hg > CbC > CbC_gcc
comparison include/dyn-string.h @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | 04ced10e8804 |
comparison
equal
deleted
inserted
replaced
52:c156f1bd5cd9 | 55:77e2b8dfacca |
---|---|
1 /* An abstract string datatype. | 1 /* An abstract string datatype. |
2 Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc. | 2 Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2009 |
3 Free Software Foundation, Inc. | |
3 Contributed by Mark Mitchell (mark@markmitchell.com). | 4 Contributed by Mark Mitchell (mark@markmitchell.com). |
4 | 5 |
5 This file is part of GCC. | 6 This file is part of GCC. |
6 | 7 |
7 GCC is free software; you can redistribute it and/or modify | 8 GCC is free software; you can redistribute it and/or modify |
17 You should have received a copy of the GNU General Public License | 18 You should have received a copy of the GNU General Public License |
18 along with GCC; see the file COPYING. If not, write to | 19 along with GCC; see the file COPYING. If not, write to |
19 the Free Software Foundation, 51 Franklin Street - Fifth Floor, | 20 the Free Software Foundation, 51 Franklin Street - Fifth Floor, |
20 Boston, MA 02110-1301, USA. */ | 21 Boston, MA 02110-1301, USA. */ |
21 | 22 |
23 #ifndef DYN_STRING_H | |
24 #define DYN_STRING_H | |
25 | |
26 #ifdef __cplusplus | |
27 extern "C" { | |
28 #endif | |
22 | 29 |
23 typedef struct dyn_string | 30 typedef struct dyn_string |
24 { | 31 { |
25 int allocated; /* The amount of space allocated for the string. */ | 32 int allocated; /* The amount of space allocated for the string. */ |
26 int length; /* The actual length of the string. */ | 33 int length; /* The actual length of the string. */ |
56 extern int dyn_string_append (dyn_string_t, dyn_string_t); | 63 extern int dyn_string_append (dyn_string_t, dyn_string_t); |
57 extern int dyn_string_append_cstr (dyn_string_t, const char *); | 64 extern int dyn_string_append_cstr (dyn_string_t, const char *); |
58 extern int dyn_string_append_char (dyn_string_t, int); | 65 extern int dyn_string_append_char (dyn_string_t, int); |
59 extern int dyn_string_substring (dyn_string_t, dyn_string_t, int, int); | 66 extern int dyn_string_substring (dyn_string_t, dyn_string_t, int, int); |
60 extern int dyn_string_eq (dyn_string_t, dyn_string_t); | 67 extern int dyn_string_eq (dyn_string_t, dyn_string_t); |
68 | |
69 #ifdef __cplusplus | |
70 } | |
71 #endif | |
72 | |
73 #endif /* !defined (DYN_STRING_H) */ |