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

Version Path
jeremy-RedCloth-4.1.1 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.8 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.7 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.6 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.5 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.4 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.3 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.2 ext/redcloth_scan/redcloth_attributes.c.rl
BBRedCloth-0.8.1 ext/redcloth_scan/redcloth_attributes.c.rl
RedCloth-4.1.0 ext/redcloth_scan/redcloth_attributes.c.rl
RedCloth-4.1.0-universal-java ext/redcloth_scan/redcloth_attributes.c.rl
RedCloth-4.1.1-x86-mswin32-60 ext/redcloth_scan/redcloth_attributes.c.rl
RedCloth-4.1.1-universal-java ext/redcloth_scan/redcloth_attributes.c.rl
RedCloth-4.1.0-x86-mswin32-60 ext/redcloth_scan/redcloth_attributes.c.rl
RedCloth-4.1.1 ext/redcloth_scan/redcloth_attributes.c.rl