TDBC

Check-in [1fe4cd73a5]
Login
Bounty program for improvements to Tcl and certain Tcl packages.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make tdbc run when it's compiled with a C++ compiler. Also remove end-of-line spacings.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1fe4cd73a5f09195cbc502d8e477283e9b4ccdecbe629b36554cfde30ed8707c
User & Date: jan.nijtmans 2019-08-30 12:58:30
Context
2019-09-19
19:20
Make tdbc work in combination with trunk (Tcl 9.0) check-in: 396b663a38 user: jan.nijtmans tags: trunk
2019-08-30
12:58
Make tdbc run when it's compiled with a C++ compiler. Also remove end-of-line spacings. check-in: 1fe4cd73a5 user: jan.nijtmans tags: trunk
2019-08-29
11:02
Re-generate configure script with latest TEA check-in: 812b3840d8 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.

36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
...
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
...
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
...
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
...
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
...
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
...
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
...
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
	* win/nmakehlp.c: Add "-V<num>" option, in order to be able
	to detect partial version numbers.

2012-07-26  Jan Nijtmans  <[email protected]>

	* tclconfig/install-sh:  Update to latest TEA
	* tclconfig/tcl.m4:	
	* configure:		autoconf-2.59

2012-07-17  Jan Nijtmans  <[email protected]>

	* win/makefile.vc: [Bug 3544932]: Visual studio compiler check fails

2012-07-12  Kevin B. Kenny  <[email protected]>
................................................................................
	               run-time loading.
	* configure.in: Removed a stray backslash that caused a shell
	                error message while configuring (and otherwise
	                appeared harmless).
	* tools/genExtStubs.tcl: Adjusted to generate the Stubs files in
	                         Unix format only to avoid DOS-formatted files
	                         sneaking into the repository.
	
2010-04-26  Kevin B. Kenny  <[email protected]>

	* tools/genStubs.tcl: Revised 'genStubs' to write files in Unix
			      format (-translation lf) so that 'make genstubs'
	                      generates the same output on Unix and Windows.
	* tdbcDecls.h:
	* tdbcStubInit.h:     make genstubs
	* README:
	* configure.in:
	* generic/tdbc.h:     Advance patchlevel to 1.0b14.1
	* configure:          autoconf-2.59
	
	
2010-04-25  Kevin B. Kenny  <[email protected]>

	* configure.in:     Advance release to 1.0b14
	* generic/tdbc.h:
	* README:
	* configure:        autoconf-2.59
	
2010-04-10  Kevin B. Kenny  <[email protected]>

	* configure.in:
	* tdbcConfig.sh.in: Modified to pass the build-time and run-time
	                    Tcl script library directories in tdbcConfig.sh,
	                    so that driver tests can be run before tdbc itself
	                    is installed.
	* configure: autoconf 2.59
	
2010-04-08  Kevin B. Kenny  <[email protected]>

	* configure.in: 
	* tdbcConfig.sh.in:  Revised names starting with TDBC_ to start
	with tdbc_ in order to conform with the expectations of
	TEA_LOAD_CONFIG. Added tdbc_BUILD_STUB_LIB_SPEC and
	tdbc_BUILD_INCLUDE_SPEC to the generated tdbcConfig.sh so that
	the Stubs library and include files for tdbc can be found in
	the build directory as well as the install directory.

	* configure: autoconf 2.59
	
