subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache subversion Wiki <comm...@subversion.apache.org>
Subject [Subversion Wiki] Update of "Build System Walkthrough Patches" by GabrielaGibson
Date Sat, 09 Feb 2013 23:22:01 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Subversion Wiki" for change notification.

The "Build System Walkthrough Patches" page has been changed by GabrielaGibson:
http://wiki.apache.org/subversion/Build%20System%20Walkthrough%20Patches?action=diff&rev1=4&rev2=5

  +#ifndef _SVN_HELLO_WORLD_
  +#define _SVN_HELLO_WORLD_ 1
  +
- +void svn_hello_world(void);
+ +void libsvn_hello_world(void);
- +
- +#endif
- Index: subversion/svn_hello_world/svn_hello_world.c
- ===================================================================
- --- subversion/svn_hello_world/svn_hello_world.c        (revision 0)
- +++ subversion/svn_hello_world/svn_hello_world.c        (revision 0)
- @@ -0,0 +1,21 @@
- +#include <stdio.h>
- +#include <string.h>
- +#include "svn_pools.h"
- +#include "svn_string.h"
- +
- +void svn_hello_world()
- +{
- +  const char * hello = "hello, world\n";
- +  apr_pool_t * pool;
- +
- +  /* Token call into both svn and apr apis, to show that we have
- +   successfully linked and compiled against the api */
- +   pool = apr_allocator_owner_get(svn_pool_create_allocator(FALSE));
- +
- +   printf("%s", hello);
- +
- +   return;
- +}
- Index: subversion/svn_hello_world/svn_hello_world_main.c
- ===================================================================
- --- subversion/svn_hello_world/svn_hello_world_main.c   (revision 0)
- +++ subversion/svn_hello_world/svn_hello_world_main.c   (revision 0)
- @@ -0,0 +1,8 @@
- +#include "svn_hello_world.h"
- +
- +int
- +main(int argc, char ** argv)
- +{
- +  svn_hello_world();
- +  return 0;
- +}
- Index: subversion/svn_hello_world/svn_hello_world.h
- ===================================================================
- --- subversion/svn_hello_world/svn_hello_world.h        (revision 0)
- +++ subversion/svn_hello_world/svn_hello_world.h        (revision 0)
- @@ -0,0 +1,6 @@
- +#ifndef _SVN_HELLO_WORLD_
- +#define _SVN_HELLO_WORLD_ 1
- +
- +void svn_hello_world(void);
  +
  +#endif
  }}}

Mime
View raw message