home *** CD-ROM | disk | FTP | other *** search
/ Mega Top 1 / os2_top1.zip / os2_top1 / APPS / TEKST / GRECODE / FLEXLIB.C < prev    next >
C/C++ Source or Header  |  1993-12-10  |  1KB  |  53 lines

  1. /* Flex library summary replacement, when libfl.a is unavailable.
  2.    Copyright (C) 1993 Free Software Foundation, Inc.
  3.    Francois Pinard <pinard@iro.umontreal.ca>, 1993.
  4.  
  5.    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
  7.    the Free Software Foundation; either version 2, or (at your option)
  8.    any later version.
  9.  
  10.    This program is distributed in the hope that it will be useful, but
  11.    WITHOUT ANY WARRANTY; without even the implied warranty of
  12.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  13.    General Public License for more details.
  14.  
  15.    You should have received a copy of the GNU General Public License
  16.    along with this program; if not, write to the Free Software
  17.    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18. */
  19.  
  20. extern void *malloc ();
  21. extern void *realloc ();
  22.  
  23. void *
  24. yy_flex_alloc (size)
  25.      int size;
  26. {
  27.   return malloc (size);
  28. }
  29.  
  30. void *
  31. yy_flex_realloc (pointer, size)
  32.      void *pointer;
  33.      int size;
  34. {
  35.   return realloc (pointer, size);
  36. }
  37.  
  38. void
  39. yy_flex_free (pointer)
  40.      void *pointer;
  41. {
  42.   free (pointer);
  43. }
  44.  
  45. void
  46. yy_strcpy (destin, source)
  47.      char *destin;
  48.      char *source;
  49. {
  50.   strcpy (destin, source);
  51. }
  52.        
  53.