2010-04-06  Kevin B. Kenny  <[email protected]>

	* doc/Tdbc_Init.3:
	* doc/tdbc.n:
	* doc/tdbc_connection.n:
	* doc/tdbc_mapSqlState.n:
	* doc/tdbc_connection.n:
	* doc/tdbc_resultset.n:
	* doc/tdbc_statement.n:
	* doc/tdbc_tokenize.n: Merged changes from the trunk of the 
	Tcl source tree that make the documentation fit better with the
	Tcl manuals. (Tickets [fcc8231b9e], [02c0131ba1] and [18c90402fb]).

	* Makefile.in: Corrected a misinstallation of the manual
	pages in the case where $(MANDIR)/man3 doesn't exist.
	(Ticket [99e97fb098])

	* generic/tdbc.c:
	* generic/tdbcDecls.h:
	* generic/tdbcStubInit.c:
	* generic/tdbcStubLib.c:
	* tools/genStubs.tcl: Made the Stubs tables (and a few other constants
	formally 'const'. (Ticket [cf7bc364cc])
	
2010-03-14  Kevin B. Kenny  <[email protected]>

	* tools/genExtStubs.tcl (new file): Added a tool so that
	drivers can resolve imports into Stubs tables at run time, allowing
	them to avoid compile-dependencies on the respective databases'
	build systems. 
	
2010-03-01  Kevin B. Kenny  <[email protected]>

	* tools/tdbc-man2html.tcl: Added SourceForge logo to the HTML
	documentation, to comply with requirements for hosting the
	documentation at SourceForge.

2009-09-20  Kevin B. Kenny  <[email protected]>

	* tools/tdbc-man2html.tcl: Added tdbcpostgres to the documentation set.
	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b13
	* configure:		autoconf-2.59
	
2009-07-02  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b12
	* configure:		autoconf-2.59
	
	
2009-05-29  Kevin B. Kenny  <[email protected]>
	
	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b11
	* configure:		autoconf-2.59
	
2009-04-21  Kevin B. Kenny  <[email protected]>

	* Makefile.in (dist): Rename Tdbc.3 to Tdbc_Init.3 to avoid
	a file naming conflict in HTML documentation.
	* doc/Tdbc_Init.3: Renamed from Tdbc.3. Added IGNORE arond macros
	* doc/tbdc.n:
	* doc/tdbc_connection.n:
................................................................................
	* doc/tdbc_tokenize.n: Added IGNORE / END IGNORE around macros.
	* tdbc_mapSqlState.n: Moved the .BS comment to where it belongs.
	* tools/tdbc-man2html.tcl: Added .3 man pages to the build. Added a
	    '\" IGNORE ... \'" END IGNORE directive so that *roff macros
	    can be skipped reliably (needed in order to handle the .AS and
	    .AP macros)
	Retagged 1.0b10 with these changes.
	
2009-04-20  Kevin B. Kenny  <[email protected]>

	* Makefile.in (dist): Added new man pages to the 'dist' rule.
	Retagged 1.0b10 with these changes.
	
2009-04-19  Kevin B. Kenny  <[email protected]>

	* Makefile.in (install-doc): Added missing commands to install
	                             section 3 man pages
	
2009-04-18  Kevin B. Kenny  <[email protected]>

	* doc/Tdbc.3: Added manual page for C API to TDBC
	* doc/tdbc.n:
	* doc/tdbc_connection.n: Changed 'starttransaction' to
				 'begintransaction'. Corrected the 'foreach'
				 syntax
	* doc/tdbc_statement.n: Corrected the 'foreach' syntax.
	* doc/tdbc_resultset.n:
	* doc/tdbc_tokenize.n: Corrected tabs, margins, etc. to Tcl standard.
	* doc/tdbc_mapSqlState.n: Added documentation for tdbc::mapSqlState.
	
2009-04-16  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b10
	* configure:		autoconf-2.59
	
2009-03-03  Kevin B. Kenny  <[email protected]>

	* tdbc.tcl: Replaced the 'statementClass' and 'resultSetClass'
	instance variables with 'statementCreate and 'resultSetCreate'
	methods (expected to forward to the appropriate constructors).
	Replaced 'my variable' usage with 'variable' declarations at
	class level. Removed various bits of debugging output.
	
2009-02-16  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b9
	* configure:		autoconf-2.59
	
2009-02-15  Kevin B. Kenny  <[email protected]>

	* README: Fix several editorial details. Thanks to Larry Virden
	for the patch. [Ticket e33df9041f]
	
2009-02-14  Kevin B. Kenny  <[email protected]>

	* tools/tdbc-man2html.tcl (new file):
		First cut at automating HTML generation for the manual
		pages.
	* doc/tdbc.n: 
	* doc/tdbc_connection.n:
	* doc/tdbc_resultset.n:
	* doc/tdbc_statement.n:
	* doc/tdbc_tokenize.n:	Formatting changes to the man pages so that
				man2html works.
	
	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b8
	* configure:		autoconf-2.59
	
2009-02-01  Kevin B. Kenny  <[email protected]>

	* Makefile.in:		Modified 'pkgIndex.tcl' rule to allow for
				requiring the TclOO package in 8.5, and not
				in 8.6, while allowing both versions.
				Modified 'clean' to clean up 'pkgIndex.tcl',
				and added the version dependencies as
				TCL_VERSION_REQ, TCL_VERSION_DESIRED,
				and TCLOO_VERSION_REQ. Added the new
				'tests/tdbc.test' to 'make dist'.
	* tests/tdbc.test:	Removed explicit check for {TCL WRONGARGS}
				in ::errorCode, to restore 8.5 compatibility.
	
2009-01-31  Kevin B. Kenny  <[email protected]>

	* README:
	* configure.in:
	* generic/tdbc.h:	Advanced version to 1.0b7
	* configure:		autoconf-2.59
	* generic/tdbc.c:	Added a 'tdbc::mapSqlState' command that
................................................................................
				a SQLSTATE.
	* generic/tdbc.decls:	Added Tdbc_MapSqlState, C API to 'mapSqlState'
	* generic/tdbcDecls.h:
	* generic/tdbcStubInit.c:  Regenerated
	* library/tdbc.tcl:	Modified so that all errors return a proper
				errorCode
	* tests/tdbc.test:	Added tests for tdbc::mapSqlState
	
2009-01-07  David Gravereaux <[email protected]>

	* win/makefile.vc: Needed quotes around	$(SCRIPT_INSTALL_DIR)
	in the install-libraries target else directory with spaces
	in it failed.

2009-01-05  Kevin B. Kenny  <[email protected]>

	* README:		  Advanced version to 1.0b6
	* configure.in:
	* generic/tdbc.h:	

	* configure:		  autoconf-2.59
	
2009-01-04  Kevin B. Kenny  <[email protected]>

	* README:		  Advanced version to 1.0b5
	* configure.in:
	* generic/tdbc.h:	

	* configure:		  autoconf-2.59
	
2008-12-30  Kevin B. Kenny  <[email protected]>

	* README:		  Advanced version to 1.0b4
	* configure.in:
	* generic/tdbc.h:	

	* configure:		  autoconf-2.59

	* Makefile.in:		Changes to 'make dist' to include all files
				explicitly - avoids distributing Emacs backups,
				cores, etc.  D'oh!
	
	* Makefile.in:
	* README:
	* configure.in:
	* generic/tdbc.c:
	* generic/tdbc.decls:
	* generic/tdbc.h:
	* generic/tdbcDecls.h:
................................................................................
	* tests/all.tcl:
	* win/makefile.vc:
	* win/nmakehlp.c:
	* win/rules.vc:		Many trivial changes (e.g. RCS ID strings)
				to avoid merge conflicts when importing to
				Tcl's vendor branch.

	* generic/tdbcStubInit.c: Added MODULE_SCOPE to the tdbcStubs 
	                          declaration to correct a linkera error on
	                          linux-x64.
	* generic/tdbcTokenize.c: Added explicit casts to the 'ctype' macros
	                          to guard against possible signed characters.
	
2008-12-21  Kevin B. Kenny  <[email protected]>

	* win/makefile.vc:	Added files for a MSVC build system.
	* win/rules.vc:		Thanks to Pat Thoyts <[email protected]>
	* win/versions.vc:	for developing these files.n
	* win/tdbc.rc:		

2008-12-20  Kevin B. Kenny  <[email protected]>

	sign manifest
	
2008-12-20  Daniel Steffen  <[email protected]>

	* Makefile.in: use INSTALL_LIBRARY instead of INSTALL_PROGRAM to
	install libraries, avoids breakage from tcl's install-strip when
	built as a bundled package.

	* tclconfig/ChangeLog:	update to latest TEA from tcl CVS, which has
................................................................................

2008-12-19  Kevin Kenny  <[email protected]>

	* aclocal.m4: Changed to make ADD_MANIFEST default to ':'
	rather than an empty string, to silence a warning on BSD compiles.
	Thanks to Stu Cassoff for reporting this bug.
	* configure: autoconf-2.59
	
2008-12-19  Jan Nijtmans  <[email protected]>

	* tclconfig/tcl.m4: fix odbc build on mingw32
	* configure:	autoconf-2.59

2008-12-17  Don Porter  <[email protected]>

................................................................................
2008-12-07  Kevin B. Kenny  <[email protected]>

	* doc/tdbc.n: Added a file omitted from the 2008-11-30 commit.
	* configure.in:
	* generic/tdbc.h: Advanced version number to 1.0b1 in preparation
	for release.
	* configure: Autoconf 2.61
	
2008-11-30  Kevin B. Kenny  <[email protected]>

	* Makefile.in: Removed nagging reminder about documentation.
	* configure.in: Advanced revision to 0.2
	* configure: Autoconf 2.61
	* doc/tdbc.n:			First cut at a set of man
	* doc/tdbc_connection.n:	pages for TDBC. Redactors
................................................................................
	* doc/tdbc_statement.n:		welcome to submit
	* doc/tdbc_tokenize.n:		improvements.
	* generic/tdbc.c: Lowercased the package name 'tdbc'
	* generic/tdbc.h: Advanced patchlevel to 0.2a1
	* generic/tdbcDecls.h: Lowercased the package name 'tdbc'
	* generic/tdbcStubLib.c: Lowercased the package name 'tdbc'
	* tests/tokenize.test: Lowercased the package name 'tdbc'
	
	
2008-11-22  Kevin B. Kenny  <[email protected]>

	* configure.in: Changed to make TDBC buildable on 8.6 without
	needing to install a dummy tclooConfig.sh.
	* configure: Autoconf 2.61.
	
2008-10-23  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Fixed the constructor of tdbc::resultset
	to *not* have an empty constructor (which is interpreted by
	tcloo as deleting the constructor!). Attempted to sign the commit
	with a key that *isn't* about to expire. ;)
	
2008-06-11  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Split [$resultset nextrow] into two primitive
	methods: [$resultset nextlist] and [$resultset nextdict]. Added
	a [$resultset nextrow] method that delegates to one or the other
	of these.
	
2008-05-24  Kevin B. Kenny  <[email protected]>

	* configure.in: Changed configuration to use TEA_PATH_CONFIG to
	* aclocal.m4:   locate tcloo.  Removed the local code that did it
	                from aclocal.m4.
	* configure:    Autoconf 2.61
	
2008-05-13  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Silenced tracing.
	
2008-05-10  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Simplified processing of several callbacks
	by eliminating a useless [namespace code my] in favor of [self].
	Added tracing to attempt to track down a bug in oo's method
	resolution.
	
2008-04-30  Kevin B. Kenny  <[email protected]>

	* aclocal.m4:
	* configure:
	* configure.in:
	* license.terms:
	* Makefile.in:






|







 







|











|
|






|








|


|








|









|













|





|
|













|






|
|

|




|







 







|




|




|











|






|







|






|




|





|





|




|












|







 







|










|


|




|


|




|






|







 







|




|





|




|







 







|







 







|







 







|
|





|






|






|






|



|






|







36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
...
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
...
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
...
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
...
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
...
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
...
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
...
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
	* win/nmakehlp.c: Add "-V<num>" option, in order to be able
	to detect partial version numbers.

2012-07-26  Jan Nijtmans  <jan.nijtmans[email protected]>

	* tclconfig/install-sh:  Update to latest TEA
	* tclconfig/tcl.m4:
	* configure:		autoconf-2.59

2012-07-17  Jan Nijtmans  <[email protected]>

	* win/makefile.vc: [Bug 3544932]: Visual studio compiler check fails

2012-07-12  Kevin B. Kenny  <[email protected]>
................................................................................
	               run-time loading.
	* configure.in: Removed a stray backslash that caused a shell
	                error message while configuring (and otherwise
	                appeared harmless).
	* tools/genExtStubs.tcl: Adjusted to generate the Stubs files in
	                         Unix format only to avoid DOS-formatted files
	                         sneaking into the repository.

2010-04-26  Kevin B. Kenny  <[email protected]>

	* tools/genStubs.tcl: Revised 'genStubs' to write files in Unix
			      format (-translation lf) so that 'make genstubs'
	                      generates the same output on Unix and Windows.
	* tdbcDecls.h:
	* tdbcStubInit.h:     make genstubs
	* README:
	* configure.in:
	* generic/tdbc.h:     Advance patchlevel to 1.0b14.1
	* configure:          autoconf-2.59


2010-04-25  Kevin B. Kenny  <[email protected]>

	* configure.in:     Advance release to 1.0b14
	* generic/tdbc.h:
	* README:
	* configure:        autoconf-2.59

2010-04-10  Kevin B. Kenny  <[email protected]>

	* configure.in:
	* tdbcConfig.sh.in: Modified to pass the build-time and run-time
	                    Tcl script library directories in tdbcConfig.sh,
	                    so that driver tests can be run before tdbc itself
	                    is installed.
	* configure: autoconf 2.59

2010-04-08  Kevin B. Kenny  <[email protected]>

	* configure.in:
	* tdbcConfig.sh.in:  Revised names starting with TDBC_ to start
	with tdbc_ in order to conform with the expectations of
	TEA_LOAD_CONFIG. Added tdbc_BUILD_STUB_LIB_SPEC and
	tdbc_BUILD_INCLUDE_SPEC to the generated tdbcConfig.sh so that
	the Stubs library and include files for tdbc can be found in
	the build directory as well as the install directory.

	* configure: autoconf 2.59

2010-04-06  Kevin B. Kenny  <[email protected]>

	* doc/Tdbc_Init.3:
	* doc/tdbc.n:
	* doc/tdbc_connection.n:
	* doc/tdbc_mapSqlState.n:
	* doc/tdbc_connection.n:
	* doc/tdbc_resultset.n:
	* doc/tdbc_statement.n:
	* doc/tdbc_tokenize.n: Merged changes from the trunk of the
	Tcl source tree that make the documentation fit better with the
	Tcl manuals. (Tickets [fcc8231b9e], [02c0131ba1] and [18c90402fb]).

	* Makefile.in: Corrected a misinstallation of the manual
	pages in the case where $(MANDIR)/man3 doesn't exist.
	(Ticket [99e97fb098])

	* generic/tdbc.c:
	* generic/tdbcDecls.h:
	* generic/tdbcStubInit.c:
	* generic/tdbcStubLib.c:
	* tools/genStubs.tcl: Made the Stubs tables (and a few other constants
	formally 'const'. (Ticket [cf7bc364cc])

2010-03-14  Kevin B. Kenny  <[email protected]>

	* tools/genExtStubs.tcl (new file): Added a tool so that
	drivers can resolve imports into Stubs tables at run time, allowing
	them to avoid compile-dependencies on the respective databases'
	build systems.

2010-03-01  Kevin B. Kenny  <[email protected]>

	* tools/tdbc-man2html.tcl: Added SourceForge logo to the HTML
	documentation, to comply with requirements for hosting the
	documentation at SourceForge.

2009-09-20  Kevin B. Kenny  <[email protected]>

	* tools/tdbc-man2html.tcl: Added tdbcpostgres to the documentation set.
	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b13
	* configure:		autoconf-2.59

2009-07-02  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b12
	* configure:		autoconf-2.59


2009-05-29  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b11
	* configure:		autoconf-2.59

2009-04-21  Kevin B. Kenny  <[email protected]>

	* Makefile.in (dist): Rename Tdbc.3 to Tdbc_Init.3 to avoid
	a file naming conflict in HTML documentation.
	* doc/Tdbc_Init.3: Renamed from Tdbc.3. Added IGNORE arond macros
	* doc/tbdc.n:
	* doc/tdbc_connection.n:
................................................................................
	* doc/tdbc_tokenize.n: Added IGNORE / END IGNORE around macros.
	* tdbc_mapSqlState.n: Moved the .BS comment to where it belongs.
	* tools/tdbc-man2html.tcl: Added .3 man pages to the build. Added a
	    '\" IGNORE ... \'" END IGNORE directive so that *roff macros
	    can be skipped reliably (needed in order to handle the .AS and
	    .AP macros)
	Retagged 1.0b10 with these changes.

2009-04-20  Kevin B. Kenny  <[email protected]>

	* Makefile.in (dist): Added new man pages to the 'dist' rule.
	Retagged 1.0b10 with these changes.

2009-04-19  Kevin B. Kenny  <[email protected]>

	* Makefile.in (install-doc): Added missing commands to install
	                             section 3 man pages

2009-04-18  Kevin B. Kenny  <[email protected]>

	* doc/Tdbc.3: Added manual page for C API to TDBC
	* doc/tdbc.n:
	* doc/tdbc_connection.n: Changed 'starttransaction' to
				 'begintransaction'. Corrected the 'foreach'
				 syntax
	* doc/tdbc_statement.n: Corrected the 'foreach' syntax.
	* doc/tdbc_resultset.n:
	* doc/tdbc_tokenize.n: Corrected tabs, margins, etc. to Tcl standard.
	* doc/tdbc_mapSqlState.n: Added documentation for tdbc::mapSqlState.

2009-04-16  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b10
	* configure:		autoconf-2.59

2009-03-03  Kevin B. Kenny  <[email protected]>

	* tdbc.tcl: Replaced the 'statementClass' and 'resultSetClass'
	instance variables with 'statementCreate and 'resultSetCreate'
	methods (expected to forward to the appropriate constructors).
	Replaced 'my variable' usage with 'variable' declarations at
	class level. Removed various bits of debugging output.

2009-02-16  Kevin B. Kenny  <[email protected]>

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b9
	* configure:		autoconf-2.59

2009-02-15  Kevin B. Kenny  <[email protected]>

	* README: Fix several editorial details. Thanks to Larry Virden
	for the patch. [Ticket e33df9041f]

2009-02-14  Kevin B. Kenny  <[email protected]>

	* tools/tdbc-man2html.tcl (new file):
		First cut at automating HTML generation for the manual
		pages.
	* doc/tdbc.n:
	* doc/tdbc_connection.n:
	* doc/tdbc_resultset.n:
	* doc/tdbc_statement.n:
	* doc/tdbc_tokenize.n:	Formatting changes to the man pages so that
				man2html works.

	* generic/tdbc.h:
	* configure.in:
	* README:		Advance version number to 1.0b8
	* configure:		autoconf-2.59

2009-02-01  Kevin B. Kenny  <[email protected]>

	* Makefile.in:		Modified 'pkgIndex.tcl' rule to allow for
				requiring the TclOO package in 8.5, and not
				in 8.6, while allowing both versions.
				Modified 'clean' to clean up 'pkgIndex.tcl',
				and added the version dependencies as
				TCL_VERSION_REQ, TCL_VERSION_DESIRED,
				and TCLOO_VERSION_REQ. Added the new
				'tests/tdbc.test' to 'make dist'.
	* tests/tdbc.test:	Removed explicit check for {TCL WRONGARGS}
				in ::errorCode, to restore 8.5 compatibility.

2009-01-31  Kevin B. Kenny  <[email protected]>

	* README:
	* configure.in:
	* generic/tdbc.h:	Advanced version to 1.0b7
	* configure:		autoconf-2.59
	* generic/tdbc.c:	Added a 'tdbc::mapSqlState' command that
................................................................................
				a SQLSTATE.
	* generic/tdbc.decls:	Added Tdbc_MapSqlState, C API to 'mapSqlState'
	* generic/tdbcDecls.h:
	* generic/tdbcStubInit.c:  Regenerated
	* library/tdbc.tcl:	Modified so that all errors return a proper
				errorCode
	* tests/tdbc.test:	Added tests for tdbc::mapSqlState

2009-01-07  David Gravereaux <[email protected]>

	* win/makefile.vc: Needed quotes around	$(SCRIPT_INSTALL_DIR)
	in the install-libraries target else directory with spaces
	in it failed.

2009-01-05  Kevin B. Kenny  <[email protected]>

	* README:		  Advanced version to 1.0b6
	* configure.in:
	* generic/tdbc.h:

	* configure:		  autoconf-2.59

2009-01-04  Kevin B. Kenny  <[email protected]>

	* README:		  Advanced version to 1.0b5
	* configure.in:
	* generic/tdbc.h:

	* configure:		  autoconf-2.59

2008-12-30  Kevin B. Kenny  <[email protected]>

	* README:		  Advanced version to 1.0b4
	* configure.in:
	* generic/tdbc.h:

	* configure:		  autoconf-2.59

	* Makefile.in:		Changes to 'make dist' to include all files
				explicitly - avoids distributing Emacs backups,
				cores, etc.  D'oh!

	* Makefile.in:
	* README:
	* configure.in:
	* generic/tdbc.c:
	* generic/tdbc.decls:
	* generic/tdbc.h:
	* generic/tdbcDecls.h:
................................................................................
	* tests/all.tcl:
	* win/makefile.vc:
	* win/nmakehlp.c:
	* win/rules.vc:		Many trivial changes (e.g. RCS ID strings)
				to avoid merge conflicts when importing to
				Tcl's vendor branch.

	* generic/tdbcStubInit.c: Added MODULE_SCOPE to the tdbcStubs
	                          declaration to correct a linkera error on
	                          linux-x64.
	* generic/tdbcTokenize.c: Added explicit casts to the 'ctype' macros
	                          to guard against possible signed characters.

2008-12-21  Kevin B. Kenny  <[email protected]>

	* win/makefile.vc:	Added files for a MSVC build system.
	* win/rules.vc:		Thanks to Pat Thoyts <[email protected]>
	* win/versions.vc:	for developing these files.n
	* win/tdbc.rc:

2008-12-20  Kevin B. Kenny  <[email protected]>

	sign manifest

2008-12-20  Daniel Steffen  <[email protected]>

	* Makefile.in: use INSTALL_LIBRARY instead of INSTALL_PROGRAM to
	install libraries, avoids breakage from tcl's install-strip when
	built as a bundled package.

	* tclconfig/ChangeLog:	update to latest TEA from tcl CVS, which has
................................................................................

2008-12-19  Kevin Kenny  <[email protected]>

	* aclocal.m4: Changed to make ADD_MANIFEST default to ':'
	rather than an empty string, to silence a warning on BSD compiles.
	Thanks to Stu Cassoff for reporting this bug.
	* configure: autoconf-2.59

2008-12-19  Jan Nijtmans  <[email protected]>

	* tclconfig/tcl.m4: fix odbc build on mingw32
	* configure:	autoconf-2.59

2008-12-17  Don Porter  <[email protected]>

................................................................................
2008-12-07  Kevin B. Kenny  <[email protected]>

	* doc/tdbc.n: Added a file omitted from the 2008-11-30 commit.
	* configure.in:
	* generic/tdbc.h: Advanced version number to 1.0b1 in preparation
	for release.
	* configure: Autoconf 2.61

2008-11-30  Kevin B. Kenny  <[email protected]>

	* Makefile.in: Removed nagging reminder about documentation.
	* configure.in: Advanced revision to 0.2
	* configure: Autoconf 2.61
	* doc/tdbc.n:			First cut at a set of man
	* doc/tdbc_connection.n:	pages for TDBC. Redactors
................................................................................
	* doc/tdbc_statement.n:		welcome to submit
	* doc/tdbc_tokenize.n:		improvements.
	* generic/tdbc.c: Lowercased the package name 'tdbc'
	* generic/tdbc.h: Advanced patchlevel to 0.2a1
	* generic/tdbcDecls.h: Lowercased the package name 'tdbc'
	* generic/tdbcStubLib.c: Lowercased the package name 'tdbc'
	* tests/tokenize.test: Lowercased the package name 'tdbc'


2008-11-22  Kevin B. Kenny  <[email protected]>

	* configure.in: Changed to make TDBC buildable on 8.6 without
	needing to install a dummy tclooConfig.sh.
	* configure: Autoconf 2.61.

2008-10-23  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Fixed the constructor of tdbc::resultset
	to *not* have an empty constructor (which is interpreted by
	tcloo as deleting the constructor!). Attempted to sign the commit
	with a key that *isn't* about to expire. ;)

2008-06-11  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Split [$resultset nextrow] into two primitive
	methods: [$resultset nextlist] and [$resultset nextdict]. Added
	a [$resultset nextrow] method that delegates to one or the other
	of these.

2008-05-24  Kevin B. Kenny  <[email protected]>

	* configure.in: Changed configuration to use TEA_PATH_CONFIG to
	* aclocal.m4:   locate tcloo.  Removed the local code that did it
	                from aclocal.m4.
	* configure:    Autoconf 2.61

2008-05-13  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Silenced tracing.

2008-05-10  Kevin B. Kenny  <[email protected]>

	* library/tdbc.tcl: Simplified processing of several callbacks
	by eliminating a useless [namespace code my] in favor of [self].
	Added tracing to attempt to track down a bug in oo's method
	resolution.

2008-04-30  Kevin B. Kenny  <[email protected]>

	* aclocal.m4:
	* configure:
	* configure.in:
	* license.terms:
	* Makefile.in:

Changes to Makefile.in.

247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
shell: binaries libraries
	@$(TCLSH) $(SCRIPT)

gdb:
	$(TCLSH_ENV) $(PKG_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)

gdb-test: binaries libraries 
	$(TCLSH_ENV) $(PKG_ENV) $(GDB) \
	    --args $(TCLSH_PROG) `@[email protected] $(srcdir)/tests/all.tcl` \
	    $(TESTFLAGS) -singleproc 1 \
	    -load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
		[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"

valgrind: binaries libraries






|







247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
shell: binaries libraries
	@$(TCLSH) $(SCRIPT)

gdb:
	$(TCLSH_ENV) $(PKG_ENV) $(GDB) $(TCLSH_PROG) $(SCRIPT)

gdb-test: binaries libraries
	$(TCLSH_ENV) $(PKG_ENV) $(GDB) \
	    --args $(TCLSH_PROG) `@[email protected] $(srcdir)/tests/all.tcl` \
	    $(TESTFLAGS) -singleproc 1 \
	    -load "package ifneeded $(PACKAGE_NAME) $(PACKAGE_VERSION) \
		[list load `@[email protected] $(PKG_LIB_FILE)` $(PACKAGE_NAME)]"

valgrind: binaries libraries

Changes to README.

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1. Introduction

This directory contains the source code, documentation, and test scripts
for the base classes and SQL tokenizer of Tcl Database Connectivity. It
is not very useful by itself; to access databases, you also need one
or more driver modules for the database manager(s) that you intend to use.
The drivers are available from http://tdbc.tcl.tk along with the
source code of this module. A bug database and Wiki are available 
at the same location.

TDBC is a freely-available open source package.  You can do virtually
anything you like with it, such as modifying it, redistributing it,
and selling it either in whole or in part.  See the file
"license.terms" for complete information.







|







9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
1. Introduction

This directory contains the source code, documentation, and test scripts
for the base classes and SQL tokenizer of Tcl Database Connectivity. It
is not very useful by itself; to access databases, you also need one
or more driver modules for the database manager(s) that you intend to use.
The drivers are available from http://tdbc.tcl.tk along with the
source code of this module. A bug database and Wiki are available
at the same location.

TDBC is a freely-available open source package.  You can do virtually
anything you like with it, such as modifying it, redistributing it,
and selling it either in whole or in part.  See the file
"license.terms" for complete information.

Changes to generic/tdbc.c.

187
188
189
190
191
192
193



194
195
196
197
198
199
200
201
...
217
218
219
220
221
222
223




 *	Creates a ::tdbc namespace and a ::tdbc::Connection class
 *	from which the connection objects created by a TDBC driver
 *	may inherit.
 *
 *-----------------------------------------------------------------------------
 */




int
Tdbc_Init(
    Tcl_Interp* interp		/* Tcl interpreter */
) {

    int i;

    /* Require Tcl */
................................................................................
			 (ClientData) &tdbcStubs) == TCL_ERROR) {
	return TCL_ERROR;
    }

    return TCL_OK;

}










>
>
>
|







 







>
>
>
>
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
...
220
221
222
223
224
225
226
227
228
229
230
 *	Creates a ::tdbc namespace and a ::tdbc::Connection class
 *	from which the connection objects created by a TDBC driver
 *	may inherit.
 *
 *-----------------------------------------------------------------------------
 */

#ifdef __cplusplus
extern "C" {
#endif  /* __cplusplus */
DLLEXPORT int
Tdbc_Init(
    Tcl_Interp* interp		/* Tcl interpreter */
) {

    int i;

    /* Require Tcl */
................................................................................
			 (ClientData) &tdbcStubs) == TCL_ERROR) {
	return TCL_ERROR;
    }

    return TCL_OK;

}

