home *** CD-ROM | disk | FTP | other *** search
/ Amiga ACS 1998 #4 / amigaacscoverdisc1998-041998.iso / utilities / shareware / dev / ppcsmalleiffel / lib_se / native_with_current.e < prev    next >
Encoding:
Text File  |  1998-01-16  |  2.4 KB  |  94 lines

  1. --          This file is part of SmallEiffel The GNU Eiffel Compiler.
  2. --          Copyright (C) 1994-98 LORIA - UHP - CRIN - INRIA - FRANCE
  3. --            Dominique COLNET and Suzanne COLLIN - colnet@loria.fr 
  4. --                       http://www.loria.fr/SmallEiffel
  5. -- SmallEiffel is  free  software;  you can  redistribute it and/or modify it 
  6. -- under the terms of the GNU General Public License as published by the Free
  7. -- Software  Foundation;  either  version  2, or (at your option)  any  later 
  8. -- version. SmallEiffel is distributed in the hope that it will be useful,but
  9. -- WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
  10. -- or  FITNESS FOR A PARTICULAR PURPOSE.   See the GNU General Public License 
  11. -- for  more  details.  You  should  have  received a copy of the GNU General 
  12. -- Public  License  along  with  SmallEiffel;  see the file COPYING.  If not,
  13. -- write to the  Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. -- Boston, MA 02111-1307, USA.
  15. --
  16. class NATIVE_WITH_CURRENT
  17.  
  18. inherit NATIVE_C;
  19.    
  20. feature 
  21.  
  22.    need_prototype: BOOLEAN is true;
  23.  
  24. feature
  25.  
  26.    language_name: STRING is
  27.       do
  28.      Result := fz_c_withcurrent;
  29.       end;
  30.  
  31.    stupid_switch(name: STRING): BOOLEAN is
  32.       do
  33.      Result := true;
  34.       end;
  35.  
  36.    c_define_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  37.       do
  38.      rf8.c_prototype;
  39.       end;
  40.  
  41.    c_mapping_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  42.       do
  43.      c_mapping_function_non_small_eiffel(rf8,name);
  44.       end;
  45.  
  46.    c_define_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  47.       do
  48.      rf7.c_prototype;
  49.       end;
  50.  
  51.    c_mapping_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  52.       do
  53.      c_mapping_procedure_non_small_eiffel(rf7,name);
  54.       end;
  55.  
  56.    jvm_add_method_for_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  57.       do
  58.       end;
  59.  
  60.    jvm_define_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  61.       do
  62.      fe_c2jvm(rf8);
  63.       end;
  64.  
  65.    jvm_mapping_function(rf8: RUN_FEATURE_8; bcn, name: STRING) is
  66.       do
  67.      fe_c2jvm(rf8);
  68.       end;
  69.  
  70.    jvm_add_method_for_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  71.       do
  72.       end;
  73.  
  74.    jvm_define_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  75.       do
  76.            fe_c2jvm(rf7);
  77.       end;
  78.  
  79.    jvm_mapping_procedure(rf7: RUN_FEATURE_7; bcn, name: STRING) is
  80.       do
  81.            fe_c2jvm(rf7);
  82.       end;
  83.  
  84. feature
  85.  
  86.    use_current(er: EXTERNAL_ROUTINE): BOOLEAN is
  87.       do
  88.      Result := true;
  89.       end;
  90.    
  91. end -- NATIVE_WITH_CURRENT
  92.  
  93.  
  94.