Changeset 899
- Timestamp:
- 31/08/2006 23:56:11 (5 years ago)
- File:
-
- 1 edited
-
box/chris/merge/lib/server/makeprotocol.pl.in (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
box/chris/merge/lib/server/makeprotocol.pl.in
r710 r899 1 1 #!@PERL@ 2 2 use strict; 3 4 use lib "../../infrastructure";5 use BoxPlatform;6 3 7 4 # Make protocol C++ classes from a protocol description file … … 171 168 # open files 172 169 my $h_filename = 'autogen_'.$protocol_name.'Protocol'.$type.'.h'; 173 open CPP,'>autogen_'.$protocol_name.'Protocol'.$type.'.cpp .new';174 open H,">$h_filename .new";170 open CPP,'>autogen_'.$protocol_name.'Protocol'.$type.'.cpp'; 171 open H,">$h_filename"; 175 172 176 173 print CPP <<__E; … … 916 913 close CPP; 917 914 918 update_if_changed('autogen_'.$protocol_name.'Protocol'.$type.'.cpp');919 update_if_changed($h_filename);920 915 921 916 sub obj_is_type … … 987 982 # need to translate it 988 983 my ($format,$arg) = @{$log_display_types{$ty}}; 984 push @str,$format; 989 985 $arg =~ s/VAR/m$nm/g; 990 991 if ($format eq "0x%llx" and $target_windows)992 {993 $format = "0x%I64x";994 $arg = "(uint64_t)$arg";995 }996 997 push @str,$format;998 986 push @arg,$arg; 999 987 }
Note: See TracChangeset
for help on using the changeset viewer.
