Changeset 1ea9a7 in git


Ignore:
Timestamp:
Sep 13, 2005, 9:15:23 PM (19 years ago)
Author:
Michael Brickenstein <bricken@…>
Branches:
(u'spielwiese', '5b153614cbc72bfa198d75b1e9e33dab2645d9fe')
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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • Singular/iparith.cc

    ra675fc r1ea9a7  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: iparith.cc,v 1.377 2005-09-05 12:30:27 Singular Exp $ */
     4/* $Id: iparith.cc,v 1.378 2005-09-13 19:15:00 bricken Exp $ */
    55
    66/*
     
    40454045  extern BOOLEAN load_modules(char *newlib, char *fullpath, BOOLEAN autoexport);
    40464046#endif /* HAVE_DYNAMIC_LOADING */
    4047 
    40484047  switch(LT)
    40494048  {
     
    40814080        return bo;
    40824081      }
     4082      case LT_MACH_O:
    40834083      case LT_ELF:
    40844084      case LT_HPUX:
  • 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);
  • kernel/structs.h

    ra675fc r1ea9a7  
    44*  Computer Algebra System SINGULAR     *
    55****************************************/
    6 /* $Id: structs.h,v 1.9 2005-07-05 16:11:36 Singular Exp $ */
     6/* $Id: structs.h,v 1.10 2005-09-13 19:15:23 bricken Exp $ */
    77/*
    88* ABSTRACT
     
    8787#endif
    8888
    89 typedef enum { LT_NONE, LT_NOTFOUND, LT_SINGULAR, LT_ELF, LT_HPUX} lib_types;
     89typedef enum { LT_NONE, LT_NOTFOUND, LT_SINGULAR, LT_ELF, LT_HPUX, LT_MACH_O} lib_types;
    9090
    9191/* C++-part */
Note: See TracChangeset for help on using the changeset viewer.