magic.c File Reference

routines for looking up magic numbers More...

#include "common.h"
#include <stdio.h>
#include "machine.h"
#include "vmath.h"
#include "nmg.h"
#include "bu.h"
#include "bn.h"
#include "raytrace.h"
#include "rtgeom.h"
#include "msr.h"
#include "wdb.h"
#include "spm.h"
#include "../libbu/rb_internals.h"

Include dependency graph for magic.c:

Go to the source code of this file.

Functions

const char * bu_identify_magic (register long int magic)


Detailed Description

routines for looking up magic numbers

Routines involved with handling "magic numbers" used to identify various in-memory data structures.

The one ugly thing about this strategy is that every BRL-CAD library needs to have it's magic numbers registered here. XXX What is needed is an extension mechanism. It is a shame that C does not provide a wextern (weak extern) declaration.

Author:
Lee A. Butler

Michael John Muuss

Source -
SECAD/VLD Computing Consortium, Bldg 394
The U. S. Army Ballistic Research Laboratory
Aberdeen Proving Ground, Maryland 21005-5066

Definition in file magic.c.


Generated on Mon Sep 18 01:25:04 2006 for BRL-CAD by  doxygen 1.4.6