common_utils.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. /*
  2. Copyright (C) 2004 Michael Liebscher <johnnycanuck@users.sourceforge.net>
  3. This program is free software; you can redistribute it and/or
  4. modify it under the terms of the GNU General Public License
  5. as published by the Free Software Foundation; either version 2
  6. of the License, or (at your option) any later version.
  7. This program is distributed in the hope that it will be useful,
  8. but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  10. GNU General Public License for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; if not, write to the Free Software
  13. Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  14. */
  15. /*
  16. * common_utils.h: General Purpose Macros.
  17. *
  18. * Author: Michael Liebscher <johnnycanuck@users.sourceforge.net>
  19. *
  20. */
  21. #ifndef __COMMON_UTILS_H__
  22. #define __COMMON_UTILS_H__
  23. /*
  24. Make sure the following macros are defined.
  25. */
  26. #ifndef __FILE__
  27. #define __FILE__ ""
  28. #endif
  29. #ifndef __LINE__
  30. #define __LINE__ 0L
  31. #endif
  32. /*
  33. These function prefixes are used for figuring out which
  34. functions are exported and which are not.
  35. */
  36. #define PUBLIC /* Accessible outside this module */
  37. #define PRIVATE static /* Accessible only within this module */
  38. #endif /* __COMMON_UTILS_H__ */