"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/host-ruby/main.cc" between
ragel-7.0.0.11.tar.gz and ragel-7.0.0.12.tar.gz

About: Ragel compiles executable finite state machines from regular languages (C, C++, Obj-C, C#, D, Java, Go and Ruby). Development version.

main.cc  (ragel-7.0.0.11):main.cc  (ragel-7.0.0.12)
skipping to change at line 25 skipping to change at line 25
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
* SOFTWARE. * SOFTWARE.
*/ */
#include "inputdata.h" #include "inputdata.h"
extern struct colm_sections rlhc; extern struct colm_sections rlparseRuby;
extern struct colm_sections rlhcRuby;
/* What are the appropriate types for ruby? */ /* What are the appropriate types for ruby? */
static HostType hostTypesRuby[] = static HostType hostTypesRuby[] =
{ {
{ "char", 0, "char", true, true, false, CHAR_MIN, CHAR_MAX, 0, 0, 1 }, { "char", 0, "char", true, true, false, CHAR_MIN, CHAR_MAX, 0, 0, 1 },
{ "int", 0, "int", true, true, false, INT_MIN, INT_MAX, 0, 0, 4 }, { "int", 0, "int", true, true, false, INT_MIN, INT_MAX, 0, 0, 4 },
}; };
const char *ruby_defaultOutFn( const char *inputFileName ) const char *defaultOutFnRuby( const char *inputFileName )
{ {
return fileNameFromStem( inputFileName, ".rb" ); return fileNameFromStem( inputFileName, ".rb" );
} }
static const HostLang hostLangRuby = { static const HostLang hostLangRuby =
"Ruby", {
"-R", hostTypesRuby,
(HostLang::Lang)-1, 2,
hostTypesRuby, 2, 0,
hostTypesRuby+0,
false, false,
true, false, /* loopLabels. */
"ruby",
&ruby_defaultOutFn,
&makeCodeGen,
Translated, Translated,
VarFeature BreakFeature,
&makeCodeGen,
&defaultOutFnRuby,
&genLineDirectiveTrans
}; };
int main( int argc, const char **argv ) int main( int argc, const char **argv )
{ {
InputData id( &hostLangRuby, &rlhc ); InputData id( &hostLangRuby, &rlparseRuby, &rlhcRuby );
return id.rlhcMain( argc, argv ); return id.rlhcMain( argc, argv );
} }
 End of changes. 6 change blocks. 
14 lines changed or deleted 14 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)