Changeset e341b9f325248c54936e09a49b60688eeae8675f

Show
Ignore:
Timestamp:
06/13/08 18:27:57 (7 months ago)
Author:
David Balmain <dbalmain@…>
Parents:
4f84dc86c4e1248501564a6ec72d641ae7f044f7
Children:
0c24555597e26ee38f38d8910d3f7a6612393ce1
git-committer:
David Balmain <dbalmain@gmail.com> / 2008-06-13T18:27:57Z+1000
Message:

Added description to Rakefile tasks. Cleaned store.h

* store.h had the method os_write_string_len which hadn't been prefixed with
frt_.
* Also added some descriptions to the rake show: tasks so that they show
up with .rake -T`

Location:
c
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • c/Rakefile

    r4d0295 re341b9  
    478478 
    479479namespace :show do 
     480  desc "Show a files dependencies" 
    480481  task :dep, :src do |t, args| 
    481482    with_src(args.src) {|src| puts get_dep_srcs(src).sort.join("\n")} 
    482483  end 
    483484 
    484   task :'dep-l1', :src do |t, args| 
     485  desc "Show a files direct dependencies" 
     486  task :'dirdep', :src do |t, args| 
    485487    with_src(args.src) {|src| puts DEP_L1_CACHE[src].sort.join("\n")} 
    486488  end 
    487489 
     490  desc "Show names in the global namespace" 
    488491  task :names, :file do |t, args| 
    489492    with_file(args.file, 'libferret.a') do |f| 
     
    496499  def badname?(l) 
    497500    l =~ /[0-9a-f]* +([-ABCDGINRSTVW?]) (.*)/ and 
    498                   $2 !~ /^(Ferret|frt_|FRT_)/ 
    499   end 
    500  
     501                  $2 !~ /^(Frt|frt_|FRT_)/ 
     502  end 
     503 
     504  desc "Show bad global names (no frt prefix)" 
    501505  task :badnames, :file do |t, args| 
    502506    with_file(args.file, 'libferret.a') do |f| Rake::Task[f].invoke 
     
    507511  end 
    508512 
     513  desc "Show all bad global names (no frt prefix)" 
    509514  task :'allbadnames' => OBJS do 
    510515    SRCS.each do |src| 
  • c/include/store.h

    r0c11a5 re341b9  
    575575 * @raise FRT_IO_ERROR if there is an error writing to the file-system 
    576576 */ 
    577 extern FRT_INLINE void os_write_string_len(FrtOutStream *os, 
    578                                            const char *str, 
    579                                            int len); 
     577extern FRT_INLINE void frt_os_write_string_len(FrtOutStream *os, 
     578                                               const char *str, 
     579                                               int len); 
    580580 
    581581/**