#ifdef __cplusplus
}
#endif  /* __cplusplus */

Changes to license.terms.

23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE
IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.

GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
in the software and related documentation as defined in the Federal 
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2).  If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
Government shall have only "Restricted Rights" as defined in Clause
252.227-7013 (c) (1) of DFARs.  Notwithstanding the foregoing, the
authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the
terms specified in this license. 






|







|
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FITNESS FOR A PARTICULAR PURPOSE, AND NON-INFRINGEMENT.  THIS SOFTWARE
IS PROVIDED ON AN "AS IS" BASIS, AND THE AUTHORS AND DISTRIBUTORS HAVE
NO OBLIGATION TO PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR
MODIFICATIONS.

GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2).  If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
Government shall have only "Restricted Rights" as defined in Clause
252.227-7013 (c) (1) of DFARs.  Notwithstanding the foregoing, the
authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the
terms specified in this license.

Changes to misc/MakingReleases.txt.

72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
(7) Make the HTML manual

    tclsh86 tdbc/tools/tdbc-man2html.tcl \
        --srcdir=. --htmldir=/tmp/dist/tdbc${VERSION}-doc \
        --tdbc --tdbcmysql --tdbcodbc --tdbcpostgres --tdbcsqlite3

    Result is a /tmp/dist/tdbc${VERSION}-doc directory containing the 
    HTML manual.

