Skip to content

Commit

Permalink
- lib/implicit.re: Using the 'tag' URI rather than 'taguri'.
Browse files Browse the repository at this point in the history
  • Loading branch information
_why committed Oct 13, 2003
1 parent bb725c4 commit 94535a5
Show file tree
Hide file tree
Showing 9 changed files with 1,451 additions and 3,311 deletions.
2 changes: 1 addition & 1 deletion README.BYTECODE
Expand Up @@ -119,7 +119,7 @@ codes:
is a fully qualified URL, with a semicolon. The transfer is a fully qualified URL, with a semicolon. The transfer
method applies only to the node immediately following, method applies only to the node immediately following,
and thus it can be seen as a modifier like the anchor. and thus it can be seen as a modifier like the anchor.
For example, "Ttaguri:yaml.org,2002:str\nSstring\n" is For example, "Ttag:yaml.org,2002:str\nSstring\n" is
normalized, "T!str\nSstring\n" is not. normalized, "T!str\nSstring\n" is not.
# #
# Formatting bytecodes (lower case) # Formatting bytecodes (lower case)
Expand Down
4 changes: 2 additions & 2 deletions ext/ruby/ext/syck/rubyext.c
Expand Up @@ -613,7 +613,7 @@ rb_syck_bad_anchor_handler(p, a)
char *a; char *a;
{ {
SyckNode *badanc = syck_new_map( rb_str_new2( "name" ), rb_str_new2( a ) ); SyckNode *badanc = syck_new_map( rb_str_new2( "name" ), rb_str_new2( a ) );
badanc->type_id = syck_strndup( "taguri:ruby.yaml.org,2002:object:YAML::Syck::BadAlias", 53 ); badanc->type_id = syck_strndup( "tag:ruby.yaml.org,2002:object:YAML::Syck::BadAlias", 53 );
return badanc; return badanc;
} }


Expand Down Expand Up @@ -933,7 +933,7 @@ syck_loader_transfer( self, type, val )
int transferred = 0; int transferred = 0;
VALUE scheme, name, type_hash, domain = Qnil, type_proc = Qnil; VALUE scheme, name, type_hash, domain = Qnil, type_proc = Qnil;
VALUE type_uri = rb_str_new2( taguri ); VALUE type_uri = rb_str_new2( taguri );
VALUE str_taguri = rb_str_new2("taguri"); VALUE str_taguri = rb_str_new2("tag");
VALUE str_xprivate = rb_str_new2("x-private"); VALUE str_xprivate = rb_str_new2("x-private");
VALUE str_yaml_domain = rb_str_new2(YAML_DOMAIN); VALUE str_yaml_domain = rb_str_new2(YAML_DOMAIN);
VALUE parts = rb_str_split( type_uri, ":" ); VALUE parts = rb_str_split( type_uri, ":" );
Expand Down
4 changes: 2 additions & 2 deletions ext/ruby/lib/okay.rb
Expand Up @@ -23,7 +23,7 @@ class Error < StandardError; end
# Transfer methods for okay types # Transfer methods for okay types
TRANSFER_TYPES = {} TRANSFER_TYPES = {}
OKAY_TYPE_DOMAIN = 'okay.yaml.org,2002' OKAY_TYPE_DOMAIN = 'okay.yaml.org,2002'
OKAY_TYPE_REGEXP = /^taguri:#{ Regexp::quote( OKAY_TYPE_DOMAIN ) }:([^;]+)((?:;\w+)*)$/ OKAY_TYPE_REGEXP = /^tag:#{ Regexp::quote( OKAY_TYPE_DOMAIN ) }:([^;]+)((?:;\w+)*)$/


# #
# Base class for Okay types # Base class for Okay types
Expand Down Expand Up @@ -138,7 +138,7 @@ def Okay.node_vs_schema( schema, node, depth, head )
end end


def Okay.make_schema_flexhash( type_root ) def Okay.make_schema_flexhash( type_root )
type_root = YAML::transfer( 'taguri:ruby.yaml.org,2002:flexhash', type_root ) type_root = YAML::transfer( 'tag:ruby.yaml.org,2002:flexhash', type_root )
type_root.collect! { |e| type_root.collect! { |e|
if Hash === e[1] if Hash === e[1]
e[1].each { |k,v| e[1].each { |k,v|
Expand Down
2 changes: 1 addition & 1 deletion lib/Makefile.am
Expand Up @@ -21,5 +21,5 @@ libsyck_a_SOURCES = \


REC = re2c REC = re2c
.re.c: .re.c:
$(REC) $< > $@.new && mv $@.new $@ $(REC) -s $< > $@.new && mv $@.new $@


2 changes: 1 addition & 1 deletion lib/handler.c
Expand Up @@ -140,7 +140,7 @@ syck_taguri( char *domain, char *type_id, int type_len )
{ {
char *uri = S_ALLOC_N( char, strlen( domain ) + type_len + 14 ); char *uri = S_ALLOC_N( char, strlen( domain ) + type_len + 14 );
uri[0] = '\0'; uri[0] = '\0';
strcat( uri, "taguri:" ); strcat( uri, "tag:" );
strcat( uri, domain ); strcat( uri, domain );
strcat( uri, ":" ); strcat( uri, ":" );
strncat( uri, type_id, type_len ); strncat( uri, type_id, type_len );
Expand Down

0 comments on commit 94535a5

Please sign in to comment.