~ubuntu-branches/debian/stretch/spice/stretch

« back to all changes in this revision

Viewing changes to spice_codegen.py

  • Committer: Package Import Robot
  • Author(s): Liang Guo, Liang Guo, Michael Tokarev
  • Date: 2011-11-29 14:37:08 UTC
  • mfrom: (0.6.1) (0.4.2) (2.1.3 sid)
  • Revision ID: package-import@ubuntu.com-20111129143708-jptkxyjl3a4rds2r
Tags: 0.10.0-1
[ Liang Guo ]
* New upstream release (Closes: #651262)
* Refresh debian/copyright
* Remove fix-typo-in-cmd_line_parser-cpp.patch, applied upstream
* Remove fix-typo-in-record-cpp.patch, applied upstream
* Remove use-requires-private-for-libspice-pkgconfig.patch, applied upstream
* Change Build-Depends on libspice-protocol-dev to (>= 0.9.1~)
* Refresh libspice-server1.symbols
* Update debian/rules clean target
* Ignore common/win/my_getopt-1.5/Makefile change when building package
* debian/control: set DMUA

[ Michael Tokarev ]
* use `rm -f' instead of `-rm' in debian/rules clean targets
* remove python_modules/*.pyc in clean target

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
    if len(messages) == 0:
17
17
        return
18
18
    writer.begin_block("enum")
19
 
    i = 0;
 
19
    i = 0
20
20
    if client:
21
21
        prefix = [ "MSGC" ]
22
22
    else:
53
53
        if isinstance(t, ptypes.EnumBaseType):
54
54
            t.c_define(writer)
55
55
 
56
 
    i = 0;
 
56
    i = 0
57
57
    writer.begin_block("enum")
58
58
    for c in proto.channels:
59
59
        enum = codegen.prefix_underscore_upper("CHANNEL", c.name.upper())
142
142
 
143
143
writer.public_prefix = options.prefix
144
144
 
 
145
writer.writeln("/* this is a file autogenerated by spice_codegen.py */")
 
146
writer.header.writeln("/* this is a file autogenerated by spice_codegen.py */")
 
147
if not options.header and not options.generate_enums:
 
148
    writer.writeln("#ifdef HAVE_CONFIG_H")
 
149
    writer.writeln("#include <config.h>")
 
150
    writer.writeln("#endif")
 
151
 
145
152
if options.assert_on_error:
146
153
    writer.set_option("assert_on_error")
147
154