Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
840 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1996 - 1999
  6. //
  7. // File: mem.c
  8. //
  9. //--------------------------------------------------------------------------
  10. /*++
  11. Module Name:
  12. mem.c
  13. Abstract:
  14. Implements midl_user_allocate and midl_user_free.
  15. Author:
  16. Jeff Roberts (jroberts) 15-May-1996
  17. Revision History:
  18. 15-May-1996 jroberts
  19. Created this module.
  20. --*/
  21. #include <rpc.h>
  22. void __RPC_FAR * __RPC_API
  23. MIDL_user_allocate(
  24. unsigned cb
  25. )
  26. /*++
  27. Routine Description:
  28. Call the C memory allocation for MIDL.
  29. --*/
  30. {
  31. return I_RpcAllocate(cb);
  32. }
  33. void __RPC_API
  34. MIDL_user_free(
  35. void __RPC_FAR * p
  36. )
  37. {
  38. I_RpcFree(p);
  39. }