aboutsummaryrefslogtreecommitdiffstats
path: root/eval.c
Commit message (Collapse)AuthorAgeFilesLines
* require C89 and set _XOPEN_SOURCE=700 when compilingpowwow@askgustav.com2019-04-231-5/+7
|
* remove some non-ANSI C supportpowwow@askgustav.com2019-04-231-147/+147
|
* Fixes operator . (dot) which didn't check for valid index range. (Elestir)Steve Slaven2006-01-311-1/+2
|
* This fixes a tiny memory leak caused by not freeing the copySteve Slaven2005-10-271-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | of a variable if used in a comparison on the left side, valgrind output: ==10477== 10 bytes in 1 blocks are definitely lost in loss record 3 of 45 ==10477== at 0x1B90459D: malloc (vg_replace_malloc.c:130) ==10477== by 0x806B08A: ptrdup2 (ptr.c:65) ==10477== by 0x806B121: ptrdup (ptr.c:80) ==10477== by 0x805C503: exe_op (eval.c:675) ==10477== by 0x805DDCF: compare_and_unload (eval.c:1279) ==10477== by 0x805DFBA: _eval (eval.c:1322) ==10477== by 0x805E0D4: eval_any (eval.c:1362) ==10477== by 0x805E43C: evall (eval.c:1446) ==10477== by 0x8052514: cmd_if (cmd.c:1884) ==10477== by 0x806536E: parse_commands (main.c:1769) ==10477== by 0x8065119: parse_instruction (main.c:1709) ==10477== by 0x806525F: parse_user_input (main.c:1735) test file: #( "Don't save the config file every time" ) #file = #if ($foo > "ho" ) #print Dwarves #if ($foo > "ho" ) #print Dwarves #if ($foo > "ho" ) #print Dwarves
* Internally renamed some option flags to match their #opt counterparts:Steve Slaven2005-03-211-2/+2
| | | | | | | | | echo_int => opt_info echo_key => opt_keyecho echo_ext => opt_echo As per the 1.2.6-dain patch
* Convert all `' to "" as per the powwow-1.2.6-dain patch. Note I did not applySteve Slaven2005-03-211-1/+1
| | | | | | the patch since 1.2.7 has some differences to 1.2.5 with regard to command handling and things, so I'm applying the diff parts by hand mostly
* Initial revisionv1.2.7Steve Slaven2005-03-121-0/+1450