OSDN Git Service

change rMOTORVAR constant value.
authorvisor <visor@users.sourceforge.jp>
Sat, 4 May 2013 03:37:59 +0000 (12:37 +0900)
committervisor <visor@users.sourceforge.jp>
Sat, 4 May 2013 03:37:59 +0000 (12:37 +0900)
lib/motorconst.h
modules/ml-store.cc

index f9ffdde..772540f 100644 (file)
@@ -1,7 +1,7 @@
 #ifndef MOTORCONST_H
 #define MOTORCONST_H
 
-#define  rMOTORVAR     "[a-zA-Z_0-9][a-zA-Z_0-9-]*"
+#define  rMOTORVAR     "[a-zA-Z_0-9][a-zA-Z_0-9+*-]*"
 #define  rWIKIVAR      "[a-zA-Z_][a-zA-Z_0-9-]*"
 #define  rWikiID       "[a-zA-Z_][a-zA-Z_0-9-]*"
 #define  kWORD         "[a-zA-Z0-9_]"
index 3e53d78..61ae1b1 100644 (file)
@@ -73,18 +73,6 @@ ustring  StoreType::src (MlEnv* mlenv, const ustring& name) {
        return mlenv->env->path_storage_file (name);
     case F_STATIC:
        return mlenv->env->path_static_file (name);
-#if 0
-       {
-           ustring  ans;
-           if (! checkResourceName (name))
-               throw (name + uErrorBadFile);
-           if (mlenv->env->path_resource (name, ans)) {
-           } else {
-               throw (name + uErrorNotFound);
-           }
-           return ans;
-       }
-#endif
     default:
        throw (uErrorNoStore);
     }