Changeset aebb9ee in tol


Ignore:
Timestamp:
Aug 13, 2010, 11:09:38 PM (16 years ago)
Author:
Víctor de Buen <vdebuen@…>
Branches:
1941-docker-image-to-test, devel, master
Children:
e3ade54
Parents:
20f76bc
Message:

New builtNew built-in functions GetHardSoftPlattform and GetSharedLibExt

git-svn-id: ​https://www.tol-project.org/svn/tolp/trunk@2469 be4846ae-f051-483a-831f-b64e7d08527f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tol/btol/text_type/txtgra.cpp

    r20f76bc raebb9ee  
    385385  contens_=I2(Text(Arg(1)),Text(Arg(2)));
    386386}
     387
     388//--------------------------------------------------------------------
     389DeclareContensClass(BText, BTxtTemporary, BTxtGetHardSoftPlattform);
     390DefExtOpr(1, BTxtGetHardSoftPlattform, "GetHardSoftPlattform", 1, 1,
     391          "Real","(Real unused)",
     392          I2("Returns the identifier of the platform where TOL is running.",
     393             "Devuelve el identificador de la platforma sobre la que "
     394       "está funcionando TOL."),
     395          BOperClassify::Text_);
     396//--------------------------------------------------------------------
     397void BTxtGetHardSoftPlattform::CalcContens()
     398//--------------------------------------------------------------------
     399{
     400  //"Windows-x86_32"
     401  //"Linux-x86_32"
     402  #ifdef UNIX
     403  contens_= "Linux-x86_32";
     404  #else
     405  contens_= "Windows-x86_32";
     406  #endif
     407}
     408
     409//--------------------------------------------------------------------
     410DeclareContensClass(BText, BTxtTemporary, BTxtGetSharedLibExt);
     411DefExtOpr(1, BTxtGetSharedLibExt, "GetSharedLibExt", 1, 1,
     412          "Real","(Real unused)",
     413          I2("Returns the identifier of the platform where TOL is running.",
     414             "Devuelve el identificador de la platforma sobre la que "
     415       "está funcionando TOL."),
     416          BOperClassify::Text_);
     417//--------------------------------------------------------------------
     418void BTxtGetSharedLibExt::CalcContens()
     419//--------------------------------------------------------------------
     420{
     421  #ifdef UNIX
     422  contens_= "so";
     423  #else
     424  contens_= "dll";
     425  #endif
     426}
     427
    387428
    388429//--------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.