Back to index

radiance  4R0+20100331
Functions | Variables
otypes.c File Reference
#include "copyright.h"
#include "standard.h"
#include "object.h"
#include "otypes.h"

Go to the source code of this file.

Functions

int otype (char *ofname)
void objerror (OBJREC *o, int etyp, char *msg)

Variables

static const char RCSid [] = "$Id: otypes.c,v 2.4 2003/03/10 17:13:29 greg Exp $"

Function Documentation

void objerror ( OBJREC o,
int  etyp,
char *  msg 
)

Definition at line 34 of file otypes.c.

{
       char  msgbuf[128];

       sprintf(msgbuf, "%s for %s \"%s\"",
                     msg, ofun[o->otype].funame,
                     o->oname!=NULL ? o->oname : "(NULL)");
       error(etyp, msgbuf);
}

Here is the call graph for this function:

int otype ( char *  ofname)

Definition at line 20 of file otypes.c.

{
       register int  i;

       for (i = 0; i < NUMOTYPE; i++)
              if (!strcmp(ofun[i].funame, ofname))
                     return(i);

       return(-1);          /* not found */
}

Here is the call graph for this function:


Variable Documentation

const char RCSid[] = "$Id: otypes.c,v 2.4 2003/03/10 17:13:29 greg Exp $" [static]

Definition at line 2 of file otypes.c.