14 """General utility functions used by the doil backend""" 16 from omniidl
import idlutil, idltype
17 from omniidl_be.doil
import config
18 import sys, re, string
30 if config.state[
'Debug']:
32 print "omniidl: fatalError occurred, in debug mode." 33 for line
in string.split(explanation,
"\n"):
35 print "Configuration state:" 36 print "-------------------------" 41 print "-------------------------" 42 traceback.print_stack()
44 print "-------------------------" 48 lines = string.split(explanation,
"\n")
49 lines = [
"Fatal error in doil backend",
"" ] + lines
52 sys.stderr.write(
"omniidl: " + line +
"\n")
56 For more information (mailing list archives, bug reports etc.) please visit 59 http://www.openrtm.org/ 69 Unsupported IDL construct encountered in input. 71 omniORB does not currently support: 111 if a == []
or b == []:
return []
112 return [(a[0], b[0])] +
zip(a[1:], b[1:])
116 return fn(list[0], base)
117 first = fn(list[0], list[1])
118 rest = [first] + list[2:]
119 return fold(rest, base, fn)
127 self.__list.append(thing)
129 if self.
__list == []:
raise "Stack Empty"
def zip(a, b)
List manipulation functions #####################################.
def union(a, b)
Set manipulation functions ######################################.
def fatalError(explanation)
Fatal error handling function ##################################.
Assorted other functions ########################################.