Tcl Extension Architecture (TEA) Sample Extension

Check-in [2608aea918]
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:Simpler approach to [0f839e585c]: make all symbols MODULE_SCOPE
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 2608aea91892f891ac6dc4f5e7ab4516a7e5724e
User & Date: jan.nijtmans 2014-10-15 13:04:01
References
2014-10-15
16:21 Ticket [0f839e585c] Symbol name conflict status still Pending with 4 other changes artifact: 6af2de9472 user: stwo
13:04 Pending ticket [0f839e585c]. artifact: 7fae8b32e0 user: jan.nijtmans
Context
2015-01-22
10:53
Rename configure.in to configure.ac, and update to latest TEA. check-in: 1c6d81fc6f user: jan.nijtmans tags: trunk
2014-10-15
13:04
Simpler approach to [0f839e585c]: make all symbols MODULE_SCOPE check-in: 2608aea918 user: jan.nijtmans tags: trunk
2014-10-01
18:11
Ticket [f72ade40ae]: Installer improvements check-in: 48389da729 user: jan.nijtmans tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to generic/sample.h.

38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
typedef struct {
    sha_uint32_t state[5];
    sha_uint32_t count[2];
    unsigned char buffer[64];
} SHA1_CTX;

void SHA1Init	(SHA1_CTX* context);
void SHA1Update	(SHA1_CTX* context, unsigned char* data, unsigned int len);
void SHA1Final	(SHA1_CTX* context, unsigned char digest[20]);

/*
 * Only the _Init function is exported.
 */

extern DLLEXPORT int	Sample_Init(Tcl_Interp * interp);







|
|
|







38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
typedef struct {
    sha_uint32_t state[5];
    sha_uint32_t count[2];
    unsigned char buffer[64];
} SHA1_CTX;

MODULE_SCOPE void SHA1Init(SHA1_CTX* context);
MODULE_SCOPE void SHA1Update(SHA1_CTX* context, unsigned char* data, unsigned int len);
MODULE_SCOPE void SHA1Final(SHA1_CTX* context, unsigned char digest[20]);

/*
 * Only the _Init function is exported.
 */

extern DLLEXPORT int	Sample_Init(Tcl_Interp * interp);