home *** CD-ROM | disk | FTP | other *** search
/ The CDPD Public Domain Collection for CDTV 3 / CDPDIII.bin / pd / programming / gnusmalltalk / mstpub.h < prev    next >
C/C++ Source or Header  |  1992-02-15  |  2KB  |  65 lines

  1. /***********************************************************************
  2.  *
  3.  *    Public definitions for calling in to Smalltalk.
  4.  *
  5.  ***********************************************************************/
  6.  
  7.  
  8. /***********************************************************************
  9.  *
  10.  * Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  11.  * Written by Steve Byrne.
  12.  *
  13.  * This file is part of GNU Smalltalk.
  14.  *
  15.  * GNU Smalltalk is free software; you can redistribute it and/or modify it
  16.  * under the terms of the GNU General Public License as published by the Free
  17.  * Software Foundation; either version 1, or (at your option) any later 
  18.  * version.
  19.  * 
  20.  * GNU Smalltalk is distributed in the hope that it will be useful, but WITHOUT
  21.  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
  22.  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  23.  * more details.
  24.  * 
  25.  * You should have received a copy of the GNU General Public License along with
  26.  * GNU Smalltalk; see the file COPYING.  If not, write to the Free Software
  27.  * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  
  28.  *
  29.  ***********************************************************************/
  30.  
  31. /*
  32.  *    Change Log
  33.  * ============================================================================
  34.  * Author      Date       Change 
  35.  * sbb          1 Jan 92      Created.
  36.  *
  37.  */
  38.  
  39.  
  40. #ifndef __MSTPUB__
  41. #define __MSTPUB__
  42.  
  43. #ifndef __MST__
  44. #include "mst.h"
  45. #endif /* __MST__ */
  46.  
  47. extern OOP      msgSend(), strMsgSend(), registerOOP(), msgEval();
  48. extern void    msgSendf(), unregisterOOP();
  49.  
  50. /* Convert C datatypes to Smalltalk types */
  51.  
  52. extern OOP    intToOOP(), floatToOOP(), boolToOOP(), charToOOP(),
  53.         stringToOOP(), symbolToOOP(), cObjectToOOP();
  54.  
  55. /* Convert Smalltalk datatypes to C data types */
  56.  
  57. extern long    OOPToInt(); 
  58. extern double    OOPToFloat();
  59. extern int     OOPToBool();
  60. extern char    OOPToChar();
  61. extern char    *OOPToString();
  62. extern voidPtr    OOPToCObject();
  63.  
  64. #endif /* __MSTPUB__ */
  65.