My Project  UNKNOWN_GIT_VERSION
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 85 of file fevoices.cc.

86 {
87  Voice *p=new Voice;
88  // OB: ???
89  // Hmm... when Singular is used as batch file
90  // then this voice is never freed
92  if (currentVoice != NULL)
93  {
96  }
97  p->prev=currentVoice;
99  //PrintS("Next:");
100 }
int p
Definition: cfModGcd.cc:4019
Definition: fevoices.h:59
int curr_lineno
Definition: fevoices.h:75
Voice * next
Definition: fevoices.h:61
Voice()
Definition: fevoices.h:86
int yylineno
Definition: febase.cc:40
Voice * currentVoice
Definition: fevoices.cc:48
void omMarkAsStaticAddr(void *addr)
#define NULL
Definition: omList.c:10

◆ Typ()

feBufferTypes Voice::Typ ( )

Definition at line 102 of file fevoices.cc.

103 {
104  switch(typ)
105  {
106  case BT_proc:
107  case BT_example:
108  case BT_file:
109  return typ;
110  default:
111  if (prev==NULL) return (feBufferTypes)0;
112  return prev->Typ();
113  }
114 }
feBufferTypes Typ()
Definition: fevoices.cc:102
Voice * prev
Definition: fevoices.h:62
feBufferTypes typ
Definition: fevoices.h:84
feBufferTypes
Definition: fevoices.h:17
@ BT_example
Definition: fevoices.h:21
@ BT_proc
Definition: fevoices.h:20
@ BT_file
Definition: fevoices.h:22

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: