Re: [Osalp-dev] linking troubles
Status: Abandoned
                
                Brought to you by:
                
                    daservis
                    
                
            | 
      
      
      From: <for...@ad...> - 2000-12-29 03:33:31
      
     | 
| Darrick Servis wrote: > Got it. I've worked on the program some more and do feel I have a buffer > overun somewhere. I'll see what using Electric Fence brings up tonight. > > About the module I wrote. Well at first I thought the library chose what > module to use via extension. Guess not. So right now the CDR file module is > what is used if a file type can't be determined. I've noticed if Magic is > NONE then that will match any file. I was using the Raw file module to open > Gus patch files which have a header I can search. So i'm doing that now. Here is what you could do. 1) Modify aflib.h - Add an enum type for aflibFileType. Such as AFLIB_RAW_TYPE and AFLIB_CDR_TYPE. 2) Modify aflibFile.cc - Add to function allocateModuleFile two cases for each enum according to the format given. Doing this should allow you to use these enums instead of AFLIB_AUTO_TYPE. I think you have brought up a good problem. I need to create a way to load a file format module without having to depend on a magic number. Bruce Forsberg |