~ubuntu-branches/ubuntu/edgy/swig1.3/edgy

« back to all changes in this revision

Viewing changes to Examples/test-suite/java_lib_various.i

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-12-05 01:16:04 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051205011604-ygx904it6413k3go
Tags: 1.3.27-1ubuntu1
Resynchronise with Debian again, for the new subversion packages.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
%apply char **STRING_ARRAY { char **languages };
9
9
%apply char *BYTE { char *chars };
10
10
%apply char **STRING_OUT { char **string_ptr };
 
11
%typemap(freearg) char **languages "" // don't delete memory when setting global variable
11
12
 
12
13
%{
13
14
char *langs[] = { (char *)"Hungarian", (char *)"Afrikaans", (char *)"Norwegian", NULL };
14
15
%}
15
16
 
16
 
%immutable languages; /* TODO: fix, because there is a problem with setters */
17
17
%inline %{
18
18
char **languages = &langs[0];
19
19
%}