tor_main.c 880 B

1234567891011121314151617181920212223242526272829303132333435
  1. /* Copyright 2001-2004 Roger Dingledine.
  2. * Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
  3. * Copyright (c) 2007-2008, The Tor Project, Inc. */
  4. /* See LICENSE for licensing information */
  5. /* $Id$ */
  6. const char tor_main_c_id[] =
  7. "$Id$";
  8. /** String describing which Tor subversion repository version the source was
  9. * built from. This string is generated by a bit of shell kludging int
  10. * src/or/Makefile.am, and is usually right.
  11. */
  12. const char tor_svn_revision[] =
  13. #ifndef _MSC_VER
  14. #include "micro-revision.i"
  15. #endif
  16. "";
  17. /**
  18. * \file tor_main.c
  19. * \brief Stub module containing a main() function. Allows unit
  20. * test binary to link against main.c.
  21. **/
  22. int tor_main(int argc, char *argv[]);
  23. /** We keep main() in a separate file so that our unit tests can use
  24. * functions from main.c)
  25. */
  26. int
  27. main(int argc, char *argv[])
  28. {
  29. return tor_main(argc, argv);
  30. }