Skip to content
Snippets Groups Projects
Select Git revision
  • c5f3a3df0629bdc8c38b4dcdeb248cc586027d87
  • master default
  • mingw_gcc44
  • release_ABP1_012
  • release_ABP1_008
  • release_ABP1_006
  • release_ABP1_007
  • release_ABP1_005
  • release_ABP1_004
  • release_ABP1_003
  • pre_release_0.15
  • release_ABP1_001
  • release_ABP1_002
  • pre_release_0.13
  • pre_release_0.14
  • pre_release_0.11
  • pre_release_0.12
  • pre_release_0.10
  • pre_release_0.09
  • pre_release_0.08
20 results

boinc.filesys.cpp.mingw.patch

Blame
  • Forked from einsteinathome / graphicsframework
    Source project has a limited visibility.
    • Oliver Bock's avatar
      11ca8fc9
      Use BOINC's server_stable branch · 11ca8fc9
      Oliver Bock authored
      * Contains latest API and server components (former branch focuses on client only)
      * Using even more explicit configure options
      * BOINC's include directory is now lowercase
      * Also: added required tool
      * Also: improved binary output filenames for deployment
      11ca8fc9
      History
      Use BOINC's server_stable branch
      Oliver Bock authored
      * Contains latest API and server components (former branch focuses on client only)
      * Using even more explicit configure options
      * BOINC's include directory is now lowercase
      * Also: added required tool
      * Also: improved binary output filenames for deployment
    FT_comment_lines_in_block.m 1.14 KiB
    %---------------------------------------------------------------------  
    % function [block] = FT_comment_lines_in_block(block,line_numbers)
    % 
    % Add comment char in front of lines given by line number.
    %
    % block: block structure
    % line_numbers: vector of integers, specifying lines to be commented
    %
    % Part of the SimTools package
    % Andreas Freise 22.05.08 afreise@googlemail.com
    %---------------------------------------------------------------------  
    
    function [block] = FT_comment_lines_in_block(block,line_numbers)
    
      baseid='FT_comment_lines_in_block';
        
      if (~isstruct(block))
        msgid=[baseid,':checkinarg'];
        result='first input argument must be a block structure';
        error(msgid,result);
      end
      
      if (~isnumeric(line_numbers))
        msgid=[baseid,':checkinarg'];
        result='second input argument must be numeric';
        error(msgid,result);
      end
      
      if (line_numbers>block.n_lines)
        msgid=[baseid,':checkinarg'];
        result='line numbers given larger than block length';
        error(msgid,result);    
      end
    
      for i=line_numbers
        block.txt_lines(i)={FT_add_comment_char_to_line(cell2mat(block.txt_lines(i)))};
      end
      block.edited = 1;