155 Commits (c7e3ad29e95c65db7a4b0798c041f8df33f93c22)

Author SHA1 Message Date
Peter Johnson 29f7d9a917 New function: expr_get_symrec(). 24 years ago
Peter Johnson d6d0cb8785 Add symrec_delete() for deleting non-table symbols. Use it from expr_delete(). 24 years ago
Peter Johnson 8178f883a5 Modify so that almost everything passes LCLint with the options in lclint.sh. 24 years ago
Peter Johnson fc603c2900 Add RCSID(). 24 years ago
Peter Johnson 424c30fdaa Allow symrec_foreach return value to be ignored (in lclint). 24 years ago
Peter Johnson 4df0191de8 lclint-ize gettext(). 24 years ago
Peter Johnson 9f97bcd9d0 Fix some nits found by lclint. Still something weird going on with list2 in 24 years ago
Peter Johnson 21eb7c7fe2 Add some lclint annotations. 24 years ago
Peter Johnson d7fe402fb9 Split away x86-specific parts of expression handling (eg, effective address -> 24 years ago
Peter Johnson f58d7cb093 Split x86-specific stuff away from bytecode. 24 years ago
Peter Johnson c9d92847b6 Start framework for separating architecture-dependent functions and data 24 years ago
Peter Johnson a7ac50c918 Add coretype.h, make util.h do a lot more, use util.h to simplify include 24 years ago
Peter Johnson 405df52913 bytecode_print(): Change how NULL values are output for imm and multiple. 24 years ago
Peter Johnson 665eddf5d7 Conditional x* prototypes on !DMALLOC (as they're defined by dmalloc.h if 24 years ago
Peter Johnson 79e945c33c Optimize expression building a bit in expr_new() by eliminating IDENT's here. 24 years ago
Peter Johnson ad7cbcea04 Add memory expressions tests (checkea). 24 years ago
Peter Johnson 00788fa80c Fix errors found in expr_level_op() and checkea_calc_displen() by new test 24 years ago
Peter Johnson 94730125be Missed a free->xfree conversion. 24 years ago
Peter Johnson 10fa8fadc1 Correctly process 32-bit memory expressions in expr_checkea(). 24 years ago
Peter Johnson 305b471f51 On xfree(NULL), just return instead of triggering InternalError(). 24 years ago
Peter Johnson 4d95de5161 Plug memory leaks, and enhance finding later ones with *_delete functions. 24 years ago
Peter Johnson dc1c3c70f5 Get rid of all the extra filename strdup()'s. (Bug #14). 24 years ago
Peter Johnson 7a6eaf8c03 Make InternalError() a bit easier to call. Also, reverse its file and line 24 years ago
Peter Johnson 6f708e3034 Add xfree() to replace calls to free(). 24 years ago
Peter Johnson adf5a95e89 Add option for malloc debugging using dmalloc library (http://dmalloc.com/). 24 years ago
Peter Johnson 21c598f9f8 Put in temporary implementations of ErrorAt() and WarningAt(). 24 years ago
Peter Johnson e7bab50cf2 Parse NOSPLIT. 24 years ago
Peter Johnson 121f93b0a0 *COMPLETELY* rewrite most of expression handling. 24 years ago
Peter Johnson 0a98a74163 Add mergesort() replacement from BSD sources. 24 years ago
Peter Johnson cdcf358af1 RCSID() breaks under DJGPP because of "__unused". Removing __unused shouldn't 24 years ago
Peter Johnson e640f25da5 Update comment on disp.len to match changes in expr.c. 24 years ago
Peter Johnson 43c736c2d8 Add parser finalization check for undefined symbols. 24 years ago
Peter Johnson e170a2f8b3 Add symrec_get_visibility(). 24 years ago
Peter Johnson 6ac7d95579 Call expr_expand_equ() on effective address from bytecode_parser_finalize(). 24 years ago
Peter Johnson 6a7504341f Add _copy() constructor. 24 years ago
Peter Johnson 0be7a0d444 Add first version of post-parsing bytecode finalization. Lots of work still 24 years ago
Peter Johnson 68c9dcc62c Add several major functions, including effective address ModRM calculation 24 years ago
Peter Johnson a83fc9c8f6 Change order of arguments for get_ and check_ functions to better match other 24 years ago
Peter Johnson c6d051a5f2 Allow both signed and unsigned interpretations for get_int and check_size. 24 years ago
Peter Johnson df1245459f Add parsing of memory expressions. Currently adds a lot of duplication for 24 years ago
Peter Johnson 8149291eca Add expr_contains_float() and symrec_get_equ() functions. These are the first 24 years ago
Peter Johnson 053329a368 Clarify and fix some usages of valid/need flags for modrm and sib bytes. 24 years ago
Peter Johnson 84de990744 Support TIMES prefix. Split expr parsing to have a no-float and no-string 24 years ago
Peter Johnson 57a746069d Remove NULL return checks; BitVector uses xmalloc(), so they aren't necessary. 24 years ago
Peter Johnson 193392dcb6 Fix LOTS of little nits. Primary changes: 24 years ago
Peter Johnson 2e04b1830a Add BitVector_from_Oct() and tests for it. 24 years ago
Peter Johnson 6e4b87ab46 Change comment to include im_ptr in list of things that cannot be reused or 24 years ago
Peter Johnson 217b33802c Make data.insn.imm within bytecode a pointer. This prevents leakage in calls to 24 years ago
Peter Johnson fef39125bc Use xmalloc() instead of malloc(). 24 years ago
Peter Johnson c49daeab12 Move SymStatus and SymType to symrec.c from symrec.h. They're only used 24 years ago