Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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`
  • Loading branch information...
commit e341b9f325248c54936e09a49b60688eeae8675f 1 parent 4f84dc8
@dbalmain authored
Showing with 10 additions and 5 deletions.
  1. +7 −2 c/Rakefile
  2. +3 −3 c/include/store.h
View
9 c/Rakefile
@@ -477,14 +477,17 @@ end
namespace :show do
+ desc "Show a files dependencies"
task :dep, :src do |t, args|
with_src(args.src) {|src| puts get_dep_srcs(src).sort.join("\n")}
end
- task :'dep-l1', :src do |t, args|
+ desc "Show a files direct dependencies"
+ task :'dirdep', :src do |t, args|
with_src(args.src) {|src| puts DEP_L1_CACHE[src].sort.join("\n")}
end
+ desc "Show names in the global namespace"
task :names, :file do |t, args|
with_file(args.file, 'libferret.a') do |f|
`nm -s #{f}`.split(/\n/).each do |l|
@@ -495,9 +498,10 @@ namespace :show do
def badname?(l)
l =~ /[0-9a-f]* +([-ABCDGINRSTVW?]) (.*)/ and
- $2 !~ /^(Ferret|frt_|FRT_)/
+ $2 !~ /^(Frt|frt_|FRT_)/
end
+ desc "Show bad global names (no frt prefix)"
task :badnames, :file do |t, args|
with_file(args.file, 'libferret.a') do |f| Rake::Task[f].invoke
`nm -s #{f}`.split(/\n/).each do |l|
@@ -506,6 +510,7 @@ namespace :show do
end
end
+ desc "Show all bad global names (no frt prefix)"
task :'allbadnames' => OBJS do
SRCS.each do |src|
next if src =~ /posh\.c/
View
6 c/include/store.h
@@ -574,9 +574,9 @@ extern void frt_os_write_vll(FrtOutStream *os, register frt_u64 num);
* @param len the length of the string to write
* @raise FRT_IO_ERROR if there is an error writing to the file-system
*/
-extern FRT_INLINE void os_write_string_len(FrtOutStream *os,
- const char *str,
- int len);
+extern FRT_INLINE void frt_os_write_string_len(FrtOutStream *os,
+ const char *str,
+ int len);
/**
* Write a string to the FrtOutStream. A string is an integer +length+ in VINT
Please sign in to comment.
Something went wrong with that request. Please try again.