Skip to content

Commit 7eda363

Browse files
committed
CS 7.01 fix to topic $_ vars
1 parent 086fef9 commit 7eda363

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+318
-81
lines changed

BINARIES/LinuxChatScript64

1.67 KB
Binary file not shown.

BINARIES/chatscript.exe

5.5 KB
Binary file not shown.

BINARIES/chatscriptpg.exe

5 KB
Binary file not shown.

RAWDATA/ONTOLOGY/concepts.top

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1311,7 +1311,7 @@ concept: ~mythical_creatures PROBABLE_NOUN (abominable_snowman Achilles Aegist
13111311
Grim_Reaper gryphon halcyon Halcyon Harpy harpy Hector Helen Helen_of_Troy hellhound Heracles Herakles Hercules Hero hero hippogriff hobbit hobgoblin houri Humpty_Dumpty Hydra
13121312
hydra Hyperborean hypothetical_creature Icarus imaginary_creature~1 Iphigenia Jack_Frost jackalope Jason Jocasta Jotun Jotunn King_Oedipus Kraken kraken Kriss_Kringle Laertes
13131313
Laius Laocoon Leander Leda legendary_creature Leviathan leviathan Lich Lizard_Man Loch_Ness_monster Loch_Nness_monster loup-garou lycanthrope Mammon mandrake mantichora manticora
1314-
manticore mantiger Martian Maxwell_'s_demon Medea medusa Medusa Menelaus mermaid merman Midas Mimir Minotaur monster Myrmidon mythical_being mythical_creature mythical_creature~1
1314+
manticore mantiger Martian Maxwell_'s_demon Medea Medusa Menelaus mermaid merman Midas Mimir Minotaur monster Myrmidon mythical_being mythical_creature mythical_creature~1
13151315
mythical_monster Narcissus Nemean_lion Nessie Nibelung Niobe Odysseus Oedipus Oedipus_Rex ogre ogress Orestes Orion Orpheus Pandora Paris Patroclus Pegasus Peleus Penelope
13161316
Perseus phoenix Priam Procrustes Psyche psychopomp Pygmalion pythoness Reaper Remus robot roc Romulus Saint_Nicholas Saint_Nick salamander sand_worm Santa Santa_Claus Sarpedon
13171317
Sasquatch Scylla sea_serpent shambler shoggoth Siegfried Sigurd Siren Sisyphus Sita snowman Sphinx St_._Nick Stentor Stheno sylph Tantalus Theseus Tiresias troll Ulysses unicorn
@@ -2016,7 +2016,7 @@ concept: ~weapon_ammo (ammo ammunition arrow ball banderilla BB BB_shot bird_sho
20162016
grapeshot musket_ball pellet projectile quarrel rifle_ball round_shot rubber_bullet shot slug spitball )
20172017
concept: ~weapon_biological (aflatoxin anthrax_bacillus Bacillus_anthracis bioarm biological_weapon bioweapon botulin botulinus_toxin botulismotoxin clostridium_perfringens staphylococcal_enterotoxin_B )
20182018
concept: ~weapon_future (blaster disruptor freeze_ray laser_sword phaser ray_gun raygun shrink_ray )
2019-
concept: ~weapon_magical (Medusa_'s_head wand wizard_staff )
2019+
concept: ~weapon_magical ("Medusa's head" wand wizard_staff )
20202020
concept: ~weapon_massdestruction (~weapon_biological ~weapon_nuclear W.M.D. weapon_of_mass_destruction~1 WMD )
20212021
concept: ~weapon_medieval (arrow axe ballista battering_ram blade blowgun bludgeon bokken boomerang bow bow_and_arrow broadsword catapult club crossbow cudgel Cupid_'s_bow cupid_bow
20222022
dagger Excalibur flameberge flintlock grappling_hook halberd handbow harpoon javelin katana katar knife lance longbow longsword mace medieval_weapon medieval_weaponry morning_star

SRC/common.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _MAXH_
22
#define _MAXH_
33
#ifdef INFORMATION
4-
Copyright (C) 2011-2016 by Bruce Wilcox
4+
Copyright (C) 2011-2017 by Bruce Wilcox
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
77
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -15,7 +15,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
1515
#endif
1616

1717
#define DISCARDDICTIONARYBUILD 1
18-
#define SEPARATE_STRING_SPACE 1
1918

2019
// These can be used to shed components of the system to save space
2120
//#define DISCARDSERVER 1
@@ -32,7 +31,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
3231
#define DISCARDMYSQL 1
3332

3433
#ifdef LOEBNER
35-
#undef SEPARATE_STRING_SPACE
3634
#define DISCARDSERVER 1
3735
#define DISCARDSCRIPTCOMPILER 1
3836
#define DISCARDTESTING 1
@@ -51,7 +49,6 @@ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
5149
#define DISCARDPOSTGRES 1
5250
#define DISCARDMONGO 1
5351
//#undef DISCARDDICTIONARYBUILD // only a windows version can build a dictionary from scratch
54-
//#undef SEPARATE_STRING_SPACE
5552
//#define TREETAGGER 1
5653

5754
#elif IOS

SRC/constructCode.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@ static void TestIf(char* ptr,FunctionResult& result,char* buffer)
5757
char word1val[MAX_WORD_SIZE];
5858
char word2val[MAX_WORD_SIZE];
5959
ptr = ReadCompiledWord(ptr,buffer);
60+
realCode = ptr;
6061
result = HandleRelation(word1,op,buffer,true,id,word1val,word2val);
62+
realCode = 0;
6163
ptr = ReadCompiledWord(ptr,op); // AND, OR, or )
6264
}
6365
else // existence of non-failure or any content
@@ -215,7 +217,7 @@ char* HandleIf(char* ptr, char* buffer,FunctionResult& result)
215217
TestIf(ptr+2,result,buffer);
216218
if (!(result & ENDCODES)) strcpy(buffer,"true");
217219
else strcpy(buffer,"false");
218-
ChangeDepth(-1,"^if");
220+
ChangeDepth(-1,"^if",true);
219221
*buffer = 0;
220222
}
221223
if (trace & TRACE_OUTPUT && CheckTopicTrace())

SRC/constructCode.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef _CONSTRUCTCODEH_
22
#define _CONSTRUCTCODEH_
33
#ifdef INFORMATION
4-
Copyright (C) 2011-2016 by Bruce Wilcox
4+
Copyright (C) 2011-2017 by Bruce Wilcox
55

66
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
77
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

SRC/csocket.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#ifdef INFORMATION
2-
Copyright (C) 2011-2016 by Bruce Wilcox
2+
Copyright (C) 2011-2017 by Bruce Wilcox
33

44
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
55
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

SRC/dictionarySystem.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -614,9 +614,6 @@ void InitDictionary()
614614

615615
// dictionary and meanings and strings share space, running from opposite ends of a common pool
616616
size_t size = (size_t)(sizeof(WORDENTRY) * maxDictEntries);
617-
#ifndef SEPARATE_STRING_SPACE
618-
size += maxHeapBytes;
619-
#endif
620617
size /= sizeof(WORDENTRY);
621618
size = (size * sizeof(WORDENTRY)) + sizeof(WORDENTRY);
622619
size /= 64;
@@ -646,10 +643,6 @@ void InitDictionary()
646643
#endif
647644
memset(dictionaryBase,0,size);
648645
dictionaryFree = dictionaryBase + maxHashBuckets + HASH_EXTRA ; // prededicate hash space within the dictionary itself
649-
#ifndef SEPARATE_STRING_SPACE
650-
heapBase = heapFree = ((char*)dictionaryBase) + size; // the end of the allocated space
651-
stackFree = ((char*)dictionaryBase) + size - maxHeapBytes;
652-
#else
653646
size = maxHeapBytes / 64;
654647
size = (size * 64) + 64; // 64 bit align both ends
655648
heapEnd = ((char*) malloc(size)); // point to end
@@ -660,7 +653,6 @@ void InitDictionary()
660653
}
661654
heapFree = heapBase = heapEnd + size; // allocate backwards
662655
stackFree = heapEnd;
663-
#endif
664656
minStringAvailable = maxHeapBytes;
665657
stackStart = stackFree;
666658
// The bucket list is threaded thru WORDP nodes, and consists of indexes, not addresses.

SRC/dictionarySystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#define _DICTIONARYSYSTEM_H
33

44
#ifdef INFORMATION
5-
Copyright (C) 2011-2016 by Bruce Wilcox
5+
Copyright (C) 2011-2017 by Bruce Wilcox
66

77
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal
88
in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell

0 commit comments

Comments
 (0)