diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-09-01 15:58:53 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-09-01 20:10:06 -0700 |
commit | a49bc41365bf6b4f0c006c5fbdcb4b519634c42c (patch) | |
tree | 664075c7652dfe7eb75cfdb6c54e7b226215bc2d /subx/035labels.cc | |
parent | 6ff9ce26e84f686a96ada723f63ce95879216cca (diff) | |
download | mu-a49bc41365bf6b4f0c006c5fbdcb4b519634c42c.tar.gz |
4531 - automatically compute segment addresses
Diffstat (limited to 'subx/035labels.cc')
-rw-r--r-- | subx/035labels.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/subx/035labels.cc b/subx/035labels.cc index 0d366d2e..659e4391 100644 --- a/subx/035labels.cc +++ b/subx/035labels.cc @@ -18,16 +18,6 @@ //: be a single character long. 'a' is not a hex number, it's a variable. //: Later layers may add more conventions partitioning the space of names. But //: the above rules will remain inviolate. -bool is_number(const string& s) { - if (s.at(0) == '-') return true; - if (isdigit(s.at(0))) return true; - return SIZE(s) == 2; -} -:(before "End Unit Tests") -void test_is_number() { - CHECK(!is_number("a")); -} -:(code) void check_valid_name(const string& s) { if (s.empty()) { raise << "empty name!\n" << end(); |