OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-6.8/] [include/] [dyn-string.h] - Diff between revs 157 and 225

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 157 Rev 225
Line 1... Line 1...
/* An abstract string datatype.
/* An abstract string datatype.
   Copyright (C) 1998, 1999, 2000, 2002, 2004 Free Software Foundation, Inc.
   Copyright (C) 1998, 1999, 2000, 2002, 2004, 2005, 2009
 
   Free Software Foundation, Inc.
   Contributed by Mark Mitchell (mark@markmitchell.com).
   Contributed by Mark Mitchell (mark@markmitchell.com).
 
 
This file is part of GCC.
This file is part of GCC.
 
 
GCC is free software; you can redistribute it and/or modify
GCC is free software; you can redistribute it and/or modify
Line 17... Line 18...
You should have received a copy of the GNU General Public License
You should have received a copy of the GNU General Public License
along with GCC; see the file COPYING.  If not, write to
along with GCC; see the file COPYING.  If not, write to
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
the Free Software Foundation, 51 Franklin Street - Fifth Floor,
Boston, MA 02110-1301, USA.  */
Boston, MA 02110-1301, USA.  */
 
 
 
#ifndef DYN_STRING_H
 
#define DYN_STRING_H
 
 
 
#ifdef __cplusplus
 
extern "C" {
 
#endif
 
 
typedef struct dyn_string
typedef struct dyn_string
{
{
  int allocated;        /* The amount of space allocated for the string.  */
  int allocated;        /* The amount of space allocated for the string.  */
  int length;           /* The actual length of the string.  */
  int length;           /* The actual length of the string.  */
Line 57... Line 64...
extern int dyn_string_append_cstr (dyn_string_t, const char *);
extern int dyn_string_append_cstr (dyn_string_t, const char *);
extern int dyn_string_append_char (dyn_string_t, int);
extern int dyn_string_append_char (dyn_string_t, int);
extern int dyn_string_substring (dyn_string_t,  dyn_string_t, int, int);
extern int dyn_string_substring (dyn_string_t,  dyn_string_t, int, int);
extern int dyn_string_eq (dyn_string_t, dyn_string_t);
extern int dyn_string_eq (dyn_string_t, dyn_string_t);
 
 
 No newline at end of file
 No newline at end of file
 
#ifdef __cplusplus
 
}
 
#endif
 
 
 
#endif /* !defined (DYN_STRING_H) */
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.