Jim Tcl
Check-in [2c1dd443ce]
Not logged in

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

Overview
Comment:build: Check for inline support

To ensure that linenoise.c can build, even for strict c89 Add cc-check-inline in autosetup/jim-misc.auto

Signed-off-by: Steve Bennett <steveb@workware.net.au>

Timelines: family | ancestors | descendants | both | trunk |
Files: files | file ages | folders
SHA1: 2c1dd443ce97c2b0ed7763bd035917e95527ca01
User & Date: steveb@workware.net.au 2019-11-14 23:04:13
Context
2019-11-20
01:32
bump version to 0.79

Update documentation to indicate v0.79 and update Tcl_shipped.html

Signed-off-by: Steve Bennett <steveb@workware.net.au> Leaf check-in: 1063870bf4 user: steveb@workware.net.au tags: trunk,

2019-11-14
23:04
build: Check for inline support

To ensure that linenoise.c can build, even for strict c89 Add cc-check-inline in autosetup/jim-misc.auto

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 2c1dd443ce user: steveb@workware.net.au tags: trunk,

23:02
Update ssl cert to use a 4096 bit key

Keep newer libssl happy

Signed-off-by: Steve Bennett <steveb@workware.net.au> check-in: 8a80086767 user: steveb@workware.net.au tags: trunk,

Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to auto.def.

293
294
295
296
297
298
299



300
301
302
303
304
305
306
}
if {[opt-bool-or-full lineedit]} {
    if {([cc-check-includes termios.h] && [have-feature isatty]) || [have-feature winconsole]} {
        msg-result "Enabling line editing"
        define USE_LINENOISE
        define-append PARSE_UNIDATA_FLAGS -width
        lappend extra_objs linenoise.o



    }
}
if {[opt-bool references]} {
    msg-result "Enabling references"
    define JIM_REFERENCES
}
if {[opt-bool shared with-jim-shared]} {







>
>
>







293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
}
if {[opt-bool-or-full lineedit]} {
    if {([cc-check-includes termios.h] && [have-feature isatty]) || [have-feature winconsole]} {
        msg-result "Enabling line editing"
        define USE_LINENOISE
        define-append PARSE_UNIDATA_FLAGS -width
        lappend extra_objs linenoise.o
        if {[cc-check-inline] && [is-defined inline]} {
            define-append CCOPTS -Dinline=[get-define inline]
        }
    }
}
if {[opt-bool references]} {
    msg-result "Enabling references"
    define JIM_REFERENCES
}
if {[opt-bool shared with-jim-shared]} {

Added autosetup/jim-misc.auto.



































































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# @cc-check-inline
#
# The equivalent of the 'AC_C_INLINE' macro.
#
# defines 'HAVE_INLINE' if inline is available,
# and defines 'inline' to be __inline__ or __inline if necessary
# or to "" if not available.
#
# Returns 1 if 'inline' is available or 0 otherwise
#
proc cc-check-inline {} {
	msg-checking "Checking for inline support..."
	set ok 0
	foreach i {inline __inline__ __inline} {
		if {[cctest -declare "#ifndef __cplusplus\nstatic $i void testfunc__(void);\n#endif"]} {
			incr ok
			break
		}
	}
	if {$ok} {
		if {$i eq "inline"} {
			msg-result yes
		} else {
			msg-result $i
			define inline $i
		}
	} else {
		define inline ""
		msg-result no
	}
	define-feature inline $ok
	return $ok
}