diff options
author | Manoj Srivastava <srivasta@debian.org> | 2020-05-22 19:57:41 -0700 |
---|---|---|
committer | Manoj Srivastava <srivasta@debian.org> | 2020-05-22 20:02:19 -0700 |
commit | c3d2579ad8d7eb33059aa8fdbaf5b564411a57f2 (patch) | |
tree | 1570cda0676fdcf4171a69a7fe313c1b89a52b0c /src/lua/feature.lua | |
parent | 986b7742bf244b4073ecca0723615f70be8a1ab6 (diff) | |
parent | 4e9b9c402ed95bf9a17fd6d795bc49bb4128a6fa (diff) |
Merge branch 'upstream' into debian-cmake-fixes
Diffstat (limited to 'src/lua/feature.lua')
-rw-r--r-- | src/lua/feature.lua | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/src/lua/feature.lua b/src/lua/feature.lua deleted file mode 100644 index 4a4379e1..00000000 --- a/src/lua/feature.lua +++ /dev/null @@ -1,72 +0,0 @@ --- tolua: abstract feature class --- Written by Waldemar Celes --- TeCGraf/PUC-Rio --- Jul 1998 --- $Id: feature.lua,v 1.2 2001/11/26 23:00:23 darkgod Exp $ - --- This code is free software; you can redistribute it and/or modify it. --- The software provided hereunder is on an "as is" basis, and --- the author has no obligation to provide maintenance, support, updates, --- enhancements, or modifications. - - --- Feature class --- Represents the base class of all mapped feature. -classFeature = { -} - --- write support code -function classFeature:supcode () -end - --- output tag -function classFeature:decltag () -end - --- register feature -function classFeature:register () -end - --- unregister feature -function classFeature:unregister () -end - --- translate verbatim -function classFeature:preamble () -end - --- check if feature is inside a class definition --- it returns the feature class name or nil. -function classFeature:inclass () - if self.parent and self.parent.type == 'class' then - return self.parent.name - else - return nil - end -end - --- check if feature is inside a module --- it returns the feature module name or nil. -function classFeature:inmodule () - if self.parent and self.parent.type == 'module' then - return self.parent.name - else - return nil - end -end - --- return C binding function name based on name --- the client specifies a prefix --- return C binding function name --- the client specifies a prefix -function classFeature:cfuncname (n) - if self.parent then - n = self.parent:cfuncname(n) - end - if self.lname then - return n..'_'..self.lname - else - return n..'_'..self.name - end -end - |