Type.py (7007:79413d1ec307) Type.py (7055:4e24742201d7)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 371 unchanged lines hidden (view full) ---

380
381 if self.isMessage:
382 code('unsigned proc_id;')
383
384 code.dedent()
385 code('};')
386
387 code('''
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# All rights reserved.
4#
5# Redistribution and use in source and binary forms, with or without
6# modification, are permitted provided that the following conditions are
7# met: redistributions of source code must retain the above copyright
8# notice, this list of conditions and the following disclaimer;

--- 371 unchanged lines hidden (view full) ---

380
381 if self.isMessage:
382 code('unsigned proc_id;')
383
384 code.dedent()
385 code('};')
386
387 code('''
388// Output operator declaration
389std::ostream&
390operator<<(std::ostream& out, const ${{self.c_ident}}& obj);
391
392// Output operator definition
393extern inline std::ostream&
388inline std::ostream&
394operator<<(std::ostream& out, const ${{self.c_ident}}& obj)
395{
396 obj.print(out);
397 out << std::flush;
398 return out;
399}
400
401#endif // __${{self.c_ident}}_HH__

--- 318 unchanged lines hidden ---
389operator<<(std::ostream& out, const ${{self.c_ident}}& obj)
390{
391 obj.print(out);
392 out << std::flush;
393 return out;
394}
395
396#endif // __${{self.c_ident}}_HH__

--- 318 unchanged lines hidden ---