(8) Sync with tdbc.tcl.tk

(9) Make win32 and doc ZIPS and upload to
    https://frs.sourceforge.net/webupload

(10) Upload the manual

    scp -r /tmp/dist/tdbc$(VERSION)-doc/* \
        userid,[email protected]:/home/groups/t/tc/tcl/htdocs/tdbc/






|











72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
(7) Make the HTML manual

    tclsh86 tdbc/tools/tdbc-man2html.tcl \
        --srcdir=. --htmldir=/tmp/dist/tdbc${VERSION}-doc \
        --tdbc --tdbcmysql --tdbcodbc --tdbcpostgres --tdbcsqlite3

    Result is a /tmp/dist/tdbc${VERSION}-doc directory containing the
    HTML manual.

(8) Sync with tdbc.tcl.tk

(9) Make win32 and doc ZIPS and upload to
    https://frs.sourceforge.net/webupload

(10) Upload the manual

    scp -r /tmp/dist/tdbc$(VERSION)-doc/* \
        userid,[email protected]:/home/groups/t/tc/tcl/htdocs/tdbc/

Changes to misc/dosfix.tcl.

73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
    }
    puts "Ignoring: $file"
}

walk . doit


	    
	return
    }
    puts "Ignoring: $file"
}

walk . doit


	    

	      






|








|

<
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90

    }
    puts "Ignoring: $file"
}

walk . doit



	return
    }
    puts "Ignoring: $file"
}

walk . doit





Changes to misc/makeWinBinaries.tcl.

48
49
50
51
52
53
54
55
    } else {
	puts "Files installed in $instdir"
    }
    exit
}
close $f
exit
	






<
48
49
50
51
52
53
54

    } else {
	puts "Files installed in $instdir"
    }
    exit
}
close $f
exit

Changes to tests/all.tcl.

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# This file contains a top-level script to run all of the Tcl
# tests.  Execute it by invoking "source all.test" when running tcltest
# in this directory.
#
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
# 
# RCS: @(#) $Id$

package require Tcl 8.5
package require tcltest 2.2
::tcltest::configure \
    -testdir [file dirname [file normalize [info script]]] \
    {*}$argv
::tcltest::runAllTests






|








2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# This file contains a top-level script to run all of the Tcl
# tests.  Execute it by invoking "source all.test" when running tcltest
# in this directory.
#
# Copyright (c) 1998-2000 by Scriptics Corporation.
# All rights reserved.
#
# RCS: @(#) $Id$

package require Tcl 8.5
package require tcltest 2.2
::tcltest::configure \
    -testdir [file dirname [file normalize [info script]]] \
    {*}$argv
::tcltest::runAllTests

Changes to tests/tdbc.test.

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package require tcltest 2
namespace import -force ::tcltest::*
tcltest::loadTestedCommands
package require tdbc

test tdbc-1.1 {tdbc::mapSqlState, wrong args} {*}{
     -body {
	 list [catch {tdbc::mapSqlState} result] $result 
     }
    -match glob
    -result {1 {wrong # args:*}}
}
	    
test tdbc-1.2 {tdbc::mapSqlState, wrong args} {*}{
     -body {
	 list [catch {tdbc::mapSqlState 00000 ?} result] $result
     }
    -match glob
    -result {1 {wrong # args:*}}
}
................................................................................

test tdbc-1.3 {tdbc::mapSqlState, known state} {*}{
    -body {
	tdbc::mapSqlState 22012
    }
    -result {DATA_EXCEPTION}
}
	    
test tdbc-1.4 {tdbc::mapSqlState, known state} {*}{
    -body {
	tdbc::mapSqlState *****
    }
    -result {UNKNOWN_SQLSTATE}
}
	    
cleanupTests
return

# Local Variables:
# mode: tcl
# End:






|




|







 







|






|






10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
..
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package require tcltest 2
namespace import -force ::tcltest::*
tcltest::loadTestedCommands
package require tdbc

test tdbc-1.1 {tdbc::mapSqlState, wrong args} {*}{
     -body {
	 list [catch {tdbc::mapSqlState} result] $result
     }
    -match glob
    -result {1 {wrong # args:*}}
}

test tdbc-1.2 {tdbc::mapSqlState, wrong args} {*}{
     -body {
	 list [catch {tdbc::mapSqlState 00000 ?} result] $result
     }
    -match glob
    -result {1 {wrong # args:*}}
}
................................................................................

test tdbc-1.3 {tdbc::mapSqlState, known state} {*}{
    -body {
	tdbc::mapSqlState 22012
    }
    -result {DATA_EXCEPTION}
}

test tdbc-1.4 {tdbc::mapSqlState, known state} {*}{
    -body {
	tdbc::mapSqlState *****
    }
    -result {UNKNOWN_SQLSTATE}
}

cleanupTests
return

# Local Variables:
# mode: tcl
# End:

Changes to tests/tokenize.test.

56
57
58
59
60
61
62
63
64
65
66
67
68
69
test tokenize-4.2 {unterminated quote} {
    ::tdbc::tokenize "\" unterminated quote"
} [list "\" unterminated quote"]

test tokenize-4.3 {unterminated quote} {
    ::tdbc::tokenize "\[ unterminated quote"
} [list "\[ unterminated quote"]
	    
cleanupTests
return

# Local Variables:
# mode: tcl
# End:






|






56
57
58
59
60
61
62
63
64
65
66
67
68
69
test tokenize-4.2 {unterminated quote} {
    ::tdbc::tokenize "\" unterminated quote"
} [list "\" unterminated quote"]

test tokenize-4.3 {unterminated quote} {
    ::tdbc::tokenize "\[ unterminated quote"
} [list "\[ unterminated quote"]

cleanupTests
return

# Local Variables:
# mode: tcl
# End:

Changes to tools/tdbc-man2html.tcl.

19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
....
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
....
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
set Version "0.40"

set ::CSSFILE "docs.css"

set ::logo {
    <a href="http://sourceforge.net/projects/tcl">
    <img src="http://sflogo.sourceforge.net/sflogo.php?group_id=10894&amp;type=14" 
         width="150" height="40" 
         alt="Get Tcl at SourceForge.net. Fast, secure and Free Open Source software downloads" />
    </a>
}

proc parse_command_line {} {
    global argv Version

................................................................................
	default {
	    manerror "unrecognized format directive: $line"
	}
    }
}
##
## merge copyright listings
## 
proc merge-copyrights {l1 l2} {
    set merge {}
    set re1 {^Copyright +(?:\(c\)|\\\(co|&copy;) +(\w.*?)(?:all rights reserved)?(?:\. )*$}
    set re2 {^(\d+) +(?:by +)?(\w.*)$}         ;# date who
    set re3 {^(\d+)-(\d+) +(?:by +)?(\w.*)$}   ;# from to who
    set re4 {^(\d+), *(\d+) +(?:by +)?(\w.*)$} ;# date1 date2 who
    foreach copyright [concat $l1 $l2] {
................................................................................
set tdbcdesc {The commands that are implemented by Tcl DataBase Connectivity (TDBC)}
set tdbclibdesc {The C functions that are implemented by Tcl DataBase Connectivity (TDBC)}
set tdbcodbcdesc {The ODBC driver for Tcl DataBase Connectivity (TDBC)}
set tdbcsqlite3desc {The Sqlite3 driver for Tcl DataBase Connectivity (TDBC)}
set tdbcmysqldesc {The MySQL driver for Tcl DataBase Connectivity (TDBC)}
set tdbcpostgresdesc {The Postgres driver for Tcl DataBase Connectivity (TDBC)}

    
if {[catch {
    make-man-pages $webdir \
	[expr {($build_tcl || $build_tk) ? "$tcltkdir/{$appdir}/doc/*.1 \"$tcltkdesc Applications\" UserCmd {$usercmddesc}" : ""}] \
	[expr {$build_tcl ? "$tcltkdir/$tcldir/doc/*.n {Tcl Commands} TclCmd {$tclcmddesc}" : ""}] \
	[expr {$build_tk ? "$tcltkdir/$tkdir/doc/*.n {Tk Commands} TkCmd {$tkcmddesc}" : ""}] \
	[expr {$build_tcl ? "$tcltkdir/$tcldir/doc/*.3 {Tcl Library} TclLib {$tcllibdesc}" : ""}] \
	[expr {$build_tk ? "$tcltkdir/$tkdir/doc/*.3 {Tk Library} TkLib {$tklibdesc}" : ""}] \






|
|







 







|







 







|







19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
....
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
....
2106
2107
2108
2109
2110
2111
2112
2113
2114
2115
2116
2117
2118
2119
2120
set Version "0.40"

set ::CSSFILE "docs.css"

set ::logo {
    <a href="http://sourceforge.net/projects/tcl">
    <img src="http://sflogo.sourceforge.net/sflogo.php?group_id=10894&amp;type=14"
         width="150" height="40"
         alt="Get Tcl at SourceForge.net. Fast, secure and Free Open Source software downloads" />
    </a>
}

proc parse_command_line {} {
    global argv Version

................................................................................
	default {
	    manerror "unrecognized format directive: $line"
	}
    }
}
##
## merge copyright listings
##
proc merge-copyrights {l1 l2} {
    set merge {}
    set re1 {^Copyright +(?:\(c\)|\\\(co|&copy;) +(\w.*?)(?:all rights reserved)?(?:\. )*$}
    set re2 {^(\d+) +(?:by +)?(\w.*)$}         ;# date who
    set re3 {^(\d+)-(\d+) +(?:by +)?(\w.*)$}   ;# from to who
    set re4 {^(\d+), *(\d+) +(?:by +)?(\w.*)$} ;# date1 date2 who
    foreach copyright [concat $l1 $l2] {
................................................................................
set tdbcdesc {The commands that are implemented by Tcl DataBase Connectivity (TDBC)}
set tdbclibdesc {The C functions that are implemented by Tcl DataBase Connectivity (TDBC)}
set tdbcodbcdesc {The ODBC driver for Tcl DataBase Connectivity (TDBC)}
set tdbcsqlite3desc {The Sqlite3 driver for Tcl DataBase Connectivity (TDBC)}
set tdbcmysqldesc {The MySQL driver for Tcl DataBase Connectivity (TDBC)}
set tdbcpostgresdesc {The Postgres driver for Tcl DataBase Connectivity (TDBC)}


if {[catch {
    make-man-pages $webdir \
	[expr {($build_tcl || $build_tk) ? "$tcltkdir/{$appdir}/doc/*.1 \"$tcltkdesc Applications\" UserCmd {$usercmddesc}" : ""}] \
	[expr {$build_tcl ? "$tcltkdir/$tcldir/doc/*.n {Tcl Commands} TclCmd {$tclcmddesc}" : ""}] \
	[expr {$build_tk ? "$tcltkdir/$tkdir/doc/*.n {Tk Commands} TkCmd {$tkcmddesc}" : ""}] \
	[expr {$build_tcl ? "$tcltkdir/$tcldir/doc/*.3 {Tcl Library} TclLib {$tcllibdesc}" : ""}] \
	[expr {$build_tk ? "$tcltkdir/$tkdir/doc/*.3 {Tk Library} TkLib {$tklibdesc}" : ""}] \

Changes to win/makefile.vc.

6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
..
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#   nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\installdir
#   nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\installdir
#   nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\installdir
#
# For other build options (debug, static etc.)
# See TIP 477 (https://core.tcl.tk/tips/doc/trunk/tip/477.md) for
# detailed documentation.
# 
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#------------------------------------------------------------------------------

PROJECT         = tdbc
RCFILE      = tdbc.rc
................................................................................
!endif

!include "versions.vc"

PRJ_OBJS = \
	$(TMP_DIR)\tdbc.obj \
	$(TMP_DIR)\tdbcStubInit.obj \
	$(TMP_DIR)\tdbcTokenize.obj 

PRJ_STUBOBJS = \
	$(TMP_DIR)\tdbcStubLib.obj

PRJ_HEADERS_PUBLIC = \
	$(GENERICDIR)\tdbc.h \
	$(GENERICDIR)\tdbcDecls.h






|







 







|







6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
..
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#   nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\installdir
#   nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\installdir
#   nmake /s /nologo /f makefile.vc INSTALLDIR=c:\path\to\installdir
#
# For other build options (debug, static etc.)
# See TIP 477 (https://core.tcl.tk/tips/doc/trunk/tip/477.md) for
# detailed documentation.
#
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
#------------------------------------------------------------------------------

PROJECT         = tdbc
RCFILE      = tdbc.rc
................................................................................
!endif

!include "versions.vc"

PRJ_OBJS = \
	$(TMP_DIR)\tdbc.obj \
	$(TMP_DIR)\tdbcStubInit.obj \
	$(TMP_DIR)\tdbcTokenize.obj

PRJ_STUBOBJS = \
	$(TMP_DIR)\tdbcStubLib.obj

PRJ_HEADERS_PUBLIC = \
	$(GENERICDIR)\tdbc.h \
	$(GENERICDIR)\tdbcDecls.h