Overview
Comment: | Merged in alternate trunk from old development |
---|---|
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
75e4d5fbed3b1022159ff937586fe21b |
User & Date: | rkeene on 2014-05-05 16:22:07.039 |
Other Links: | manifest | tags |
References
2014-05-05
| ||
21:12 | Reverted [75e4d5fbed] and updated to do integration work in our driver directly check-in: cbac5b0590 user: rkeene tags: trunk | |
Context
2014-05-05
| ||
16:29 | Fixed incorrectly applied previous commit check-in: 4e6359ae47 user: rkeene tags: trunk | |
16:22 | Merged in alternate trunk from old development check-in: 75e4d5fbed user: rkeene tags: trunk | |
2014-05-04
| ||
07:27 | Updated ignores with Win32 targets check-in: 1ffb02b806 user: rkeene tags: trunk | |
2014-05-01
| ||
22:10 | Updated to download "tcc" into "tcc" directory check-in: 9474ae442e user: rkeene tags: trunk | |
Changes
Added .fossil-settings/ignore-glob version [163df1cbc6].
Added COPYING version [fdeb196b87].
Modified build/autogen.sh
from [257c5a2cf3]
to [95541498bc].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 | + | #! /bin/bash # Download latest copy of autoconf macros ( mkdir aclocal >/dev/null 2>/dev/null cd aclocal || exit 1 for file in shobj.m4 tcl.m4 versionscript.m4; do rm -f "${file}" wget -O "${file}.new" "http://rkeene.org/devel/autoconf/${file}" || continue |
︙ |
Added build/makearch.info version [38688ff634].
Added build/tcc-patches/0.9.26/tcc-0.9.26-tcl.diff version [e03734effa].
Added build/tcc-patches/0.9.26/tcc-0.9.26-tclio.diff version [8fe78dd24b].
Added headers.awk version [ea9e38a74d].
Modified pkgIndex.tcl.in
from [da39a3ee5e]
to [00c586db9f].
1 | + | package ifneeded tcc4tcl @PACKAGE_VERSION@ [list source [file join $dir tcc4tcl.tcl]] |
Renamed and modified
tcltcc.c
[f5d4fd88e2]
to tcc4tcl.c
[aa505b066c].
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | 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 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 | + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + + | /* * TclTCC - Tcl binding to Tiny C Compiler * * Copyright (c) 2007 Mark Janssen * Copyright (c) 2014 Roy Keene * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <tcl.h> #include <stdlib.h> #include "tcc.h" struct TclTCCState { TCCState *s; int relocated; }; |
︙ | |||
93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 | 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 | + + + - - + + - + + - + + - + - + | if (objc != 3) { Tcl_WrongNumArgs(interp, 2, objv, "path"); return TCL_ERROR; } else { tcc_add_library_path(s, Tcl_GetString(objv[2])); return TCL_OK; } #if 0 case TCLTCC_ADD_SYMBOL: if (objc != 4) { Tcl_WrongNumArgs(interp, 2, objv, "symbol value"); return TCL_ERROR; } Tcl_GetLongFromObj(interp,objv[3], &val); tcc_add_symbol(s,Tcl_GetString(objv[2]),val); return TCL_OK; #endif case TCLTCC_COMMAND: if (objc != 4) { Tcl_WrongNumArgs(interp, 2, objv, "tclname cname"); return TCL_ERROR; } |
︙ | |||
154 155 156 157 158 159 160 | 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 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 | - - + + - + - + + - + - + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - - - - + + + + + + + + + - - - - - - + + + + + + + + + - + - + - - - - + + + + - - - - - + + + + + - + | tcc_define_symbol(s,Tcl_GetString(objv[2]),Tcl_GetString(objv[3])); return TCL_OK; case TCLTCC_GET_SYMBOL: if (objc != 3) { Tcl_WrongNumArgs(interp, 2, objv, "symbol"); return TCL_ERROR; } |
Added tcc4tcl.syms.in version [98fca54777].
Renamed and modified
tcc.tcl
[b543309b89]
to tcc4tcl.tcl
[271b665fc7].
1 2 | 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 34 | - + - - + + - + - - + - - - - + | # tcc.tcl - library routines for the tcc wrapper (Mark Janssen) |
︙ | |||
53 54 55 56 57 58 59 | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 | - - + + - - - + - + - + - + - - + + - + - + - + - - - + - + - + - - + + - + - + - + - + - + - + | set tclcommand [join [lrange [split $cmd ,] 1 end] {}] set handle [lindex [split $cmd ,] 0] $handle command $tclcommand $cname } return } } |
︙ | |||
265 266 267 268 269 270 271 | 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 | - + - + - + - + | } if {$rtype != "ok"} {append cbody " return TCL_OK;" \n} #puts ----code:\n$code #puts ----cbody:\n$cbody list $code $cbody } |
︙ | |||
321 322 323 324 325 326 327 | 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 | - + | append cbody "Tcl_SetByteArrayObj(Tcl_GetObjResult(ip), (unsigned char*) script, $count);\n" append cbody "return TCL_OK;" "\n" set ns [namespace current] uplevel 1 [list ${ns}::ccommand $name {dummy ip objc objv} $cbody] return $name } #------------------------------------------------------------------- |
︙ | |||
365 366 367 368 369 370 371 | 357 358 359 360 361 362 363 364 365 366 367 368 369 370 | - + - - + + | append code "}" "\n" set ns [namespace current] uplevel 1 [list ${ns}::cc $code] Log "CREATING TCL COMMAND $procname / $cname" uplevel 1 [list $tcc(cc) command $procname $cname] unset tcc(cc) ;# can't be used for compiling anymore } |
Added test version [c72233bf30].