itextomml 1.3.26 → 1.3.27
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/itex2MML.h +3 -3
- data/ext/itex2MML_ruby.c +83 -47
- data/ext/lex.yy.c +7 -7
- metadata +4 -4
data/ext/itex2MML.h
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
/* itex2MML 1.3.
|
2
|
-
* itex2MML.h last modified
|
1
|
+
/* itex2MML 1.3.27
|
2
|
+
* itex2MML.h last modified 9/3/2010
|
3
3
|
*/
|
4
4
|
|
5
5
|
#ifndef ITEX2MML_H
|
6
6
|
#define ITEX2MML_H
|
7
7
|
|
8
|
-
#define ITEX2MML_VERSION "1.3.
|
8
|
+
#define ITEX2MML_VERSION "1.3.27"
|
9
9
|
|
10
10
|
#ifdef __cplusplus
|
11
11
|
extern "C" {
|
data/ext/itex2MML_ruby.c
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
/* ----------------------------------------------------------------------------
|
2
2
|
* This file was automatically generated by SWIG (http://www.swig.org).
|
3
|
-
* Version 1.3.
|
3
|
+
* Version 1.3.40
|
4
4
|
*
|
5
5
|
* This file is not intended to be easily readable and contains a number of
|
6
6
|
* coding conventions designed to improve portability and efficiency. Do not make
|
@@ -9,6 +9,7 @@
|
|
9
9
|
* ----------------------------------------------------------------------------- */
|
10
10
|
|
11
11
|
#define SWIGRUBY
|
12
|
+
|
12
13
|
/* -----------------------------------------------------------------------------
|
13
14
|
* This section contains generic SWIG labels for method/variable
|
14
15
|
* declarations/attributes, and other compiler dependent labels.
|
@@ -51,6 +52,12 @@
|
|
51
52
|
# endif
|
52
53
|
#endif
|
53
54
|
|
55
|
+
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
56
|
+
# if defined(_MSC_VER)
|
57
|
+
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
58
|
+
# endif
|
59
|
+
#endif
|
60
|
+
|
54
61
|
#ifndef SWIGUNUSEDPARM
|
55
62
|
# ifdef __cplusplus
|
56
63
|
# define SWIGUNUSEDPARM(p)
|
@@ -154,6 +161,12 @@
|
|
154
161
|
# endif
|
155
162
|
#endif
|
156
163
|
|
164
|
+
#ifndef SWIG_MSC_UNSUPPRESS_4505
|
165
|
+
# if defined(_MSC_VER)
|
166
|
+
# pragma warning(disable : 4505) /* unreferenced local function has been removed */
|
167
|
+
# endif
|
168
|
+
#endif
|
169
|
+
|
157
170
|
#ifndef SWIGUNUSEDPARM
|
158
171
|
# ifdef __cplusplus
|
159
172
|
# define SWIGUNUSEDPARM(p)
|
@@ -218,7 +231,7 @@
|
|
218
231
|
/* -----------------------------------------------------------------------------
|
219
232
|
* swigrun.swg
|
220
233
|
*
|
221
|
-
* This file contains generic
|
234
|
+
* This file contains generic C API SWIG runtime support for pointer
|
222
235
|
* type checking.
|
223
236
|
* ----------------------------------------------------------------------------- */
|
224
237
|
|
@@ -237,11 +250,11 @@
|
|
237
250
|
|
238
251
|
/*
|
239
252
|
You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
|
240
|
-
creating a static or dynamic library from the
|
241
|
-
In 99.9% of the cases,
|
253
|
+
creating a static or dynamic library from the SWIG runtime code.
|
254
|
+
In 99.9% of the cases, SWIG just needs to declare them as 'static'.
|
242
255
|
|
243
|
-
But only do this if
|
244
|
-
with your compiler or
|
256
|
+
But only do this if strictly necessary, ie, if you have problems
|
257
|
+
with your compiler or suchlike.
|
245
258
|
*/
|
246
259
|
|
247
260
|
#ifndef SWIGRUNTIME
|
@@ -268,14 +281,14 @@
|
|
268
281
|
/*
|
269
282
|
Flags/methods for returning states.
|
270
283
|
|
271
|
-
The
|
284
|
+
The SWIG conversion methods, as ConvertPtr, return and integer
|
272
285
|
that tells if the conversion was successful or not. And if not,
|
273
286
|
an error code can be returned (see swigerrors.swg for the codes).
|
274
287
|
|
275
288
|
Use the following macros/flags to set or process the returning
|
276
289
|
states.
|
277
290
|
|
278
|
-
In old
|
291
|
+
In old versions of SWIG, code such as the following was usually written:
|
279
292
|
|
280
293
|
if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
|
281
294
|
// success code
|
@@ -283,7 +296,7 @@
|
|
283
296
|
//fail code
|
284
297
|
}
|
285
298
|
|
286
|
-
Now you can be more explicit
|
299
|
+
Now you can be more explicit:
|
287
300
|
|
288
301
|
int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
|
289
302
|
if (SWIG_IsOK(res)) {
|
@@ -292,7 +305,7 @@
|
|
292
305
|
// fail code
|
293
306
|
}
|
294
307
|
|
295
|
-
|
308
|
+
which is the same really, but now you can also do
|
296
309
|
|
297
310
|
Type *ptr;
|
298
311
|
int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
|
@@ -310,7 +323,7 @@
|
|
310
323
|
|
311
324
|
I.e., now SWIG_ConvertPtr can return new objects and you can
|
312
325
|
identify the case and take care of the deallocation. Of course that
|
313
|
-
|
326
|
+
also requires SWIG_ConvertPtr to return new result values, such as
|
314
327
|
|
315
328
|
int SWIG_ConvertPtr(obj, ptr,...) {
|
316
329
|
if (<obj is ok>) {
|
@@ -328,7 +341,7 @@
|
|
328
341
|
|
329
342
|
Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
|
330
343
|
more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
|
331
|
-
|
344
|
+
SWIG errors code.
|
332
345
|
|
333
346
|
Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
|
334
347
|
allows to return the 'cast rank', for example, if you have this
|
@@ -342,9 +355,8 @@
|
|
342
355
|
fooi(1) // cast rank '0'
|
343
356
|
|
344
357
|
just use the SWIG_AddCast()/SWIG_CheckState()
|
358
|
+
*/
|
345
359
|
|
346
|
-
|
347
|
-
*/
|
348
360
|
#define SWIG_OK (0)
|
349
361
|
#define SWIG_ERROR (-1)
|
350
362
|
#define SWIG_IsOK(r) (r >= 0)
|
@@ -369,7 +381,6 @@
|
|
369
381
|
#define SWIG_DelTmpMask(r) (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
|
370
382
|
#define SWIG_IsTmpObj(r) (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))
|
371
383
|
|
372
|
-
|
373
384
|
/* Cast-Rank Mode */
|
374
385
|
#if defined(SWIG_CASTRANK_MODE)
|
375
386
|
# ifndef SWIG_TypeRank
|
@@ -392,8 +403,6 @@ SWIGINTERNINLINE int SWIG_CheckState(int r) {
|
|
392
403
|
#endif
|
393
404
|
|
394
405
|
|
395
|
-
|
396
|
-
|
397
406
|
#include <string.h>
|
398
407
|
|
399
408
|
#ifdef __cplusplus
|
@@ -490,40 +499,58 @@ SWIG_TypeCompare(const char *nb, const char *tb) {
|
|
490
499
|
}
|
491
500
|
|
492
501
|
|
493
|
-
/* think of this as a c++ template<> or a scheme macro */
|
494
|
-
#define SWIG_TypeCheck_Template(comparison, ty) \
|
495
|
-
if (ty) { \
|
496
|
-
swig_cast_info *iter = ty->cast; \
|
497
|
-
while (iter) { \
|
498
|
-
if (comparison) { \
|
499
|
-
if (iter == ty->cast) return iter; \
|
500
|
-
/* Move iter to the top of the linked list */ \
|
501
|
-
iter->prev->next = iter->next; \
|
502
|
-
if (iter->next) \
|
503
|
-
iter->next->prev = iter->prev; \
|
504
|
-
iter->next = ty->cast; \
|
505
|
-
iter->prev = 0; \
|
506
|
-
if (ty->cast) ty->cast->prev = iter; \
|
507
|
-
ty->cast = iter; \
|
508
|
-
return iter; \
|
509
|
-
} \
|
510
|
-
iter = iter->next; \
|
511
|
-
} \
|
512
|
-
} \
|
513
|
-
return 0
|
514
|
-
|
515
502
|
/*
|
516
503
|
Check the typename
|
517
504
|
*/
|
518
505
|
SWIGRUNTIME swig_cast_info *
|
519
506
|
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
|
520
|
-
|
507
|
+
if (ty) {
|
508
|
+
swig_cast_info *iter = ty->cast;
|
509
|
+
while (iter) {
|
510
|
+
if (strcmp(iter->type->name, c) == 0) {
|
511
|
+
if (iter == ty->cast)
|
512
|
+
return iter;
|
513
|
+
/* Move iter to the top of the linked list */
|
514
|
+
iter->prev->next = iter->next;
|
515
|
+
if (iter->next)
|
516
|
+
iter->next->prev = iter->prev;
|
517
|
+
iter->next = ty->cast;
|
518
|
+
iter->prev = 0;
|
519
|
+
if (ty->cast) ty->cast->prev = iter;
|
520
|
+
ty->cast = iter;
|
521
|
+
return iter;
|
522
|
+
}
|
523
|
+
iter = iter->next;
|
524
|
+
}
|
525
|
+
}
|
526
|
+
return 0;
|
521
527
|
}
|
522
528
|
|
523
|
-
/*
|
529
|
+
/*
|
530
|
+
Identical to SWIG_TypeCheck, except strcmp is replaced with a pointer comparison
|
531
|
+
*/
|
524
532
|
SWIGRUNTIME swig_cast_info *
|
525
|
-
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *
|
526
|
-
|
533
|
+
SWIG_TypeCheckStruct(swig_type_info *from, swig_type_info *ty) {
|
534
|
+
if (ty) {
|
535
|
+
swig_cast_info *iter = ty->cast;
|
536
|
+
while (iter) {
|
537
|
+
if (iter->type == from) {
|
538
|
+
if (iter == ty->cast)
|
539
|
+
return iter;
|
540
|
+
/* Move iter to the top of the linked list */
|
541
|
+
iter->prev->next = iter->next;
|
542
|
+
if (iter->next)
|
543
|
+
iter->next->prev = iter->prev;
|
544
|
+
iter->next = ty->cast;
|
545
|
+
iter->prev = 0;
|
546
|
+
if (ty->cast) ty->cast->prev = iter;
|
547
|
+
ty->cast = iter;
|
548
|
+
return iter;
|
549
|
+
}
|
550
|
+
iter = iter->next;
|
551
|
+
}
|
552
|
+
}
|
553
|
+
return 0;
|
527
554
|
}
|
528
555
|
|
529
556
|
/*
|
@@ -811,6 +838,15 @@ SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
|
|
811
838
|
#ifdef read
|
812
839
|
# undef read
|
813
840
|
#endif
|
841
|
+
#ifdef bind
|
842
|
+
# undef bind
|
843
|
+
#endif
|
844
|
+
#ifdef close
|
845
|
+
# undef close
|
846
|
+
#endif
|
847
|
+
#ifdef connect
|
848
|
+
# undef connect
|
849
|
+
#endif
|
814
850
|
|
815
851
|
|
816
852
|
/* Ruby 1.7 defines NUM2LL(), LL2NUM() and ULL2NUM() macros */
|
@@ -1767,7 +1803,7 @@ static VALUE mItex2MML;
|
|
1767
1803
|
#define SWIG_RUBY_THREAD_END_BLOCK
|
1768
1804
|
|
1769
1805
|
|
1770
|
-
#define SWIGVERSION
|
1806
|
+
#define SWIGVERSION 0x010340
|
1771
1807
|
#define SWIG_VERSION SWIGVERSION
|
1772
1808
|
|
1773
1809
|
|
@@ -1840,7 +1876,7 @@ SWIG_ruby_failed(void)
|
|
1840
1876
|
}
|
1841
1877
|
|
1842
1878
|
|
1843
|
-
/*@SWIG:/sw/share/swig/1.3.
|
1879
|
+
/*@SWIG:/sw/share/swig/1.3.40/ruby/rubyprimtypes.swg,23,%ruby_aux_method@*/
|
1844
1880
|
SWIGINTERN VALUE SWIG_AUX_NUM2ULONG(VALUE *args)
|
1845
1881
|
{
|
1846
1882
|
VALUE obj = args[0];
|
@@ -1916,12 +1952,12 @@ SWIGINTERN VALUE
|
|
1916
1952
|
_wrap_itex2MML_filter(int argc, VALUE *argv, VALUE self) {
|
1917
1953
|
char *arg1 = (char *) 0 ;
|
1918
1954
|
unsigned long arg2 ;
|
1919
|
-
int result;
|
1920
1955
|
int res1 ;
|
1921
1956
|
char *buf1 = 0 ;
|
1922
1957
|
int alloc1 = 0 ;
|
1923
1958
|
unsigned long val2 ;
|
1924
1959
|
int ecode2 = 0 ;
|
1960
|
+
int result;
|
1925
1961
|
VALUE vresult = Qnil;
|
1926
1962
|
|
1927
1963
|
if ((argc < 2) || (argc > 2)) {
|
@@ -1951,12 +1987,12 @@ SWIGINTERN VALUE
|
|
1951
1987
|
_wrap_itex2MML_html_filter(int argc, VALUE *argv, VALUE self) {
|
1952
1988
|
char *arg1 = (char *) 0 ;
|
1953
1989
|
unsigned long arg2 ;
|
1954
|
-
int result;
|
1955
1990
|
int res1 ;
|
1956
1991
|
char *buf1 = 0 ;
|
1957
1992
|
int alloc1 = 0 ;
|
1958
1993
|
unsigned long val2 ;
|
1959
1994
|
int ecode2 = 0 ;
|
1995
|
+
int result;
|
1960
1996
|
VALUE vresult = Qnil;
|
1961
1997
|
|
1962
1998
|
if ((argc < 2) || (argc > 2)) {
|
data/ext/lex.yy.c
CHANGED
@@ -2211,8 +2211,8 @@ static int yy_more_len = 0;
|
|
2211
2211
|
#define YY_RESTORE_YY_MORE_OFFSET
|
2212
2212
|
char *itex2MML_yytext;
|
2213
2213
|
#line 1 "itex2MML.l"
|
2214
|
-
/* itex2MML 1.3.
|
2215
|
-
* itex2MML.l last modified
|
2214
|
+
/* itex2MML 1.3.27
|
2215
|
+
* itex2MML.l last modified 9/3/2010
|
2216
2216
|
*/
|
2217
2217
|
#line 6 "itex2MML.l"
|
2218
2218
|
|
@@ -3363,27 +3363,27 @@ case 262:
|
|
3363
3363
|
case 263:
|
3364
3364
|
YY_RULE_SETUP
|
3365
3365
|
#line 371 "itex2MML.l"
|
3366
|
-
{yylval=itex2MML_copy_string("…"); return
|
3366
|
+
{yylval=itex2MML_copy_string("…"); return MI;}
|
3367
3367
|
YY_BREAK
|
3368
3368
|
case 264:
|
3369
3369
|
YY_RULE_SETUP
|
3370
3370
|
#line 372 "itex2MML.l"
|
3371
|
-
{yylval=itex2MML_copy_string("⋯"); return
|
3371
|
+
{yylval=itex2MML_copy_string("⋯"); return MI;}
|
3372
3372
|
YY_BREAK
|
3373
3373
|
case 265:
|
3374
3374
|
YY_RULE_SETUP
|
3375
3375
|
#line 373 "itex2MML.l"
|
3376
|
-
{yylval=itex2MML_copy_string("⋱"); return
|
3376
|
+
{yylval=itex2MML_copy_string("⋱"); return MI;}
|
3377
3377
|
YY_BREAK
|
3378
3378
|
case 266:
|
3379
3379
|
YY_RULE_SETUP
|
3380
3380
|
#line 374 "itex2MML.l"
|
3381
|
-
{yylval=itex2MML_copy_string("⋰"); return
|
3381
|
+
{yylval=itex2MML_copy_string("⋰"); return MI;}
|
3382
3382
|
YY_BREAK
|
3383
3383
|
case 267:
|
3384
3384
|
YY_RULE_SETUP
|
3385
3385
|
#line 375 "itex2MML.l"
|
3386
|
-
{yylval=itex2MML_copy_string("⋮"); return
|
3386
|
+
{yylval=itex2MML_copy_string("⋮"); return MI;}
|
3387
3387
|
YY_BREAK
|
3388
3388
|
case 268:
|
3389
3389
|
YY_RULE_SETUP
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itextomml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 45
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 27
|
10
|
+
version: 1.3.27
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jacques Distler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-04 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies: []
|
21
21
|
|