1/* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 2 3#line 1 "styled-ostream.oo.c" 4/* Abstract output stream for CSS styled text. 5 Copyright (C) 2006 Free Software Foundation, Inc. 6 Written by Bruno Haible <bruno@clisp.org>, 2006. 7 8 This program is free software: you can redistribute it and/or modify 9 it under the terms of the GNU General Public License as published by 10 the Free Software Foundation; either version 3 of the License, or 11 (at your option) any later version. 12 13 This program is distributed in the hope that it will be useful, 14 but WITHOUT ANY WARRANTY; without even the implied warranty of 15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 GNU General Public License for more details. 17 18 You should have received a copy of the GNU General Public License 19 along with this program. If not, see <http://www.gnu.org/licenses/>. */ 20 21#include <config.h> 22 23/* Specification. */ 24#include "styled-ostream.h" 25 26 27#line 28 "styled-ostream.c" 28#if !IS_CPLUSPLUS 29#define styled_ostream_representation any_ostream_representation 30#endif 31#include "styled_ostream.priv.h" 32 33const typeinfo_t styled_ostream_typeinfo = { "styled_ostream" }; 34 35static const typeinfo_t * const styled_ostream_superclasses[] = 36 { styled_ostream_SUPERCLASSES }; 37 38#define super ostream_vtable 39 40#line 28 "styled-ostream.oo.c" 41 42#line 43 "styled-ostream.c" 43void 44styled_ostream__write_mem (styled_ostream_t first_arg, const void *data, size_t len) 45{ 46 super.write_mem (first_arg,data,len); 47} 48 49void 50styled_ostream__flush (styled_ostream_t first_arg) 51{ 52 super.flush (first_arg); 53} 54 55void 56styled_ostream__free (styled_ostream_t first_arg) 57{ 58 super.free (first_arg); 59} 60 61void 62styled_ostream__begin_use_class (styled_ostream_t first_arg, const char *classname) 63{ 64 /* Abstract (unimplemented) method called. */ 65 abort (); 66 #ifndef __GNUC__ 67 styled_ostream__begin_use_class (first_arg,classname); 68 #endif 69} 70 71void 72styled_ostream__end_use_class (styled_ostream_t first_arg, const char *classname) 73{ 74 /* Abstract (unimplemented) method called. */ 75 abort (); 76 #ifndef __GNUC__ 77 styled_ostream__end_use_class (first_arg,classname); 78 #endif 79} 80 81 82const struct styled_ostream_implementation styled_ostream_vtable = 83{ 84 styled_ostream_superclasses, 85 sizeof (styled_ostream_superclasses) / sizeof (styled_ostream_superclasses[0]), 86 sizeof (struct styled_ostream_representation), 87 styled_ostream__write_mem, 88 styled_ostream__flush, 89 styled_ostream__free, 90 styled_ostream__begin_use_class, 91 styled_ostream__end_use_class, 92}; 93 94#if !HAVE_INLINE 95 96/* Define the functions that invoke the methods. */ 97 98void 99styled_ostream_write_mem (styled_ostream_t first_arg, const void *data, size_t len) 100{ 101 const struct styled_ostream_implementation *vtable = 102 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable; 103 vtable->write_mem (first_arg,data,len); 104} 105 106void 107styled_ostream_flush (styled_ostream_t first_arg) 108{ 109 const struct styled_ostream_implementation *vtable = 110 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable; 111 vtable->flush (first_arg); 112} 113 114void 115styled_ostream_free (styled_ostream_t first_arg) 116{ 117 const struct styled_ostream_implementation *vtable = 118 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable; 119 vtable->free (first_arg); 120} 121 122void 123styled_ostream_begin_use_class (styled_ostream_t first_arg, const char *classname) 124{ 125 const struct styled_ostream_implementation *vtable = 126 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable; 127 vtable->begin_use_class (first_arg,classname); 128} 129 130void 131styled_ostream_end_use_class (styled_ostream_t first_arg, const char *classname) 132{ 133 const struct styled_ostream_implementation *vtable = 134 ((struct styled_ostream_representation_header *) (struct styled_ostream_representation *) first_arg)->vtable; 135 vtable->end_use_class (first_arg,classname); 136} 137 138#endif 139