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

« back to all changes in this revision

Viewing changes to Source/Modules/s-exp.cxx

  • 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:
11
11
 
12
12
/* Derived from xml.cxx 1.1.2.2 */
13
13
 
14
 
char cvsroot_s_exp_cxx[] = "$Header: /cvsroot/swig/SWIG/Source/Modules/s-exp.cxx,v 1.13 2004/01/22 22:42:17 cheetah Exp $";
 
14
char cvsroot_s_exp_cxx[] = "$Header: /cvsroot/swig/SWIG/Source/Modules/s-exp.cxx,v 1.16 2005/09/08 22:31:21 wsfulton Exp $";
15
15
static const char *usage = "\
16
16
S-Exp Options (available with -sexp)\n\
17
17
     -typemaplang <lang> - Typemap language\n\n";
41
41
          }
42
42
        if( strcmp( argv[iX], "-help" ) == 0 )
43
43
          {
44
 
            fputs( usage, stderr );
 
44
            fputs( usage, stdout );
45
45
          }
46
46
      }
47
47
 
66
66
        out = NewFile(outfile,"w");
67
67
        if (!out) 
68
68
          {
69
 
            Printf(stderr,"*** Can't open '%s'\n", outfile);
 
69
            FileErrorDisplay(outfile);
70
70
            SWIG_exit(EXIT_FAILURE);
71
71
          }
72
72
      }
 
73
    String *f_sink = NewString("");
 
74
    Swig_register_filebyname("header",f_sink);
 
75
    Swig_register_filebyname("wrapper",f_sink);
 
76
    Swig_register_filebyname("runtime",f_sink);
 
77
    Swig_register_filebyname("init",f_sink);
 
78
    
73
79
    Language::top(n);
74
80
    Printf( out, ";;; Lisp parse tree produced by SWIG\n" );
75
81
    print_circle_hash = DohNewHash();