Tcl Extension Architecture (TEA) Sample Extension

Check-in [ff435aac8d]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

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

Overview
Comment:Zap trailing whitespace. No functional change. DON'T use gnu tar; use normal tar.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: ff435aac8db9df4848d587d5fb425fed8c1828c7
User & Date: stwo 2012-08-03 07:03:48
Context
2012-08-07
08:30
update to latest TEA/ Tcl8.6-related improvements check-in: f5a66adb31 user: jan.nijtmans tags: trunk
2012-08-03
07:03
Zap trailing whitespace. No functional change. DON'T use gnu tar; use normal tar. check-in: ff435aac8d user: stwo tags: trunk
2012-08-02
04:02
Zap trailing whitespace. No functional change. Fix wrong date in previous ChangeLog entry. check-in: 71ae82d8f5 user: stwo tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.








1
2
3
4
5
6
7
...
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421






2010-08-02  Stuart Cassoff  <[email protected]>

	* README.sha:		Zap trailing whitespace.
	* doc/sha1.n:		No functional change.
	* generic/sample.c:
	* generic/tclsample.c:
	* license.terms:
................................................................................
	* configure: regened with autoconf 2.5x tcl.m4

	* Makefile.in (CFLAGS_WARNING): added to base makefile

2003-10-01  Pat Thoyts  <[email protected]>

	* tea.pdf:         Set to binary so it downloads properly under Win32
	
	* win/rules.vc:    Fixed nmakehlp to find the correct Tcl or Tk
	* win/nmakehlp.c:  version from the tcl.h header file. This will
	* win/makefile.vc  then pick up the right libraries.

2003-07-02  Pat Thoyts  <[email protected]>

	* README:           Added notes for the win/ build files.
	
	* win/Makefile.vc:  Patch #762878 applied to provide a sample VC++
	* win/rules.vc:     build system. This is NOT TEA but is a useful
	* win/nmakehlp.c:   alternative for win32 developers.

2003-04-04  Andreas Kupries  <[email protected]>

	* configure.in:
>
>
>
>
>
>
>







 







|







|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
...
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
2010-08-03  Stuart Cassoff  <[email protected]>

	* ChangeLog:		Zap trailing whitespace.
	* README.sha:		No functional change.
	* win/nmakehlp.c:
	* Makefile.in:		DON'T use gnu tar; use normal tar.

2010-08-02  Stuart Cassoff  <[email protected]>

	* README.sha:		Zap trailing whitespace.
	* doc/sha1.n:		No functional change.
	* generic/sample.c:
	* generic/tclsample.c:
	* license.terms:
................................................................................
	* configure: regened with autoconf 2.5x tcl.m4

	* Makefile.in (CFLAGS_WARNING): added to base makefile

2003-10-01  Pat Thoyts  <[email protected]>

	* tea.pdf:         Set to binary so it downloads properly under Win32

	* win/rules.vc:    Fixed nmakehlp to find the correct Tcl or Tk
	* win/nmakehlp.c:  version from the tcl.h header file. This will
	* win/makefile.vc  then pick up the right libraries.

2003-07-02  Pat Thoyts  <[email protected]>

	* README:           Added notes for the win/ build files.

	* win/Makefile.vc:  Patch #762878 applied to provide a sample VC++
	* win/rules.vc:     build system. This is NOT TEA but is a useful
	* win/nmakehlp.c:   alternative for win32 developers.

2003-04-04  Andreas Kupries  <[email protected]>

	* configure.in:

Changes to Makefile.in.

299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
#========================================================================
# Distribution creation
# You may need to tweak this target to make it work correctly.
#========================================================================

#COMPRESS	= tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
COMPRESS	= gtar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
DIST_ROOT	= /tmp/dist
DIST_DIR	= $(DIST_ROOT)/$(PKG_DIR)

dist-clean:
	rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*

dist: dist-clean






|







299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
#========================================================================
# Distribution creation
# You may need to tweak this target to make it work correctly.
#========================================================================

#COMPRESS	= tar cvf $(PKG_DIR).tar $(PKG_DIR); compress $(PKG_DIR).tar
COMPRESS	= tar zcvf $(PKG_DIR).tar.gz $(PKG_DIR)
DIST_ROOT	= /tmp/dist
DIST_DIR	= $(DIST_ROOT)/$(PKG_DIR)

dist-clean:
	rm -rf $(DIST_DIR) $(DIST_ROOT)/$(PKG_DIR).tar.*

dist: dist-clean

Changes to README.sha.

20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Usage:

      sha1 ?-log2base log2base? -string string

	or

      sha1 ?-log2base log2base? ?-copychan chanID? -chan chanID
	
	or

      sha1 -init (returns descriptor)
      sha1 -update descriptor ?-maxbytes n? ?-copychan chanID? -chan chanID
      sha1 ?-log2base log2base? -final descriptor








|







20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Usage:

      sha1 ?-log2base log2base? -string string

	or

      sha1 ?-log2base log2base? ?-copychan chanID? -chan chanID

	or

      sha1 -init (returns descriptor)
      sha1 -update descriptor ?-maxbytes n? ?-copychan chanID? -chan chanID
      sha1 ?-log2base log2base? -final descriptor


Changes to win/nmakehlp.c.

695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
...
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
	    int n = 0;
	    list_item_t *p = NULL;
	    for (p = substPtr; p != NULL; p = p->nextPtr, ++n) {
		fprintf(stderr, "% 3d '%s' => '%s'\n", n, p->key, p->value);
	    }
	}
#endif
	
	/*
	 * Run the substitutions over each line of the input
	 */
	
	while (fgets(szBuffer, cbBuffer, fp) != NULL) {
	    list_item_t *p = NULL;
	    for (p = substPtr; p != NULL; p = p->nextPtr) {
		char *m = strstr(szBuffer, p->key);
		if (m) {
		    char *cp, *op, *sp;
		    cp = szCopy;
................................................................................
		    while (*op) *cp++ = *op++;
		    *cp = 0;
		    memcpy(szBuffer, szCopy, sizeof(szCopy));
		}
	    }
	    printf(szBuffer);
	}
	
	list_free(&substPtr);
    }
    fclose(fp);
    return 0;
}
 
/*






|



|







 







|







695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
...
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
	    int n = 0;
	    list_item_t *p = NULL;
	    for (p = substPtr; p != NULL; p = p->nextPtr, ++n) {
		fprintf(stderr, "% 3d '%s' => '%s'\n", n, p->key, p->value);
	    }
	}
#endif

	/*
	 * Run the substitutions over each line of the input
	 */

	while (fgets(szBuffer, cbBuffer, fp) != NULL) {
	    list_item_t *p = NULL;
	    for (p = substPtr; p != NULL; p = p->nextPtr) {
		char *m = strstr(szBuffer, p->key);
		if (m) {
		    char *cp, *op, *sp;
		    cp = szCopy;
................................................................................
		    while (*op) *cp++ = *op++;
		    *cp = 0;
		    memcpy(szBuffer, szCopy, sizeof(szCopy));
		}
	    }
	    printf(szBuffer);
	}

	list_free(&substPtr);
    }
    fclose(fp);
    return 0;
}
 
/*