Changeset 1089 for trunk/lang


Ignore:
Timestamp:
Aug 3, 2008, 11:49:26 PM (16 years ago)
Author:
dkearney
Message:

saving the world from tabs...one source file at a time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/perl/Rappture.xs

    r872 r1089  
    1010using namespace std;
    1111
    12 MODULE = Rappture               PACKAGE = Rappture::RpLibrary
     12MODULE = Rappture        PACKAGE = Rappture::RpLibrary
    1313PROTOTYPES: ENABLE
    1414
     
    1616RpLibrary::new(filename = "")
    1717char *filename
    18         CODE:
     18    CODE:
    1919        RpLibrary *library;
    20                 if ((filename == NULL) || (*filename == '\0'))
    21                         library = new RpLibrary();
    22                 else
    23                         library = new RpLibrary(filename);
     20        if ((filename == NULL) || (*filename == '\0'))
     21            library = new RpLibrary();
     22        else
     23            library = new RpLibrary(filename);
    2424
    25                 if (library->isNull())
     25        if (library->isNull())
    2626                {
    2727                        delete library;
    28                         XSRETURN_UNDEF;
     28            XSRETURN_UNDEF;
    2929                }
    30                 else
    31                         RETVAL = library;
    32         OUTPUT:
    33                 RETVAL
     30        else
     31            RETVAL = library;
     32    OUTPUT:
     33        RETVAL
    3434
    3535void *
    3636RpLibrary::DESTROY()
    37         CODE:
    38                 RETVAL = 0;
     37    CODE:
     38        RETVAL = 0;
    3939
    4040const char *
    4141RpLibrary::get( path )
    4242char *path
    43         CODE:
    44                 string result;
    45                 result = THIS->get(path);
    46                 RETVAL = result.c_str();
    47         OUTPUT:
    48                 RETVAL
     43    CODE:
     44        string result;
     45        result = THIS->get(path);
     46        RETVAL = result.c_str();
     47    OUTPUT:
     48        RETVAL
    4949
    5050void
     
    5353char *value
    5454int append
    55         CODE:
    56                 THIS->put(path,value,"",append);
     55    CODE:
     56        THIS->put(path,value,"",append);
    5757
    5858void
     
    6262int compress
    6363int append
    64         CODE:
    65                 THIS->putFile(path,fileName,compress,append);
     64    CODE:
     65        THIS->putFile(path,fileName,compress,append);
    6666
    6767void
    6868RpLibrary::result()
    69         CODE:
    70                 THIS->put("tool.version.rappture.language", "perl");
    71                 THIS->result();
     69    CODE:
     70        THIS->put("tool.version.rappture.language", "perl");
     71        THIS->result();
    7272
    73 MODULE = Rappture               PACKAGE = Rappture::RpUnits
     73MODULE = Rappture        PACKAGE = Rappture::RpUnits
    7474
    7575const char *
     
    7878const char *toUnitsName
    7979int showUnits
    80         CODE:
    81                 string result;
    82                 result = RpUnits::convert(fromVal,toUnitsName,showUnits);
     80    CODE:
     81        string result;
     82        result = RpUnits::convert(fromVal,toUnitsName,showUnits);
    8383
    8484                if (result.empty())
    8585                    XSRETURN_UNDEF;
    8686
    87                 RETVAL = result.c_str();
    88         OUTPUT:
    89                 RETVAL
     87        RETVAL = result.c_str();
     88    OUTPUT:
     89        RETVAL
    9090
    91 MODULE = Rappture               PACKAGE = Rappture::Utils
     91MODULE = Rappture        PACKAGE = Rappture::Utils
    9292
    9393int
     
    9595int percent
    9696const char *message
    97         CODE:
    98                 RETVAL = Rappture::Utils::progress(percent,message);
    99         OUTPUT:
    100                 RETVAL
     97    CODE:
     98        RETVAL = Rappture::Utils::progress(percent,message);
     99    OUTPUT:
     100        RETVAL
Note: See TracChangeset for help on using the changeset viewer.