From f5c1b91bb902fe180900efa2c907436986cc912b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Minisini?= Date: Sun, 21 Aug 2011 23:50:51 +0000 Subject: [PATCH] [INTERPRETER] * NEW: Rename the '.File.Perm' virtual class as '.Stat.Perm'. git-svn-id: svn://localhost/gambas/trunk@4030 867c0c6c-44f3-4631-809d-bfa615b0a4ec --- main/gbx/gbx_c_file.c | 6 +++--- main/gbx/gbx_c_file.h | 2 +- main/gbx/gbx_class_info.c | 4 ++-- main/gbx/gbx_class_init.c | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/main/gbx/gbx_c_file.c b/main/gbx/gbx_c_file.c index 747cd8e7c..4f7a4eb86 100644 --- a/main/gbx/gbx_c_file.c +++ b/main/gbx/gbx_c_file.c @@ -802,9 +802,9 @@ GB_DESC NATIVE_Stream[] = }; -GB_DESC NATIVE_FilePerm[] = +GB_DESC NATIVE_StatPerm[] = { - GB_DECLARE(".File.Perm", 0), + GB_DECLARE(".Stat.Perm", 0), GB_VIRTUAL_CLASS(), GB_METHOD("_get", "s", CFILE_perm_get, "(UserOrGroup)s"), @@ -833,7 +833,7 @@ GB_DESC NATIVE_Stat[] = GB_PROPERTY_READ("LastChange", "d", Stat_LastChange), GB_PROPERTY_READ("User", "s", Stat_User), GB_PROPERTY_READ("Group", "s", Stat_Group), - GB_PROPERTY_SELF("Perm", ".File.Perm"), + GB_PROPERTY_SELF("Perm", ".Stat.Perm"), GB_PROPERTY_READ("SetGID", "b", Stat_SetGID), GB_PROPERTY_READ("SetUID", "b", Stat_SetUID), GB_PROPERTY_READ("Sticky", "b", Stat_Sticky), diff --git a/main/gbx/gbx_c_file.h b/main/gbx/gbx_c_file.h index d7fc34e71..4208dbce1 100644 --- a/main/gbx/gbx_c_file.h +++ b/main/gbx/gbx_c_file.h @@ -59,7 +59,7 @@ extern GB_DESC NATIVE_StreamLines[]; extern GB_DESC NATIVE_Stream[]; extern GB_DESC NATIVE_File[]; extern GB_DESC NATIVE_Stat[]; -extern GB_DESC NATIVE_FilePerm[]; +extern GB_DESC NATIVE_StatPerm[]; extern CFILE *CFILE_in; extern CFILE *CFILE_out; extern CFILE *CFILE_err; diff --git a/main/gbx/gbx_class_info.c b/main/gbx/gbx_class_info.c index 07de441da..4098c1fc7 100644 --- a/main/gbx/gbx_class_info.c +++ b/main/gbx/gbx_class_info.c @@ -330,7 +330,7 @@ EXTERN GB_DESC NATIVE_Collection[]; EXTERN GB_DESC NATIVE_Error[]; EXTERN GB_DESC NATIVE_Stream[]; EXTERN GB_DESC NATIVE_StreamLines[]; -EXTERN GB_DESC NATIVE_FilePerm[]; +EXTERN GB_DESC NATIVE_StatPerm[]; EXTERN GB_DESC NATIVE_Stat[]; EXTERN GB_DESC NATIVE_File[]; EXTERN GB_DESC NATIVE_AppEnv[]; @@ -377,7 +377,7 @@ GB_DESC *GB_CLASSES[] EXPORT = NATIVE_Error, NATIVE_StreamLines, NATIVE_Stream, - NATIVE_FilePerm, + NATIVE_StatPerm, NATIVE_Stat, NATIVE_File, NATIVE_AppEnv, diff --git a/main/gbx/gbx_class_init.c b/main/gbx/gbx_class_init.c index a689fce67..85792a78a 100644 --- a/main/gbx/gbx_class_init.c +++ b/main/gbx/gbx_class_init.c @@ -102,7 +102,7 @@ static const CLASS_INIT init_list[] = { NATIVE_Error, NULL }, { NATIVE_StreamLines, NULL }, { NATIVE_Stream, &CLASS_Stream }, - { NATIVE_FilePerm, NULL }, + { NATIVE_StatPerm, NULL }, { NATIVE_Stat, &CLASS_Stat }, { NATIVE_File, &CLASS_File }, { NATIVE_AppEnv, &CLASS_AppEnv },