Public Member Functions | Data Fields
Voice Class Reference

#include <fevoices.h>

Public Member Functions

 Voice ()
 
feBufferTypes Typ ()
 
void Next ()
 

Data Fields

Voicenext
 
Voiceprev
 
char * filename
 
procinfopi
 
void * oldb
 
FILE * files
 
char * buffer
 
long fptr
 
long ftellptr
 
int start_lineno
 
int curr_lineno
 
feBufferInputs sw
 
char ifsw
 
feBufferTypes typ
 

Detailed Description

Definition at line 58 of file fevoices.h.

Constructor & Destructor Documentation

◆ Voice()

Voice::Voice ( )
inline

Definition at line 86 of file fevoices.h.

86 { memset(this,0,sizeof(*this));}

Member Function Documentation

◆ Next()

void Voice::Next ( )

Definition at line 94 of file fevoices.cc.

95 {
96  Voice *p=new Voice;
97  // OB: ???
98  // Hmm... when Singular is used as batch file
99  // then this voice is never freed
101  if (currentVoice != NULL)
102  {
105  }
106  p->prev=currentVoice;
107  currentVoice=p;
108  //PrintS("Next:");
109 }
int yylineno
Definition: febase.cc:45
return P p
Definition: myNF.cc:203
Definition: fevoices.h:58
Voice * next
Definition: fevoices.h:61
int curr_lineno
Definition: fevoices.h:75
#define NULL
Definition: omList.c:10
Voice * currentVoice
Definition: fevoices.cc:57
void omMarkAsStaticAddr(void *addr)
Voice()
Definition: fevoices.h:86

◆ Typ()

feBufferTypes Voice::Typ ( )

Definition at line 111 of file fevoices.cc.

112 {
113  switch(typ)
114  {
115  case BT_proc:
116  case BT_example:
117  case BT_file:
118  return typ;
119  default:
120  if (prev==NULL) return (feBufferTypes)0;
121  return prev->Typ();
122  }
123 }
feBufferTypes Typ()
Definition: fevoices.cc:111
feBufferTypes typ
Definition: fevoices.h:84
Voice * prev
Definition: fevoices.h:62
feBufferTypes
Definition: fevoices.h:16
#define NULL
Definition: omList.c:10

Field Documentation

◆ buffer

char* Voice::buffer

Definition at line 69 of file fevoices.h.

◆ curr_lineno

int Voice::curr_lineno

Definition at line 75 of file fevoices.h.

◆ filename

char* Voice::filename

Definition at line 63 of file fevoices.h.

◆ files

FILE* Voice::files

Definition at line 67 of file fevoices.h.

◆ fptr

long Voice::fptr

Definition at line 70 of file fevoices.h.

◆ ftellptr

long Voice::ftellptr

Definition at line 71 of file fevoices.h.

◆ ifsw

char Voice::ifsw

Definition at line 79 of file fevoices.h.

◆ next

Voice* Voice::next

Definition at line 61 of file fevoices.h.

◆ oldb

void* Voice::oldb

Definition at line 65 of file fevoices.h.

◆ pi

procinfo* Voice::pi

Definition at line 64 of file fevoices.h.

◆ prev

Voice* Voice::prev

Definition at line 62 of file fevoices.h.

◆ start_lineno

int Voice::start_lineno

Definition at line 74 of file fevoices.h.

◆ sw

feBufferInputs Voice::sw

Definition at line 76 of file fevoices.h.

◆ typ

feBufferTypes Voice::typ

Definition at line 84 of file fevoices.h.


The documentation for this class was generated from the following files: