ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/src/vendor/flex/dist/lib/malloc.c
(Generate patch)

Comparing vendor/flex/dist/lib/malloc.c (file contents):
Revision 12019 by laffer1, Thu Jul 9 12:38:11 2015 UTC vs.
Revision 12020 by laffer1, Wed Sep 12 01:09:40 2018 UTC

# Line 1 | Line 1
1 <     #include <config.h>
2 <     #undef malloc
3 <    
4 <     #include <sys/types.h>
5 <    
6 <     void *malloc ();
7 <    
8 <     /* Allocate an N-byte block of memory from the heap.
9 <        If N is zero, allocate a 1-byte block.  */
10 <    
11 <     void *
12 <     rpl_malloc (size_t n)
13 <     {
14 <       if (n == 0)
15 <         n = 1;
16 <       return malloc (n);
17 <     }
1 >     #include <config.h>
2 >     #undef malloc
3 >    
4 >     #include <sys/types.h>
5 >    
6 >     void *malloc ();
7 >    
8 >     /* Allocate an N-byte block of memory from the heap.
9 >        If N is zero, allocate a 1-byte block.  */
10 >    
11 >     void *
12 >     rpl_malloc (size_t n)
13 >     {
14 >       if (n == 0)
15 >         n = 1;
16 >       return malloc (n);
17 >     }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines