tioga 1.16 → 1.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,10 +22,9 @@ This is the README for the Tioga kernel, version 1.14, June 10, 2011.
22
22
 
23
23
  << What's new >>
24
24
 
25
- Tioga 1.16 brings in a bug fix by Josiah Schwab in handling some
26
- HLS triplets. It also provides facilities to extract the pdflatex
27
- errors.
28
-
25
+ Tioga 1.17 provides all the necessary fixes to have it run on
26
+ windows, so now we also support the Redmond operating system (works
27
+ with the ProTeXt LaTeX distribution).
29
28
 
30
29
  << Quick Installation of Tioga >>
31
30
 
@@ -160,15 +159,15 @@ Best wishes,
160
159
  Bill Paxton
161
160
 
162
161
 
163
-
164
-
165
-
166
-
167
162
 
168
163
  << What's old >>
169
164
 
170
165
  Here are the old release messages:
171
166
 
167
+ Tioga 1.16 brings in a bug fix by Josiah Schwab in handling some
168
+ HLS triplets. It also provides facilities to extract the pdflatex
169
+ errors.
170
+
172
171
  Tioga 1.15 brings in some new iterators in Dvector and some minor
173
172
  bug fixes (in particular for gem builds).
174
173
 
@@ -1,8 +1,6 @@
1
1
  # Flate installation file
2
2
  require 'mkmf'
3
3
 
4
-
5
-
6
4
  if have_header("zlib.h") and have_library("z", "compress", "zlib.h")
7
5
  puts "Using the system zlib library"
8
6
  else
@@ -13,7 +11,7 @@ else
13
11
  target = File::basename(f)
14
12
  begin
15
13
  FileUtils::symlink(f, target)
16
- rescue NotImplemented => e # For platforms when that isn't implemented
14
+ rescue NotImplementedError => e # For platforms when that isn't implemented
17
15
  FileUtils::copy(f, target)
18
16
  end
19
17
  $distcleanfiles << target
@@ -0,0 +1,511 @@
1
+ /* zconf.h -- configuration of the zlib compression library
2
+ * Copyright (C) 1995-2013 Jean-loup Gailly.
3
+ * For conditions of distribution and use, see copyright notice in zlib.h
4
+ */
5
+
6
+ /* @(#) $Id$ */
7
+
8
+ #ifndef ZCONF_H
9
+ #define ZCONF_H
10
+
11
+ /*
12
+ * If you *really* need a unique prefix for all types and library functions,
13
+ * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.
14
+ * Even better than compiling with -DZ_PREFIX would be to use configure to set
15
+ * this permanently in zconf.h using "./configure --zprefix".
16
+ */
17
+ #ifdef Z_PREFIX /* may be set to #if 1 by ./configure */
18
+ # define Z_PREFIX_SET
19
+
20
+ /* all linked symbols */
21
+ # define _dist_code z__dist_code
22
+ # define _length_code z__length_code
23
+ # define _tr_align z__tr_align
24
+ # define _tr_flush_bits z__tr_flush_bits
25
+ # define _tr_flush_block z__tr_flush_block
26
+ # define _tr_init z__tr_init
27
+ # define _tr_stored_block z__tr_stored_block
28
+ # define _tr_tally z__tr_tally
29
+ # define adler32 z_adler32
30
+ # define adler32_combine z_adler32_combine
31
+ # define adler32_combine64 z_adler32_combine64
32
+ # ifndef Z_SOLO
33
+ # define compress z_compress
34
+ # define compress2 z_compress2
35
+ # define compressBound z_compressBound
36
+ # endif
37
+ # define crc32 z_crc32
38
+ # define crc32_combine z_crc32_combine
39
+ # define crc32_combine64 z_crc32_combine64
40
+ # define deflate z_deflate
41
+ # define deflateBound z_deflateBound
42
+ # define deflateCopy z_deflateCopy
43
+ # define deflateEnd z_deflateEnd
44
+ # define deflateInit2_ z_deflateInit2_
45
+ # define deflateInit_ z_deflateInit_
46
+ # define deflateParams z_deflateParams
47
+ # define deflatePending z_deflatePending
48
+ # define deflatePrime z_deflatePrime
49
+ # define deflateReset z_deflateReset
50
+ # define deflateResetKeep z_deflateResetKeep
51
+ # define deflateSetDictionary z_deflateSetDictionary
52
+ # define deflateSetHeader z_deflateSetHeader
53
+ # define deflateTune z_deflateTune
54
+ # define deflate_copyright z_deflate_copyright
55
+ # define get_crc_table z_get_crc_table
56
+ # ifndef Z_SOLO
57
+ # define gz_error z_gz_error
58
+ # define gz_intmax z_gz_intmax
59
+ # define gz_strwinerror z_gz_strwinerror
60
+ # define gzbuffer z_gzbuffer
61
+ # define gzclearerr z_gzclearerr
62
+ # define gzclose z_gzclose
63
+ # define gzclose_r z_gzclose_r
64
+ # define gzclose_w z_gzclose_w
65
+ # define gzdirect z_gzdirect
66
+ # define gzdopen z_gzdopen
67
+ # define gzeof z_gzeof
68
+ # define gzerror z_gzerror
69
+ # define gzflush z_gzflush
70
+ # define gzgetc z_gzgetc
71
+ # define gzgetc_ z_gzgetc_
72
+ # define gzgets z_gzgets
73
+ # define gzoffset z_gzoffset
74
+ # define gzoffset64 z_gzoffset64
75
+ # define gzopen z_gzopen
76
+ # define gzopen64 z_gzopen64
77
+ # ifdef _WIN32
78
+ # define gzopen_w z_gzopen_w
79
+ # endif
80
+ # define gzprintf z_gzprintf
81
+ # define gzvprintf z_gzvprintf
82
+ # define gzputc z_gzputc
83
+ # define gzputs z_gzputs
84
+ # define gzread z_gzread
85
+ # define gzrewind z_gzrewind
86
+ # define gzseek z_gzseek
87
+ # define gzseek64 z_gzseek64
88
+ # define gzsetparams z_gzsetparams
89
+ # define gztell z_gztell
90
+ # define gztell64 z_gztell64
91
+ # define gzungetc z_gzungetc
92
+ # define gzwrite z_gzwrite
93
+ # endif
94
+ # define inflate z_inflate
95
+ # define inflateBack z_inflateBack
96
+ # define inflateBackEnd z_inflateBackEnd
97
+ # define inflateBackInit_ z_inflateBackInit_
98
+ # define inflateCopy z_inflateCopy
99
+ # define inflateEnd z_inflateEnd
100
+ # define inflateGetHeader z_inflateGetHeader
101
+ # define inflateInit2_ z_inflateInit2_
102
+ # define inflateInit_ z_inflateInit_
103
+ # define inflateMark z_inflateMark
104
+ # define inflatePrime z_inflatePrime
105
+ # define inflateReset z_inflateReset
106
+ # define inflateReset2 z_inflateReset2
107
+ # define inflateSetDictionary z_inflateSetDictionary
108
+ # define inflateGetDictionary z_inflateGetDictionary
109
+ # define inflateSync z_inflateSync
110
+ # define inflateSyncPoint z_inflateSyncPoint
111
+ # define inflateUndermine z_inflateUndermine
112
+ # define inflateResetKeep z_inflateResetKeep
113
+ # define inflate_copyright z_inflate_copyright
114
+ # define inflate_fast z_inflate_fast
115
+ # define inflate_table z_inflate_table
116
+ # ifndef Z_SOLO
117
+ # define uncompress z_uncompress
118
+ # endif
119
+ # define zError z_zError
120
+ # ifndef Z_SOLO
121
+ # define zcalloc z_zcalloc
122
+ # define zcfree z_zcfree
123
+ # endif
124
+ # define zlibCompileFlags z_zlibCompileFlags
125
+ # define zlibVersion z_zlibVersion
126
+
127
+ /* all zlib typedefs in zlib.h and zconf.h */
128
+ # define Byte z_Byte
129
+ # define Bytef z_Bytef
130
+ # define alloc_func z_alloc_func
131
+ # define charf z_charf
132
+ # define free_func z_free_func
133
+ # ifndef Z_SOLO
134
+ # define gzFile z_gzFile
135
+ # endif
136
+ # define gz_header z_gz_header
137
+ # define gz_headerp z_gz_headerp
138
+ # define in_func z_in_func
139
+ # define intf z_intf
140
+ # define out_func z_out_func
141
+ # define uInt z_uInt
142
+ # define uIntf z_uIntf
143
+ # define uLong z_uLong
144
+ # define uLongf z_uLongf
145
+ # define voidp z_voidp
146
+ # define voidpc z_voidpc
147
+ # define voidpf z_voidpf
148
+
149
+ /* all zlib structs in zlib.h and zconf.h */
150
+ # define gz_header_s z_gz_header_s
151
+ # define internal_state z_internal_state
152
+
153
+ #endif
154
+
155
+ #if defined(__MSDOS__) && !defined(MSDOS)
156
+ # define MSDOS
157
+ #endif
158
+ #if (defined(OS_2) || defined(__OS2__)) && !defined(OS2)
159
+ # define OS2
160
+ #endif
161
+ #if defined(_WINDOWS) && !defined(WINDOWS)
162
+ # define WINDOWS
163
+ #endif
164
+ #if defined(_WIN32) || defined(_WIN32_WCE) || defined(__WIN32__)
165
+ # ifndef WIN32
166
+ # define WIN32
167
+ # endif
168
+ #endif
169
+ #if (defined(MSDOS) || defined(OS2) || defined(WINDOWS)) && !defined(WIN32)
170
+ # if !defined(__GNUC__) && !defined(__FLAT__) && !defined(__386__)
171
+ # ifndef SYS16BIT
172
+ # define SYS16BIT
173
+ # endif
174
+ # endif
175
+ #endif
176
+
177
+ /*
178
+ * Compile with -DMAXSEG_64K if the alloc function cannot allocate more
179
+ * than 64k bytes at a time (needed on systems with 16-bit int).
180
+ */
181
+ #ifdef SYS16BIT
182
+ # define MAXSEG_64K
183
+ #endif
184
+ #ifdef MSDOS
185
+ # define UNALIGNED_OK
186
+ #endif
187
+
188
+ #ifdef __STDC_VERSION__
189
+ # ifndef STDC
190
+ # define STDC
191
+ # endif
192
+ # if __STDC_VERSION__ >= 199901L
193
+ # ifndef STDC99
194
+ # define STDC99
195
+ # endif
196
+ # endif
197
+ #endif
198
+ #if !defined(STDC) && (defined(__STDC__) || defined(__cplusplus))
199
+ # define STDC
200
+ #endif
201
+ #if !defined(STDC) && (defined(__GNUC__) || defined(__BORLANDC__))
202
+ # define STDC
203
+ #endif
204
+ #if !defined(STDC) && (defined(MSDOS) || defined(WINDOWS) || defined(WIN32))
205
+ # define STDC
206
+ #endif
207
+ #if !defined(STDC) && (defined(OS2) || defined(__HOS_AIX__))
208
+ # define STDC
209
+ #endif
210
+
211
+ #if defined(__OS400__) && !defined(STDC) /* iSeries (formerly AS/400). */
212
+ # define STDC
213
+ #endif
214
+
215
+ #ifndef STDC
216
+ # ifndef const /* cannot use !defined(STDC) && !defined(const) on Mac */
217
+ # define const /* note: need a more gentle solution here */
218
+ # endif
219
+ #endif
220
+
221
+ #if defined(ZLIB_CONST) && !defined(z_const)
222
+ # define z_const const
223
+ #else
224
+ # define z_const
225
+ #endif
226
+
227
+ /* Some Mac compilers merge all .h files incorrectly: */
228
+ #if defined(__MWERKS__)||defined(applec)||defined(THINK_C)||defined(__SC__)
229
+ # define NO_DUMMY_DECL
230
+ #endif
231
+
232
+ /* Maximum value for memLevel in deflateInit2 */
233
+ #ifndef MAX_MEM_LEVEL
234
+ # ifdef MAXSEG_64K
235
+ # define MAX_MEM_LEVEL 8
236
+ # else
237
+ # define MAX_MEM_LEVEL 9
238
+ # endif
239
+ #endif
240
+
241
+ /* Maximum value for windowBits in deflateInit2 and inflateInit2.
242
+ * WARNING: reducing MAX_WBITS makes minigzip unable to extract .gz files
243
+ * created by gzip. (Files created by minigzip can still be extracted by
244
+ * gzip.)
245
+ */
246
+ #ifndef MAX_WBITS
247
+ # define MAX_WBITS 15 /* 32K LZ77 window */
248
+ #endif
249
+
250
+ /* The memory requirements for deflate are (in bytes):
251
+ (1 << (windowBits+2)) + (1 << (memLevel+9))
252
+ that is: 128K for windowBits=15 + 128K for memLevel = 8 (default values)
253
+ plus a few kilobytes for small objects. For example, if you want to reduce
254
+ the default memory requirements from 256K to 128K, compile with
255
+ make CFLAGS="-O -DMAX_WBITS=14 -DMAX_MEM_LEVEL=7"
256
+ Of course this will generally degrade compression (there's no free lunch).
257
+
258
+ The memory requirements for inflate are (in bytes) 1 << windowBits
259
+ that is, 32K for windowBits=15 (default value) plus a few kilobytes
260
+ for small objects.
261
+ */
262
+
263
+ /* Type declarations */
264
+
265
+ #ifndef OF /* function prototypes */
266
+ # ifdef STDC
267
+ # define OF(args) args
268
+ # else
269
+ # define OF(args) ()
270
+ # endif
271
+ #endif
272
+
273
+ #ifndef Z_ARG /* function prototypes for stdarg */
274
+ # if defined(STDC) || defined(Z_HAVE_STDARG_H)
275
+ # define Z_ARG(args) args
276
+ # else
277
+ # define Z_ARG(args) ()
278
+ # endif
279
+ #endif
280
+
281
+ /* The following definitions for FAR are needed only for MSDOS mixed
282
+ * model programming (small or medium model with some far allocations).
283
+ * This was tested only with MSC; for other MSDOS compilers you may have
284
+ * to define NO_MEMCPY in zutil.h. If you don't need the mixed model,
285
+ * just define FAR to be empty.
286
+ */
287
+ #ifdef SYS16BIT
288
+ # if defined(M_I86SM) || defined(M_I86MM)
289
+ /* MSC small or medium model */
290
+ # define SMALL_MEDIUM
291
+ # ifdef _MSC_VER
292
+ # define FAR _far
293
+ # else
294
+ # define FAR far
295
+ # endif
296
+ # endif
297
+ # if (defined(__SMALL__) || defined(__MEDIUM__))
298
+ /* Turbo C small or medium model */
299
+ # define SMALL_MEDIUM
300
+ # ifdef __BORLANDC__
301
+ # define FAR _far
302
+ # else
303
+ # define FAR far
304
+ # endif
305
+ # endif
306
+ #endif
307
+
308
+ #if defined(WINDOWS) || defined(WIN32)
309
+ /* If building or using zlib as a DLL, define ZLIB_DLL.
310
+ * This is not mandatory, but it offers a little performance increase.
311
+ */
312
+ # ifdef ZLIB_DLL
313
+ # if defined(WIN32) && (!defined(__BORLANDC__) || (__BORLANDC__ >= 0x500))
314
+ # ifdef ZLIB_INTERNAL
315
+ # define ZEXTERN extern __declspec(dllexport)
316
+ # else
317
+ # define ZEXTERN extern __declspec(dllimport)
318
+ # endif
319
+ # endif
320
+ # endif /* ZLIB_DLL */
321
+ /* If building or using zlib with the WINAPI/WINAPIV calling convention,
322
+ * define ZLIB_WINAPI.
323
+ * Caution: the standard ZLIB1.DLL is NOT compiled using ZLIB_WINAPI.
324
+ */
325
+ # ifdef ZLIB_WINAPI
326
+ # ifdef FAR
327
+ # undef FAR
328
+ # endif
329
+ # include <windows.h>
330
+ /* No need for _export, use ZLIB.DEF instead. */
331
+ /* For complete Windows compatibility, use WINAPI, not __stdcall. */
332
+ # define ZEXPORT WINAPI
333
+ # ifdef WIN32
334
+ # define ZEXPORTVA WINAPIV
335
+ # else
336
+ # define ZEXPORTVA FAR CDECL
337
+ # endif
338
+ # endif
339
+ #endif
340
+
341
+ #if defined (__BEOS__)
342
+ # ifdef ZLIB_DLL
343
+ # ifdef ZLIB_INTERNAL
344
+ # define ZEXPORT __declspec(dllexport)
345
+ # define ZEXPORTVA __declspec(dllexport)
346
+ # else
347
+ # define ZEXPORT __declspec(dllimport)
348
+ # define ZEXPORTVA __declspec(dllimport)
349
+ # endif
350
+ # endif
351
+ #endif
352
+
353
+ #ifndef ZEXTERN
354
+ # define ZEXTERN extern
355
+ #endif
356
+ #ifndef ZEXPORT
357
+ # define ZEXPORT
358
+ #endif
359
+ #ifndef ZEXPORTVA
360
+ # define ZEXPORTVA
361
+ #endif
362
+
363
+ #ifndef FAR
364
+ # define FAR
365
+ #endif
366
+
367
+ #if !defined(__MACTYPES__)
368
+ typedef unsigned char Byte; /* 8 bits */
369
+ #endif
370
+ typedef unsigned int uInt; /* 16 bits or more */
371
+ typedef unsigned long uLong; /* 32 bits or more */
372
+
373
+ #ifdef SMALL_MEDIUM
374
+ /* Borland C/C++ and some old MSC versions ignore FAR inside typedef */
375
+ # define Bytef Byte FAR
376
+ #else
377
+ typedef Byte FAR Bytef;
378
+ #endif
379
+ typedef char FAR charf;
380
+ typedef int FAR intf;
381
+ typedef uInt FAR uIntf;
382
+ typedef uLong FAR uLongf;
383
+
384
+ #ifdef STDC
385
+ typedef void const *voidpc;
386
+ typedef void FAR *voidpf;
387
+ typedef void *voidp;
388
+ #else
389
+ typedef Byte const *voidpc;
390
+ typedef Byte FAR *voidpf;
391
+ typedef Byte *voidp;
392
+ #endif
393
+
394
+ #if !defined(Z_U4) && !defined(Z_SOLO) && defined(STDC)
395
+ # include <limits.h>
396
+ # if (UINT_MAX == 0xffffffffUL)
397
+ # define Z_U4 unsigned
398
+ # elif (ULONG_MAX == 0xffffffffUL)
399
+ # define Z_U4 unsigned long
400
+ # elif (USHRT_MAX == 0xffffffffUL)
401
+ # define Z_U4 unsigned short
402
+ # endif
403
+ #endif
404
+
405
+ #ifdef Z_U4
406
+ typedef Z_U4 z_crc_t;
407
+ #else
408
+ typedef unsigned long z_crc_t;
409
+ #endif
410
+
411
+ #ifdef HAVE_UNISTD_H /* may be set to #if 1 by ./configure */
412
+ # define Z_HAVE_UNISTD_H
413
+ #endif
414
+
415
+ #ifdef HAVE_STDARG_H /* may be set to #if 1 by ./configure */
416
+ # define Z_HAVE_STDARG_H
417
+ #endif
418
+
419
+ #ifdef STDC
420
+ # ifndef Z_SOLO
421
+ # include <sys/types.h> /* for off_t */
422
+ # endif
423
+ #endif
424
+
425
+ #if defined(STDC) || defined(Z_HAVE_STDARG_H)
426
+ # ifndef Z_SOLO
427
+ # include <stdarg.h> /* for va_list */
428
+ # endif
429
+ #endif
430
+
431
+ #ifdef _WIN32
432
+ # ifndef Z_SOLO
433
+ # include <stddef.h> /* for wchar_t */
434
+ # endif
435
+ #endif
436
+
437
+ /* a little trick to accommodate both "#define _LARGEFILE64_SOURCE" and
438
+ * "#define _LARGEFILE64_SOURCE 1" as requesting 64-bit operations, (even
439
+ * though the former does not conform to the LFS document), but considering
440
+ * both "#undef _LARGEFILE64_SOURCE" and "#define _LARGEFILE64_SOURCE 0" as
441
+ * equivalently requesting no 64-bit operations
442
+ */
443
+ #if defined(_LARGEFILE64_SOURCE) && -_LARGEFILE64_SOURCE - -1 == 1
444
+ # undef _LARGEFILE64_SOURCE
445
+ #endif
446
+
447
+ #if defined(__WATCOMC__) && !defined(Z_HAVE_UNISTD_H)
448
+ # define Z_HAVE_UNISTD_H
449
+ #endif
450
+ #ifndef Z_SOLO
451
+ # if defined(Z_HAVE_UNISTD_H) || defined(_LARGEFILE64_SOURCE)
452
+ # include <unistd.h> /* for SEEK_*, off_t, and _LFS64_LARGEFILE */
453
+ # ifdef VMS
454
+ # include <unixio.h> /* for off_t */
455
+ # endif
456
+ # ifndef z_off_t
457
+ # define z_off_t off_t
458
+ # endif
459
+ # endif
460
+ #endif
461
+
462
+ #if defined(_LFS64_LARGEFILE) && _LFS64_LARGEFILE-0
463
+ # define Z_LFS64
464
+ #endif
465
+
466
+ #if defined(_LARGEFILE64_SOURCE) && defined(Z_LFS64)
467
+ # define Z_LARGE64
468
+ #endif
469
+
470
+ #if defined(_FILE_OFFSET_BITS) && _FILE_OFFSET_BITS-0 == 64 && defined(Z_LFS64)
471
+ # define Z_WANT64
472
+ #endif
473
+
474
+ #if !defined(SEEK_SET) && !defined(Z_SOLO)
475
+ # define SEEK_SET 0 /* Seek from beginning of file. */
476
+ # define SEEK_CUR 1 /* Seek from current position. */
477
+ # define SEEK_END 2 /* Set file pointer to EOF plus "offset" */
478
+ #endif
479
+
480
+ #ifndef z_off_t
481
+ # define z_off_t long
482
+ #endif
483
+
484
+ #if !defined(_WIN32) && defined(Z_LARGE64)
485
+ # define z_off64_t off64_t
486
+ #else
487
+ # if defined(_WIN32) && !defined(__GNUC__) && !defined(Z_SOLO)
488
+ # define z_off64_t __int64
489
+ # else
490
+ # define z_off64_t z_off_t
491
+ # endif
492
+ #endif
493
+
494
+ /* MVS linker does not support external names larger than 8 bytes */
495
+ #if defined(__MVS__)
496
+ #pragma map(deflateInit_,"DEIN")
497
+ #pragma map(deflateInit2_,"DEIN2")
498
+ #pragma map(deflateEnd,"DEEND")
499
+ #pragma map(deflateBound,"DEBND")
500
+ #pragma map(inflateInit_,"ININ")
501
+ #pragma map(inflateInit2_,"ININ2")
502
+ #pragma map(inflateEnd,"INEND")
503
+ #pragma map(inflateSync,"INSY")
504
+ #pragma map(inflateSetDictionary,"INSEDI")
505
+ #pragma map(compressBound,"CMBND")
506
+ #pragma map(inflate_table,"INTABL")
507
+ #pragma map(inflate_fast,"INFA")
508
+ #pragma map(inflate_copyright,"INCOPY")
509
+ #endif
510
+
511
+ #endif /* ZCONF_H */
@@ -193,7 +193,7 @@ Open_pdf(OBJ_PTR fmkr, FM *p, char *filename, bool quiet_mode, int *ierr)
193
193
  time_t now = time(NULL);
194
194
  char ofile[300], timestring[100];
195
195
  Get_pdf_name(ofile, filename, 300);
196
- if ((OF = fopen(ofile, "w")) == NULL) {
196
+ if ((OF = fopen(ofile, "wb")) == NULL) { /* Write binary file ! */
197
197
  RAISE_ERROR_s("Sorry: can't open %s.\n", filename, ierr);
198
198
  return;
199
199
  }
@@ -109,7 +109,7 @@ static void
109
109
  Write_Image_From_File(char *filename, int width, int height, char *out_info,
110
110
  int mask_obj_num, int *ierr)
111
111
  {
112
- FILE *jpg = fopen(filename, "r");
112
+ FILE *jpg = fopen(filename, "rb"); /* We read binary files ! */
113
113
  if (jpg == NULL) {
114
114
  RAISE_ERROR_s("Sorry: cannot open file for showing image (%s)\n",
115
115
  filename, ierr);
@@ -193,7 +193,7 @@ Open_pdf(OBJ_PTR fmkr, FM *p, char *filename, bool quiet_mode, int *ierr)
193
193
  time_t now = time(NULL);
194
194
  char ofile[300], timestring[100];
195
195
  Get_pdf_name(ofile, filename, 300);
196
- if ((OF = fopen(ofile, "w")) == NULL) {
196
+ if ((OF = fopen(ofile, "wb")) == NULL) { /* Write binary file ! */
197
197
  RAISE_ERROR_s("Sorry: can't open %s.\n", filename, ierr);
198
198
  return;
199
199
  }
@@ -109,7 +109,7 @@ static void
109
109
  Write_Image_From_File(char *filename, int width, int height, char *out_info,
110
110
  int mask_obj_num, int *ierr)
111
111
  {
112
- FILE *jpg = fopen(filename, "r");
112
+ FILE *jpg = fopen(filename, "rb"); /* We read binary files ! */
113
113
  if (jpg == NULL) {
114
114
  RAISE_ERROR_s("Sorry: cannot open file for showing image (%s)\n",
115
115
  filename, ierr);
@@ -38,7 +38,7 @@ class FigureMaker
38
38
 
39
39
  # This URL will contain tioga-(...) when it is exported from the
40
40
  # SVN repository. This is where we'll look for version information.
41
- SVN_URL = '$HeadURL: svn+ssh://rubyforge.org/var/svn/tioga/tags/tioga/Tioga%201.16/lib/Tioga/FigMkr.rb $'
41
+ SVN_URL = '$HeadURL: svn+ssh://rubyforge.org/var/svn/tioga/tags/tioga/Tioga%201.17/lib/Tioga/FigMkr.rb $'
42
42
 
43
43
  TIOGA_VERSION = if SVN_URL =~ /tags\/tioga\/Tioga%20([^\/]+)/
44
44
  $1
@@ -2359,7 +2359,7 @@ class FigureMaker
2359
2359
  end
2360
2360
  end
2361
2361
 
2362
- if ($?.exitstatus == 127) or popen_error
2362
+ if !$? or ($?.exitstatus == 127) or popen_error
2363
2363
  $stderr.puts <<"EOE"
2364
2364
  ERROR: Tioga doesn't seem to find pdflatex (as '#{pdflatex}').
2365
2365
 
@@ -2393,7 +2393,7 @@ EOE
2393
2393
 
2394
2394
  result = $?
2395
2395
  if !result
2396
- $stderr.puts "ERROR: #{pdflatex} failed with error code #{$?.exitstatus}"
2396
+ $stderr.puts "ERROR: #{pdflatex} failed with error code #{$? ? $?.exitstatus : 'no command run'}"
2397
2397
  file = File.open(logname)
2398
2398
  if file == nil
2399
2399
  puts "cannot open #{logname}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tioga
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.16'
4
+ version: '1.17'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,9 +14,17 @@ authors:
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
- date: 2013-08-26 00:00:00.000000000 Z
17
+ date: 2013-08-31 00:00:00.000000000 Z
18
18
  dependencies: []
19
- description:
19
+ description: ! 'Tioga is a blend of PDF, pdfTex and ruby into a library to make
20
+
21
+ scientific graphs of high quality. It is fairly complete and
22
+
23
+ extensive, and comes with examples and (online) complete
24
+
25
+ documentation.
26
+
27
+ '
20
28
  email:
21
29
  - tioga-users@rubyforge.org
22
30
  executables:
@@ -29,117 +37,118 @@ extensions:
29
37
  - ext/Dobjects/Function/extconf.rb
30
38
  extra_rdoc_files: []
31
39
  files:
32
- - ext/Dobjects/Dtable/dtable.c
33
- - ext/Dobjects/Dtable/dtable_intern.h
34
- - ext/Dobjects/Dtable/include/dtable.h
35
- - ext/Dobjects/Function/function.c
36
- - ext/Dobjects/Function/joint_qsort.c
37
- - ext/Dobjects/Dvector/dvector_intern.h
38
- - ext/Dobjects/Dvector/include/dvector.h
39
- - ext/Dobjects/Dvector/dvector.c
40
- - ext/Flate/flate.c
41
- - ext/Flate/flate_intern.h
42
- - ext/Flate/zlib/inflate.c
43
- - ext/Flate/zlib/uncompr.c
40
+ - ext/Tioga/FigureMaker/__shared_pdfcoords.c
41
+ - ext/Tioga/FigureMaker/__shared_pdfcolor.c
42
+ - ext/Tioga/FigureMaker/__shared_pdfpath.c
43
+ - ext/Tioga/FigureMaker/wrappers.h
44
+ - ext/Tioga/FigureMaker/figures.c
45
+ - ext/Tioga/FigureMaker/init.c
46
+ - ext/Tioga/FigureMaker/__shared_pdfimage.c
47
+ - ext/Tioga/FigureMaker/figures.h
48
+ - ext/Tioga/FigureMaker/__shared_axes.c
49
+ - ext/Tioga/FigureMaker/__shared_makers.c
50
+ - ext/Tioga/FigureMaker/generic.c
51
+ - ext/Tioga/FigureMaker/wrappers.c
52
+ - ext/Tioga/FigureMaker/generic.h
53
+ - ext/Tioga/FigureMaker/__shared_pdf_font_dicts.c
54
+ - ext/Tioga/FigureMaker/__shared_texout.c
55
+ - ext/Tioga/FigureMaker/__shared_pdftext.c
56
+ - ext/Tioga/FigureMaker/pdfs.h
57
+ - ext/Tioga/FigureMaker/__shared_pdffile.c
58
+ - ext/Tioga/FigureMaker/shared/pdfimage.c
59
+ - ext/Tioga/FigureMaker/shared/pdfcolor.c
60
+ - ext/Tioga/FigureMaker/shared/pdftext.c
61
+ - ext/Tioga/FigureMaker/shared/pdfcoords.c
62
+ - ext/Tioga/FigureMaker/shared/axes.c
63
+ - ext/Tioga/FigureMaker/shared/texout.c
64
+ - ext/Tioga/FigureMaker/shared/pdfpath.c
65
+ - ext/Tioga/FigureMaker/shared/makers.c
66
+ - ext/Tioga/FigureMaker/shared/pdffile.c
67
+ - ext/Tioga/FigureMaker/shared/pdf_font_dicts.c
44
68
  - ext/Flate/zlib/crc32.h
45
- - ext/Flate/zlib/inffixed.h
46
- - ext/Flate/zlib/inftrees.c
47
- - ext/Flate/zlib/zlib.h
48
- - ext/Flate/zlib/zutil.h
49
- - ext/Flate/zlib/zutil.c
50
- - ext/Flate/zlib/inftrees.h
51
69
  - ext/Flate/zlib/deflate.h
52
- - ext/Flate/zlib/gzio.c
53
70
  - ext/Flate/zlib/inflate.h
54
- - ext/Flate/zlib/inffast.h
71
+ - ext/Flate/zlib/compress.c
72
+ - ext/Flate/zlib/zconf.h
73
+ - ext/Flate/zlib/inftrees.c
55
74
  - ext/Flate/zlib/trees.c
56
- - ext/Flate/zlib/deflate.c
75
+ - ext/Flate/zlib/zlib.h
76
+ - ext/Flate/zlib/crc32.c
77
+ - ext/Flate/zlib/gzio.c
78
+ - ext/Flate/zlib/zutil.h
57
79
  - ext/Flate/zlib/trees.h
58
- - ext/Flate/zlib/compress.c
80
+ - ext/Flate/zlib/uncompr.c
81
+ - ext/Flate/zlib/inftrees.h
59
82
  - ext/Flate/zlib/adler32.c
60
- - ext/Flate/zlib/crc32.c
83
+ - ext/Flate/zlib/deflate.c
84
+ - ext/Flate/zlib/zutil.c
61
85
  - ext/Flate/zlib/infback.c
86
+ - ext/Flate/zlib/inflate.c
62
87
  - ext/Flate/zlib/inffast.c
88
+ - ext/Flate/zlib/inffixed.h
89
+ - ext/Flate/zlib/inffast.h
63
90
  - ext/Flate/include/flate.h
64
- - ext/Tioga/FigureMaker/figures.h
65
- - ext/Tioga/FigureMaker/shared/pdffile.c
66
- - ext/Tioga/FigureMaker/shared/pdfcolor.c
67
- - ext/Tioga/FigureMaker/shared/texout.c
68
- - ext/Tioga/FigureMaker/shared/pdftext.c
69
- - ext/Tioga/FigureMaker/shared/axes.c
70
- - ext/Tioga/FigureMaker/shared/pdfimage.c
71
- - ext/Tioga/FigureMaker/shared/makers.c
72
- - ext/Tioga/FigureMaker/shared/pdfpath.c
73
- - ext/Tioga/FigureMaker/shared/pdfcoords.c
74
- - ext/Tioga/FigureMaker/shared/pdf_font_dicts.c
75
- - ext/Tioga/FigureMaker/__shared_pdftext.c
76
- - ext/Tioga/FigureMaker/__shared_pdffile.c
77
- - ext/Tioga/FigureMaker/generic.h
78
- - ext/Tioga/FigureMaker/figures.c
79
- - ext/Tioga/FigureMaker/wrappers.h
80
- - ext/Tioga/FigureMaker/pdfs.h
81
- - ext/Tioga/FigureMaker/__shared_pdfcoords.c
82
- - ext/Tioga/FigureMaker/generic.c
83
- - ext/Tioga/FigureMaker/init.c
84
- - ext/Tioga/FigureMaker/__shared_pdf_font_dicts.c
85
- - ext/Tioga/FigureMaker/__shared_makers.c
86
- - ext/Tioga/FigureMaker/__shared_pdfimage.c
87
- - ext/Tioga/FigureMaker/__shared_texout.c
88
- - ext/Tioga/FigureMaker/wrappers.c
89
- - ext/Tioga/FigureMaker/__shared_pdfcolor.c
90
- - ext/Tioga/FigureMaker/__shared_pdfpath.c
91
- - ext/Tioga/FigureMaker/__shared_axes.c
92
- - ext/includes/symbols.h
93
- - ext/includes/namespace.h
94
- - ext/includes/safe_double.h
91
+ - ext/Flate/flate.c
92
+ - ext/Flate/flate_intern.h
93
+ - ext/Dobjects/Dvector/include/dvector.h
94
+ - ext/Dobjects/Dvector/dvector_intern.h
95
+ - ext/Dobjects/Dvector/dvector.c
96
+ - ext/Dobjects/Function/joint_qsort.c
97
+ - ext/Dobjects/Function/function.c
98
+ - ext/Dobjects/Dtable/include/dtable.h
99
+ - ext/Dobjects/Dtable/dtable.c
100
+ - ext/Dobjects/Dtable/dtable_intern.h
95
101
  - ext/includes/defs.h
96
102
  - ext/includes/symbols.c
97
- - lib/Dobjects/Dtable_extras.rb
98
- - lib/Dobjects/Function_extras.rb
99
- - lib/Dobjects/Dvector_extras.rb
100
- - lib/Dobjects/Numeric_extras.rb
101
- - lib/Tioga/tioga_ui.rb
102
- - lib/Tioga/Transparency.rb
103
- - lib/Tioga/Utils.rb
104
- - lib/Tioga/Coordinate_Conversions.rb
105
- - lib/Tioga/Images.rb
106
- - lib/Tioga/Legends.rb
107
- - lib/Tioga/Creating_Paths.rb
103
+ - ext/includes/safe_double.h
104
+ - ext/includes/namespace.h
105
+ - ext/includes/symbols.h
108
106
  - lib/Tioga/X_and_Y_Axes.rb
109
- - lib/Tioga/Shading.rb
110
107
  - lib/Tioga/Arcs_and_Circles.rb
111
- - lib/Tioga/Colorbars.rb
112
- - lib/Tioga/Doc.rb
113
- - lib/Tioga/Titles_and_Labels.rb
114
- - lib/Tioga/maker.rb
115
- - lib/Tioga/Executive.rb
108
+ - lib/Tioga/Colormaps.rb
109
+ - lib/Tioga/FigMkr.rb
110
+ - lib/Tioga/Special_Paths.rb
111
+ - lib/Tioga/Transparency.rb
116
112
  - lib/Tioga/ColorConstants.rb
117
- - lib/Tioga/Page_Frame_Bounds.rb
118
- - lib/Tioga/tioga.rb
113
+ - lib/Tioga/Coordinate_Conversions.rb
114
+ - lib/Tioga/Images.rb
119
115
  - lib/Tioga/Figures_and_Plots.rb
120
- - lib/Tioga/FigureConstants.rb
121
116
  - lib/Tioga/Strokes.rb
122
- - lib/Tioga/irb_tioga.rb
123
- - lib/Tioga/FigMkr.rb
124
- - lib/Tioga/tioga_ui_cmds.rb
117
+ - lib/Tioga/Colorbars.rb
118
+ - lib/Tioga/TeX_Text.rb
125
119
  - lib/Tioga/TexPreamble.rb
126
- - lib/Tioga/Markers.rb
127
- - lib/Tioga/MarkerConstants.rb
120
+ - lib/Tioga/Executive.rb
121
+ - lib/Tioga/Doc.rb
122
+ - lib/Tioga/tioga.rb
123
+ - lib/Tioga/tioga_ui.rb
124
+ - lib/Tioga/Titles_and_Labels.rb
128
125
  - lib/Tioga/Rectangles.rb
129
- - lib/Tioga/Colormaps.rb
126
+ - lib/Tioga/Markers.rb
127
+ - lib/Tioga/tioga_ui_cmds.rb
128
+ - lib/Tioga/irb_tioga.rb
130
129
  - lib/Tioga/Using_Paths.rb
131
- - lib/Tioga/Special_Paths.rb
132
- - lib/Tioga/TeX_Text.rb
130
+ - lib/Tioga/Utils.rb
131
+ - lib/Tioga/Creating_Paths.rb
132
+ - lib/Tioga/FigureConstants.rb
133
+ - lib/Tioga/Legends.rb
134
+ - lib/Tioga/MarkerConstants.rb
135
+ - lib/Tioga/maker.rb
136
+ - lib/Tioga/Page_Frame_Bounds.rb
137
+ - lib/Tioga/Shading.rb
138
+ - lib/Dobjects/Dtable_extras.rb
139
+ - lib/Dobjects/Dvector_extras.rb
140
+ - lib/Dobjects/Numeric_extras.rb
141
+ - lib/Dobjects/Function_extras.rb
133
142
  - tests/dtable_test.data
143
+ - tests/tc_Dtable.rb
134
144
  - tests/dvector_read_test.data
135
- - tests/tc_Dvector.rb
145
+ - tests/tc_Function.rb
136
146
  - tests/ts_Tioga.rb
137
- - tests/dvector_test.data
138
147
  - tests/benchmark_dvector_reads.rb
139
- - tests/tc_Dtable.rb
140
148
  - tests/tc_Flate.rb
141
149
  - tests/tc_FMkr.rb
142
- - tests/tc_Function.rb
150
+ - tests/tc_Dvector.rb
151
+ - tests/dvector_test.data
143
152
  - Tioga_README
144
153
  - lgpl.txt
145
154
  - bin/tioga