Changeset 899


Ignore:
Timestamp:
31/08/2006 23:56:11 (5 years ago)
Author:
chris
Message:

Revert to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/chris/merge/lib/server/makeprotocol.pl.in

    r710 r899  
    11#!@PERL@ 
    22use strict; 
    3  
    4 use lib "../../infrastructure"; 
    5 use BoxPlatform; 
    63 
    74# Make protocol C++ classes from a protocol description file 
     
    171168# open files 
    172169my $h_filename = 'autogen_'.$protocol_name.'Protocol'.$type.'.h'; 
    173 open CPP,'>autogen_'.$protocol_name.'Protocol'.$type.'.cpp.new'; 
    174 open H,">$h_filename.new"; 
     170open CPP,'>autogen_'.$protocol_name.'Protocol'.$type.'.cpp'; 
     171open H,">$h_filename"; 
    175172 
    176173print CPP <<__E; 
     
    916913close CPP; 
    917914 
    918 update_if_changed('autogen_'.$protocol_name.'Protocol'.$type.'.cpp'); 
    919 update_if_changed($h_filename); 
    920915 
    921916sub obj_is_type 
     
    987982                        # need to translate it 
    988983                        my ($format,$arg) = @{$log_display_types{$ty}}; 
     984                        push @str,$format; 
    989985                        $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; 
    998986                        push @arg,$arg; 
    999987                } 
Note: See TracChangeset for help on using the changeset viewer.