What's the purpose of these unused Macros?
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Unix and Linux reviews > Free Unix support > Unix Programming > What's the purpose of these unused Macros?




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    What's the purpose of these unused Macros?  
K-mart Cashier


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
05-22-07 12:26 AM

in the header file
#ifdef LOCK_LOCKF
#ifdef HAVE_SYS_LOCKING_H
#include <sys/lockf.h>
#endif
#ifdef HAVE_SYS_LOCKING_H
#include <sys/file.h>
#endif
#define fseek(file, 0L, 0, lockf(file, 1, 0L)
#define fseek(file, 0L, 0, lockf(file, 0, 0L)
#endif /* LOCK_LOCKF */

#ifdef LOCK_NONE
#define LOCK(file)
#define UNLOCK(file)
#endif /*LOCK_NONE*/

When I grepped both LOCK_LOCKF and LOCK_NONE, these macros only showed
up in config.h.in, configure.in, and the header file in question.

Why would the author go through the effort of defining these macros if
he doesn't use them throughout the rest of the program?






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 04:16 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register