Sha256: 8b563ffebd5c1649906182298dfd9366072db59dd0998cd8e2cd71308f4d75b4
Contents?: true
Size: 1022 Bytes
Versions: 15
Compression:
Stored size: 1022 Bytes
Contents
/* * redcloth_attributes.c.rl * * Copyright (C) 2008 Jason Garber */ #include <ruby.h> #include "redcloth.h" %%{ machine redcloth_attributes; include redcloth_common "redcloth_common.c.rl"; include redcloth_attributes "redcloth_attributes.rl"; }%% %% write data nofinal; VALUE redcloth_attribute_parser(machine, self, p, pe) int machine; VALUE self; char *p, *pe; { int cs, act; char *ts, *te, *reg, *bck, *eof; VALUE regs = rb_hash_new(); VALUE buf = Qnil; %% write init; cs = machine; %% write exec; return regs; } VALUE redcloth_attributes(self, str) VALUE self, str; { StringValue(str); int cs = redcloth_attributes_en_inline; return redcloth_attribute_parser(cs, self, RSTRING_PTR(str), RSTRING_PTR(str) + RSTRING_LEN(str) + 1); } VALUE redcloth_link_attributes(self, str) VALUE self, str; { StringValue(str); int cs = redcloth_attributes_en_link_says; return redcloth_attribute_parser(cs, self, RSTRING_PTR(str), RSTRING_PTR(str) + RSTRING_LEN(str) + 1); }
Version data entries
15 entries across 15 versions & 3 rubygems