Skip to content

Compilation with mingw gcc 4.5 #2

@GoogleCodeExporter

Description

@GoogleCodeExporter
There are several problems to compile tiscript with mingw 4.5.1.

I did an import of the vc++ project with codeblocks and to be able to compile I 
did some modifications.

Sadly there is differences on line endings with my edited files and it's 
showing lot of differences that are only spaces at the end of line.

To be able to compile so far I had to temporarily skip calling :

-----
static value CSF_sort(VM *c)
{
    value vector = 0,cmpf = 0;
    protect2 _(c,vector,cmpf);

    CsParseArguments(c,"V=*|V",&vector,&CsVectorDispatch,&cmpf);
    //vector = CsMovedVectorP(vector)? CsVectorForwardingAddr(vector): vector;
    FETCH(c, vector);
    CsSetModified(vector,true);

    int_t d = CsVectorSize(c,vector);
    value *p = CsVectorAddress(c,vector);
    if(!cmpf)
    {
#ifndef __MINGW32__
      simple_sorter::sort(p, d,cmpValues(c)); //<<<<<<<<< couldn't find solution yet
#endif
------

and

-----
static value CSF_scanFiles(VM *c)
{
    if((c->features & FEATURE_FILE_IO) == 0)
    {
      CsThrowKnownError(c,CsErrNotAllowed, "FILE IO");
      return UNDEFINED_VALUE;
    }

    wchar *path = 0;
    value ef = 0;

    CsParseArguments(c,"**S|V",&path ,&ef);

    int counter = 0;
    if( ef )
    {
      //pvalue
      if(!CsMethodP(ef))
        CsThrowKnownError(c, CsErrUnexpectedTypeError, ef, "function");

      pvalue fun(c);
      fun = ef;
      tool::array<folder_entry> entries;
      folder_content_list fcl(entries);
      //scanEntryProxy sep( c, ef );
      counter = tool::filesystem::scan(path, &fcl);
#ifndef __MINGW32__
      tool::sort(entries.head(), entries.size()); //<<<<<<<<< couldn't find solution yet
#endif

-----

Maybe this will have some interest to this project !


Original issue reported on code.google.com by mingo...@gmail.com on 16 Dec 2010 at 10:19

Attachments:

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions