~ubuntu-branches/ubuntu/intrepid/ruby1.9/intrepid-updates

« back to all changes in this revision

Viewing changes to re.h

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2007-09-04 16:01:17 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20070904160117-i15zckg2nhxe9fyw
Tags: 1.9.0+20070830-2ubuntu1
* Sync from Debian; remaining changes:
  - Add -g to CFLAGS.
* Fixes build failure on ia64.
* Fixes build failure with gcc-4.2 on lpia.
* Robustify check for target_os, fixing build failure on lpia.
* Set Ubuntu maintainer address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/**********************************************************************
2
 
 
3
 
  re.h -
4
 
 
5
 
  $Author: shyouhei $
6
 
  $Date: 2007-02-13 08:01:19 +0900 (火, 13  2月 2007) $
7
 
  created at: Thu Sep 30 14:18:32 JST 1993
8
 
 
9
 
  Copyright (C) 1993-2003 Yukihiro Matsumoto
10
 
 
11
 
**********************************************************************/
12
 
 
13
 
#ifndef RE_H
14
 
#define RE_H
15
 
 
16
 
#include <sys/types.h>
17
 
#include <stdio.h>
18
 
 
19
 
#include "regex.h"
20
 
 
21
 
typedef struct re_pattern_buffer Regexp;
22
 
 
23
 
struct RMatch {
24
 
    struct RBasic basic;
25
 
    VALUE str;
26
 
    struct re_registers *regs;
27
 
    VALUE regexp;  /* RRegexp */
28
 
};
29
 
 
30
 
#define RMATCH(obj)  (R_CAST(RMatch)(obj))
31
 
 
32
 
VALUE rb_reg_regcomp(VALUE);
33
 
long rb_reg_search(VALUE, VALUE, long, long);
34
 
VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE);
35
 
long rb_reg_adjust_startpos(VALUE, VALUE, long, long);
36
 
void rb_match_busy(VALUE);
37
 
VALUE rb_reg_quote(VALUE);
38
 
 
39
 
RUBY_EXTERN int ruby_ignorecase;
40
 
 
41
 
int rb_reg_mbclen2(unsigned int, VALUE);
42
 
#define mbclen2(c,re) rb_reg_mbclen2((c),(re))
43
 
#endif