Commit Graph

  • 09ff52cdc0 One additional fix which allows "gds write" to continue after a cell is found to be missing, if "gds allow undefined" has been set. Tim Edwards 2025-02-15 13:49:14 -05:00
  • 41d77558b7 Fixed an error in which using the command option "gds allow undefined" will cause a segmentation fault. Tim Edwards 2025-02-15 13:43:01 -05:00
  • df84a36659 Added code to handle the case where GDS_FILE points to a filename that has since been compressed and given a ".gz" extension. Removed code that uses a system call to "gunzip" and "gzip" when the target file is compressed, since the compression is handled in the code. 8.3.519 Tim Edwards 2025-02-12 16:28:43 -05:00
  • 38b3d53b5f Modified the behavior of "select area subcell" so that it no longer requires that subcells be unexpanded in order to select them. This seems to be more in line with what one would expect from the documented description of the "select area" command, and more in line with common-sense expectations. 8.3.518 Tim Edwards 2025-02-09 14:51:40 -05:00
  • cd80d38d52 Fixed a rather long-standing error, which is that when scaling of "MASK_HINTS" was implemented, it was put into a routine that scales all coordinate-related properties, including "FIXED_BBOX", but the original code that scaled only "FIXED_BBOX" was never removed, resulting in the bounding box getting incorrectly scaled twice by any grid scaling. Tim Edwards 2025-02-09 12:48:22 -05:00
  • 619191c6dd Corrected a crash condition caused by yesterday's commit, if the new CIF operator is used in a tech file. Reworked yesterday's commit to add more related operators, so there are now four new ones (also renamed them): interacting, noninteracting, overlapping, and nonoverlapping. "interacting" now means overlapping or touching; so the four cases allow all variations of adjacency between the two material types. 8.3.517 Tim Edwards 2025-02-05 14:49:32 -05:00
  • a5653c8fca Added a new CIF operator "not-interact" which is complementary to "interact", because it was trivially easy to implement and saves processing vs. doing the same thing with two templayers and an "and-not" operator. 8.3.516 Tim Edwards 2025-02-04 20:43:30 -05:00
  • 21b810b375 Added a new CIF operator "interact" which enumerates disjoint regions of a given type and retains only those regions which interact with (overlap) another given type. Both sets of types can be either magic database types or CIF temp layers. This will allow the implementation of rules that were not previously possible. Tim Edwards 2025-02-04 17:21:26 -05:00
  • 72368a3d13 Added a fallback method for "extresist" whenever a device terminal connection to a net that has been decomposed into a resistor array cannot be found. This indicates some fundamental error in the way extresist works. However, it should not be producing an invalid and unsimulatable netlist. Instead, it makes an arbitrary connection from the device terminal to the resistor array and adds an entry in the output netlist (.res.ext file). This results in a poor representation of the resistor network to that terminal, but an otherwise simulatable netlist. A warning is issued to note that an arbitrary connection has been made. This is most typically a "garbage in, garbage out" situation in which insufficient information exists in a layout to inform magic on which direction current is traveling through a net. However, it should be possible to rewrite the extresist code so that magic makes somewhat informed decisions about current paths and produces a halfway decent representation of the actual net, instead of just giving up on the detailed extraction. 8.3.515 Tim Edwards 2025-01-15 10:38:10 -05:00
  • 4445663cb1 Modified a routine to return a valid string when attempting to generate a name for an instance that is set to NULL. It is not clear to me by an instance would have a NULL name, but apparently it can happen, and should not crash magic. 8.3.514 Tim Edwards 2025-01-12 17:36:05 -05:00
  • 1cec414618 Added the contents of the "readline" module back. This is generally unused, as it is incompatible with the Tcl/Tk build of magic. However, I had not intended to remove it, only move the name from "readline-4.3" to "readline". But "readline/readline" was in .gitignore, which caused the contents to be removed from the repository. This commit restores those files, and also prevents the readline directory Makefile from making a symbolic link called "readline" to itself, which was causing compile-time issues. The readline code is only kept for backwards compatibility with ancient versions of magic not using the Tcl/Tk interpreter. 8.3.513 Tim Edwards 2025-01-10 09:58:57 -05:00
  • 82a1dc98b4 Updated the version to go along with the merge of pul request Tim Edwards 2025-01-10 09:21:28 -05:00
  • cb2a79d6b1 gcc: support -Werror=format-security Mamoru TASAKA 2025-01-10 14:19:52 +09:00
  • 2afa222414 Updated the version number to go along with the merge of several pull requests from Darryl Miles. 8.3.512 Tim Edwards 2025-01-07 14:02:58 -05:00
  • f010d4d20b resis.h: create RESTRUE to replace use of TRUE macro ((bool)1) Darryl L. Miles 2025-01-06 17:28:55 +00:00
  • 4887f71ca3 CIFread.h: fix struct cifrstyle.crs_layers type bool -> enum (unsigned char) Darryl L. Miles 2025-01-06 17:22:41 +00:00
  • b1a9e10be7 feat: quit [exit_status], option support Darryl L. Miles 2024-10-08 08:58:20 +01:00
  • faadb774b4 docs: quit -noprompt Darryl L. Miles 2024-10-08 08:51:28 +01:00
  • b694827bcb feat: flush [-noprompt], option support Darryl L. Miles 2024-10-08 08:46:19 +01:00
  • cfdd50aa63 Revert "commands/CmdFI.c: added CmdFlush_NoConfirm option to disable flush prompt" Darryl L. Miles 2025-01-03 09:07:29 +00:00
  • 3fc1c7e452 gcc11 -Wall -Wpedantic document for the next person Darryl L. Miles 2025-01-06 16:33:22 +00:00
  • 065f31f689 gcc11 -Wall -Wpedantic cleanup (post __attribute__ DLONG_PREFIX) Darryl L. Miles 2025-01-06 16:27:10 +00:00
  • 6afadf9809 gcc11 -Wall -Wpedantic cleanup (post __attribute__) Darryl L. Miles 2025-01-06 16:25:38 +00:00
  • 48c99a7b1d gcc11 -Wall -Wpedantic cleanup (post TCL9) FUN2CD() CD2FUN() Darryl L. Miles 2025-01-06 16:25:15 +00:00
  • c21e182b2c gcc11 -Wall -Wpedantic cleanup (post TCL9) Darryl L. Miles 2025-01-06 16:24:57 +00:00
  • aa5ddbaa58 database/database.h.in: const PaintResultType *resultTbl Darryl L. Miles 2025-01-06 16:24:02 +00:00
  • 7e9d4cc15e ihash.c: cleanup warning use of void* with pointer arithmetic Darryl L. Miles 2025-01-06 16:21:22 +00:00
  • 60c64db33a extflat: K&R various converted to ANSI (mainly due to bool use) Darryl L. Miles 2025-01-06 16:18:41 +00:00
  • ff9487de1f hash.c: K&R conversion to ANSI and constify arguments / callback Darryl L. Miles 2025-01-06 16:15:58 +00:00
  • d9cfd64d60 utils/*.c: K&R conversion to ANSI Darryl L. Miles 2025-01-06 16:14:34 +00:00
  • 07f9bbe1fb gcc11 -Wall -Wpedantic cleanup Darryl L. Miles 2025-01-06 16:12:11 +00:00
  • 3df2aaaa16 Modified the code in ext2spice.c that prints parameter values; the former code attempted to determine the precision and generate an output without unnecessary trailing zeros. Unfortunately there were counterexamples that fail to be formatted correctly, as found by Mark Martin, and which generate output that has roundoff error. Reimplemented the method using code found on StackOverflow, which appears to solve the problem more robustly. 8.3.511 Tim Edwards 2025-01-06 11:49:29 -05:00
  • 32138ccbc7 Modified some lines in tkcon.tcl that make it compatible with both Tcl 8.6 and Tcl 9.0, fixing some features that got broken with an attempt to update the script for version 9.0. 8.3.510 Tim Edwards 2025-01-04 14:09:58 -05:00
  • e334fb919f Updating the revision number to go along with the merging of a series of pull requests from Darryl Miles. Tim Edwards 2025-01-04 11:45:11 -05:00
  • af5b7f10cf lef/defWrite.c: reworked kareefardi_fix-def-write Darryl L. Miles 2024-10-08 04:49:24 +01:00
  • a6aac9c309 fix infinite def write Kareem Farid 2024-07-30 12:21:36 +03:00
  • efcf36f348 Remove superfluous parenthesis around regular type declarations Darryl L. Miles 2025-01-03 10:38:14 +00:00
  • 1241e95dab debug/debug.c: constify and add prototype Darryl L. Miles 2024-10-12 13:57:08 +01:00
  • 195dda1e06 debug/hist.c: constify and add prototype Darryl L. Miles 2024-10-12 13:57:08 +01:00
  • eb89ab181c debug: use 'const' with 'rcsid' Darryl L. Miles 2024-10-12 13:57:08 +01:00
  • 0376430702 command: use 'const' with readonly data Darryl L. Miles 2024-10-04 12:10:59 +01:00
  • 5c410e9dcb command: use 'const' with 'rcsid' Darryl L. Miles 2024-10-04 12:09:00 +01:00
  • 6b4d409d74 cmwind: use 'const' with readonly data Darryl L. Miles 2024-10-04 11:33:56 +01:00
  • 34038ee687 cmwind: use 'const' with 'rcsid' Darryl L. Miles 2024-10-04 11:28:46 +01:00
  • ac56dd71a9 cif: use 'const' with readonly data (also consumer DBpaint) Darryl L. Miles 2024-10-04 11:42:25 +01:00
  • 4e768d5a3d CIFrdpoly.c: qsort 'compar' function argument prototype fix Darryl L. Miles 2024-10-04 11:38:42 +01:00
  • b6775f902b cif: use 'const' with 'rcsid' Darryl L. Miles 2024-10-04 11:37:02 +01:00
  • a616dbc113 calma: use 'const' with 'rcsid' Darryl L. Miles 2024-10-04 11:19:10 +01:00
  • 4cd1235575 calma: use 'const' with readonly data Darryl L. Miles 2024-10-04 11:19:10 +01:00
  • 378755e083 CalmaRdpt.c: simplfy use of sprintf() Darryl L. Miles 2024-10-04 11:19:10 +01:00
  • 46eb71491c GHA: MacOS maintenance update Darryl L. Miles 2025-01-03 09:08:14 +00:00
  • 3f85689985 cif/CIFgen.c: fix incorrect type bool -> int Darryl L. Miles 2025-01-03 09:06:09 +00:00
  • 76a515ca25 HACK tkcon.tcl to get it running Darryl L. Miles 2024-10-21 09:30:16 +01:00
  • c2a5a84a03 Revert "TCL9: *.tcl changes $::tcl_platform" Darryl L. Miles 2024-10-21 09:28:34 +01:00
  • 7e5d0b0688 TCL9: FIXME OPTIONAL magic.h ClientData Darryl L. Miles 2024-10-21 09:26:25 +01:00
  • 3931c4aff1 TCL9: *.tcl changes $::tcl_platform Darryl L. Miles 2024-10-21 09:24:29 +01:00
  • 272dda3c84 TCL9: TxResetTerminal(bool force) added arguments Darryl L. Miles 2024-10-21 09:23:41 +01:00
  • c339e9b845 TCL9: CmdLQ.c Tcl_AppendResult(... (char*)NULL) cast sentinal Darryl L. Miles 2024-10-21 09:22:24 +01:00
  • 4a32a82841 TCL9: Tcl_GetIntFromObj() call checked Darryl L. Miles 2024-10-21 09:21:11 +01:00
  • 661b66a143 TCL9: Tcl_InitStubs(version="9.0") Darryl L. Miles 2024-10-21 09:19:15 +01:00
  • 77a7afc8e2 TCL9: Tcl_SetExitProc() API was removed Darryl L. Miles 2024-10-21 09:15:47 +01:00
  • 0ce8265570 TCL9: ClientData macro assignment and access usage Darryl L. Miles 2024-10-21 09:13:23 +01:00
  • 79f2ab0f4b TCL9: ClientData macro header file changes Darryl L. Miles 2024-10-21 09:12:57 +01:00
  • 17fe81107a TCL9: plugin createProc() function signature change ImgLayerCreate() Darryl L. Miles 2024-10-21 09:10:46 +01:00
  • db7a1fe20a TCL9: Tk_ConfigureWidget() function signature change Darryl L. Miles 2024-10-21 09:10:00 +01:00
  • e81ead5ad2 TCL9: Tcl_Size type introduction Darryl L. Miles 2024-10-21 09:07:16 +01:00
  • 33b9c63c41 TCL9: Tcl_xxxxxxx() API changes around Tcl_SaveResult() Darryl L. Miles 2024-10-21 09:04:38 +01:00
  • e27b8a9d19 TCL9: CONST84 removal (all current compilers support const keyword) Darryl L. Miles 2024-10-21 09:04:37 +01:00
  • 2066077c4e TCL9: CONST removal (all current compilers support const keyword) Darryl L. Miles 2024-10-21 09:03:27 +01:00
  • d999e20b73 TCL9: Tk_Offset() macro removal Darryl L. Miles 2024-10-21 09:00:44 +01:00
  • 60463e31be TCL9: _ANSI_ARGS_ compatibility macro removal Darryl L. Miles 2024-10-21 09:00:21 +01:00
  • 93c16c8431 TCL9: magic.h ClientData type change helper macros Darryl L. Miles 2024-10-21 09:00:00 +01:00
  • a756fe08bd ext2spice.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:46:02 +01:00
  • 6520aa19a3 extflat.h: efReadError() printf ATTR_FORMAT_PRINTF_1 Darryl Miles 2024-10-20 13:41:23 +01:00
  • 2bac418b44 EFerr.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:40:54 +01:00
  • 8c28342322 ext2hier.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:37:40 +01:00
  • 6d0dca2551 ext2sim.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:37:30 +01:00
  • fd5511d622 DRCtech.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:37:19 +01:00
  • c4373d74aa LIBtextio.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:35:53 +01:00
  • ff73a1328f txOutput.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:35:04 +01:00
  • 0259fdc990 tclmagic.c: printf style constify fmt call-site Darryl Miles 2024-10-20 13:34:42 +01:00
  • 5770da2abd geometry.c: TxError() constify call-site Darryl L. Miles 2024-10-10 20:11:37 +01:00
  • 1aee10ef4d utils/magic.h: ANALYSER_xxxxxxxxxx __attribute__ Darryl Miles 2024-10-14 14:10:21 +01:00
  • 2fcd024bdb utils/magic.h: ATTR_SENTINEL __attribute__ ((sentinel)) Darryl Miles 2024-10-14 13:58:38 +01:00
  • 91bb9935f9 grOGL1.c: use ATTR_UNREACHABLE to help analyser Darryl L. Miles 2024-10-04 20:31:26 +01:00
  • c8974ed2ec utils/main.h: MainExit() add ATTR_NORETURN hint Darryl L. Miles 2024-10-04 20:29:15 +01:00
  • 31d7130833 utils/magic.h: ATTR_UNREACHABLE ATTR_NORETURN Darryl L. Miles 2024-10-04 20:07:03 +01:00
  • fc02f57d73 magic.h: add macro __unused__ Darryl L. Miles 2024-10-04 11:19:10 +01:00
  • bf96348502 printf: vararg functions use 'const' for format string Darryl Miles 2024-10-03 22:47:50 +01:00
  • 94ec5cf98f printf: use compiler __attribute__((format (printf,fff,aaa))) Darryl Miles 2024-10-03 22:35:26 +01:00
  • f80540af46 Applied patch from Darryl Miles that prevents a segfault on an error in "extresist". The underlying error still exists and causes a "Bad Device" error but no longer crashes magic. See github Issue #353. 8.3.509 Tim Edwards 2024-12-26 16:39:23 -05:00
  • df19d62f51 Corrected code in DBtpaint2.c handling the setup of paint/erase tables for contacts, where an error was pointed out by Darryl Miles (github issue #339). Tim Edwards 2024-12-26 16:28:43 -05:00
  • 8371d797ad Revised some code from PR#352 in response to questions from Darryl Miles. Updated the version number to go along with the merge of a number of pull requests done today. Tim Edwards 2024-12-26 15:29:54 -05:00
  • 55d15ffaa5 extflat/EFdef.c: hash constify freeMalloc() constness cast Darryl L. Miles 2024-10-10 20:24:01 +01:00
  • a11352970f dbwind/DBWelement.c: constify args to AppendFlag/AppendString Darryl L. Miles 2024-10-21 14:31:50 +01:00
  • bbc52ecd41 util/hash.c: fix use after free (not quite) Darryl L. Miles 2024-10-04 11:19:10 +01:00
  • fadd2d98b4 irouter/irCommand.c: fix SetNoisyDI() usage Darryl L. Miles 2024-10-12 09:31:36 +01:00
  • fd5050b2b5 util/lookup*.c: fix integer pointer arithmetic not using pointertype Darryl L. Miles 2024-10-10 20:23:52 +01:00
  • f22ecda44a set.c: SetNoisyBool() constify and add prototype Darryl L. Miles 2024-10-12 09:27:45 +01:00
  • 2b69b07860 set.c: SetNoisyDI() constify and add prototype Darryl L. Miles 2024-10-12 09:27:30 +01:00