From a5322da3e16c834ef6e302fe559590de387ec069 Mon Sep 17 00:00:00 2001 From: fred Date: Sun, 24 Mar 2002 19:35:36 +0000 Subject: [PATCH] lilypond-0.0.43 --- lily/include/identparent.hh | 49 +------------------------------------ 1 file changed, 1 insertion(+), 48 deletions(-) diff --git a/lily/include/identparent.hh b/lily/include/identparent.hh index a8b75b0fd3..09c7cfafd0 100644 --- a/lily/include/identparent.hh +++ b/lily/include/identparent.hh @@ -1,48 +1 @@ -/* - identparent.hh -- part of LilyPond - - (c) 1996,97 Han-Wen Nienhuys -*/ - -#ifndef IDENTPARENT_HH -#define IDENTPARENT_HH - -#include "proto.hh" -#include "string.hh" - -/* boolean argument to accesor is copy_b..*/ -#define IDACCESSOR( Input_staff, staff)\ - virtual Input_staff * staff(bool) { error(#Input_staff); return 0; } - - -struct Identifier { - void *data; - String name; - int token_code_i_; - - Identifier(String n, int code) : name(n) { token_code_i_ = code; } - virtual ~Identifier() {} - - void print()const; - virtual const char*classname() { return "new Identifier"; } - void error(String); - IDACCESSOR(Input_staff, staff) - IDACCESSOR(Input_music, music) - IDACCESSOR(Music_voice, mvoice) - IDACCESSOR(Script_def, script) - IDACCESSOR(Symtables, symtables) - IDACCESSOR(Music_general_chord, mchord) - IDACCESSOR(Lookup,lookup) - IDACCESSOR(Real,real) - IDACCESSOR(Request, request) - -protected: - virtual void do_print()const=0; -private: - Identifier(Identifier const&){} - -}; -#endif // IDENTPARENT_HH - - - +#error -- 2.39.5