"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/host-csharp/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 rlparseCSharp;
extern struct colm_sections rlhcCSharp;
/* /*
* C# * C#
*/ */
const char *csharp_defaultOutFn( const char *inputFileName ) const char *defaultOutFnCSharp( const char *inputFileName )
{ {
const char *ext = findFileExtension( inputFileName ); const char *ext = findFileExtension( inputFileName );
if ( ext != 0 && strcmp( ext, ".rh" ) == 0 ) if ( ext != 0 && strcmp( ext, ".rh" ) == 0 )
return fileNameFromStem( inputFileName, ".h" ); return fileNameFromStem( inputFileName, ".h" );
else else
return fileNameFromStem( inputFileName, ".cs" ); return fileNameFromStem( inputFileName, ".cs" );
} }
HostType hostTypesCSharp[] = HostType hostTypesCSharp[] =
{ {
skipping to change at line 53 skipping to change at line 54
{ "byte", 0, "byte", false, true, false, 0, 0, 0, UCHAR_MAX, 1 }, { "byte", 0, "byte", false, true, false, 0, 0, 0, UCHAR_MAX, 1 },
{ "short", 0, "short", true, true, false, SHRT_MIN, SHRT_MAX, 0, 0, 2 }, { "short", 0, "short", true, true, false, SHRT_MIN, SHRT_MAX, 0, 0, 2 },
{ "ushort", 0, "ushort", false, true, false, 0, 0, 0, USHRT_MAX, 2 }, { "ushort", 0, "ushort", false, true, false, 0, 0, 0, USHRT_MAX, 2 },
{ "char", 0, "char", false, true, true, 0, 0, 0, USHRT_MAX, 2 }, { "char", 0, "char", false, true, true, 0, 0, 0, USHRT_MAX, 2 },
{ "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 },
{ "uint", 0, "uint", false, true, false, 0, 0, 0, UINT_MAX, 4 }, { "uint", 0, "uint", false, true, false, 0, 0, 0, UINT_MAX, 4 },
{ "long", 0, "long", true, true, false, LONG_MIN, LONG_MAX, 0, 0, 8 }, { "long", 0, "long", true, true, false, LONG_MIN, LONG_MAX, 0, 0, 8 },
{ "ulong", 0, "ulong", false, true, false, 0, 0, 0, ULONG_MAX, 8 }, { "ulong", 0, "ulong", false, true, false, 0, 0, 0, ULONG_MAX, 8 },
}; };
const HostLang hostLangCSharp = { const HostLang hostLangCSharp =
"C#", {
"-A", hostTypesCSharp,
(HostLang::Lang)-1, 9,
hostTypesCSharp, 9, 4,
hostTypesCSharp+4,
true,
true, true,
"csharp", false, /* loopLabels */
&csharp_defaultOutFn,
&makeCodeGen,
Translated, Translated,
GotoFeature GotoFeature,
&makeCodeGen,
&defaultOutFnCSharp,
&genLineDirectiveTrans
}; };
int main( int argc, const char **argv ) int main( int argc, const char **argv )
{ {
InputData id( &hostLangCSharp, &rlhc ); InputData id( &hostLangCSharp, &rlparseCSharp, &rlhcCSharp );
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)