Changeset e341b9f325248c54936e09a49b60688eeae8675f
- 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:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r4d0295
|
re341b9
|
|
| 478 | 478 | |
| 479 | 479 | namespace :show do |
| | 480 | desc "Show a files dependencies" |
| 480 | 481 | task :dep, :src do |t, args| |
| 481 | 482 | with_src(args.src) {|src| puts get_dep_srcs(src).sort.join("\n")} |
| 482 | 483 | end |
| 483 | 484 | |
| 484 | | task :'dep-l1', :src do |t, args| |
| | 485 | desc "Show a files direct dependencies" |
| | 486 | task :'dirdep', :src do |t, args| |
| 485 | 487 | with_src(args.src) {|src| puts DEP_L1_CACHE[src].sort.join("\n")} |
| 486 | 488 | end |
| 487 | 489 | |
| | 490 | desc "Show names in the global namespace" |
| 488 | 491 | task :names, :file do |t, args| |
| 489 | 492 | with_file(args.file, 'libferret.a') do |f| |
| … |
… |
|
| 496 | 499 | def badname?(l) |
| 497 | 500 | 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)" |
| 501 | 505 | task :badnames, :file do |t, args| |
| 502 | 506 | with_file(args.file, 'libferret.a') do |f| Rake::Task[f].invoke |
| … |
… |
|
| 507 | 511 | end |
| 508 | 512 | |
| | 513 | desc "Show all bad global names (no frt prefix)" |
| 509 | 514 | task :'allbadnames' => OBJS do |
| 510 | 515 | SRCS.each do |src| |
-
|
r0c11a5
|
re341b9
|
|
| 575 | 575 | * @raise FRT_IO_ERROR if there is an error writing to the file-system |
| 576 | 576 | */ |
| 577 | | extern FRT_INLINE void os_write_string_len(FrtOutStream *os, |
| 578 | | const char *str, |
| 579 | | int len); |
| | 577 | extern FRT_INLINE void frt_os_write_string_len(FrtOutStream *os, |
| | 578 | const char *str, |
| | 579 | int len); |
| 580 | 580 | |
| 581 | 581 | /** |