/[jscoverage]/trunk/util.c
ViewVC logotype

Diff of /trunk/util.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2 by siliconforks, Wed Aug 1 13:51:53 2007 UTC revision 91 by siliconforks, Wed May 7 03:59:56 2008 UTC
# Line 1  Line 1 
1  /*  /*
2      util.c - general purpose utility routines      util.c - general purpose utility routines
3      Copyright (C) 2007 siliconforks.com      Copyright (C) 2007, 2008 siliconforks.com
4    
5      This program is free software; you can redistribute it and/or modify      This program is free software; you can redistribute it and/or modify
6      it under the terms of the GNU General Public License as published by      it under the terms of the GNU General Public License as published by
# Line 50  Line 50 
50    if (result == NULL) {    if (result == NULL) {
51      fatal("out of memory");      fatal("out of memory");
52    }    }
53      return result;
54    }
55    
56    void * xrealloc(void * p, size_t size) {
57      void * result = realloc(p, size);
58      if (result == NULL) {
59        fatal("out of memory");
60      }
61    return result;    return result;
62  }  }
63    

Legend:
Removed from v.2  
changed lines
  Added in v.91

  ViewVC Help
Powered by ViewVC 1.1.24