Changeset 1ea9a7 in git for kernel/mod_raw.cc


Ignore:
Timestamp:
Sep 13, 2005, 9:15:23 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
754d1dabdd55293db230b67bc9aeb922e6f1cd00
Parents:
a675fcb30922f056ecdcbd0e77cdd66c2c919faf
Message:
*bricken: make dynamic modules work with MACH-O bundles


git-svn-id: file:///usr/local/Singular/svn/trunk@8608 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/mod_raw.cc

    ra675fc r1ea9a7  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: mod_raw.cc,v 1.7 2005-05-12 12:47:14 Singular Exp $ */
     4/* $Id: mod_raw.cc,v 1.8 2005-09-13 19:15:23 bricken Exp $ */
    55/*
    66 * ABSTRACT: machine depend code for dynamic modules
     
    3232lib_types type_of_LIB(char *newlib, char *libnamebuf)
    3333{
     34  const char mach_o[]={0xfe,0xed,0xfa,0xce,0};
    3435  char        buf[BYTES_TO_CHECK+1];        /* one extra for terminating '\0' */
    3536  struct stat sb;
     
    6364  {
    6465    LT = LT_ELF;
     66    //omFree(newlib);
     67    //newlib = omStrDup(libnamebuf);
     68    goto lib_type_end;
     69  }
     70
     71 
     72 
     73  if( (strncmp(buf, &mach_o[0], 4)==0)) /* generic Mach-O module */
     74  {
     75    LT = LT_MACH_O;
    6576    //omFree(newlib);
    6677    //newlib = omStrDup(libnamebuf);
Note: See TracChangeset for help on using the changeset viewer.