Changeset c232af in git for Singular/emacs.cc


Ignore:
Timestamp:
Aug 14, 2000, 2:58:28 PM (24 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
d26c2e9dd38f1531c0e77c38e6177109182b5bca
Parents:
4697a8a1ccbf49d0048033ea29c651e3966ba729
Message:
* omalloc stuff


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

Legend:

Unmodified
Added
Removed
  • Singular/emacs.cc

    r4697a8a rc232af  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: emacs.cc,v 1.16 2000-08-02 13:40:28 obachman Exp $ */
     4/* $Id: emacs.cc,v 1.17 2000-08-14 12:56:03 obachman Exp $ */
    55/*
    66* ABSTRACT: Esingular main file
     
    1616#include "mod2.h"
    1717#include "version.h"
     18#include <omalloc.h>
    1819
    1920#if !defined(TSINGULAR) && !defined(ESINGULAR)
     
    2526#endif
    2627
    27 #define Alloc   malloc
    28 #define AllocL  malloc
    29 #define mstrdup strdup
    30 #define Free    free
    31 #define FreeL   free
    32 #define Alloc   malloc
    33 #define AllocL  malloc
    3428#ifndef BOOLEAN
    3529#define BOOLEAN int
     
    9387}
    9488   
    95 extern "C" {
    96 #include "find_exec.c"
    97 }
    9889#include "feResource.cc"
    9990#include "feOpt.cc"
     
    214205#endif
    215206
    216   syscall = (char*) AllocL(strlen(emacs) +
     207  syscall = (char*) omAlloc(strlen(emacs) +
    217208                                 strlen(singular) +
    218209                                 length + 300);
     
    268259      if (! access(cwd, R_OK))
    269260      {
    270         emacs_load = mstrdup(cwd);
     261        emacs_load = omStrDup(cwd);
    271262      }
    272263      else
     
    285276  }
    286277 
    287   syscall = (char*) AllocL(strlen(emacs) +
     278  syscall = (char*) omAlloc(strlen(emacs) +
    288279                           strlen(singular) +
    289280                           strlen(emacs_dir) +
Note: See TracChangeset for help on using the changeset viewer.