Diff for /rpl/src/allocateur.c between versions 1.8 and 1.30

version 1.8, 2015/02/19 11:01:17 version 1.30, 2024/01/17 16:57:08
Line 1 Line 1
 /*  /*
 ================================================================================  ================================================================================
   RPL/2 (R) version 4.1.21    RPL/2 (R) version 4.1.36
   Copyright (C) 1989-2015 Dr. BERTRAND Joël    Copyright (C) 1989-2024 Dr. BERTRAND Joël
   
   This file is part of RPL/2.    This file is part of RPL/2.
   
Line 287  allocation_buffer(struct_processus *s_et Line 287  allocation_buffer(struct_processus *s_et
   
     if (longueur == 0)      if (longueur == 0)
     {      {
         (*s_buffer).buffer = NULL;          if (((*s_buffer).buffer = sys_malloc(sizeof(struct_buffer *))) == NULL)
           {
               (*s_etat_processus).erreur_systeme =
                       d_es_allocation_memoire;
               return(NULL);
           }
   
         classe = -1;          classe = -1;
     }      }
     else      else
Line 556  sys_free(void *ptr) Line 562  sys_free(void *ptr)
     return;      return;
 }  }
   
   void *
   sys_realloc(void *ptr, size_t s)
   {
       return(realloc(ptr, s));
   }
   
 // vim: ts=4  // vim: ts=4

Removed from v.1.8  
changed lines
  Added in v.1.30


CVSweb interface <joel.bertrand@systella.fr>