search for: optiontype

Displaying 3 results from an estimated 3 matches for "optiontype".

2009 Jan 02
0
[LLVMdev] TableGen crash
...const char* Indent, const std::string& NewName, std::ostream& O) { const std::string& Name = NewName.empty() ? ("-" + D.Name) : NewName; switch (D.Type) { case OptionType::Switch: O << Indent << "vec.push_back(\"" << Name << "\");\n"; break; case OptionType::Parameter: O << Indent << "vec.push_back(\"" << Name << "\");\n"; O << Indent &...
2007 Apr 11
2
Patch for ini plugin
...dio.h> #include <stdlib.h> #include <string.h> @@ -895,7 +854,6 @@ iniSaveOptions (CompDisplay *d, while (nOption--) { status = FALSE; - strVal = strdup (""); int i; switch (option->type) @@ -907,8 +865,11 @@ iniSaveOptions (CompDisplay *d, case CompOptionTypeColor: case CompOptionTypeMatch: strVal = iniOptionValueToString (&option->value, option->type); - if (strVal[0] != '\0') + if (strVal) + { fprintf (optionFile, "%s=%s\n", option->name, strVal); + free (strVal); + } else fprintf (optionFi...
2011 Sep 04
3
rspec assert inclusion in..
hello, I would like to assert that an attribute of a model has value among those in an array. How would I do it in rspec? Something like this... describe OptionType do context "shoulda validations" do it { assert_contains :type, [''Type1'', ''Type1'']} end end