This is the open source Pawn interpreter ported to mbed. See here: http://www.compuphase.com/pawn/pawn.htm and here: http://code.google.com/p/pawnscript/
amxaux.h
00001 /* Support routines for the Pawn Abstract Machine 00002 * 00003 * Copyright (c) ITB CompuPhase, 2003-2011 00004 * 00005 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 00006 * use this file except in compliance with the License. You may obtain a copy 00007 * of the License at 00008 * 00009 * http://www.apache.org/licenses/LICENSE-2.0 00010 * 00011 * Unless required by applicable law or agreed to in writing, software 00012 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00013 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 00014 * License for the specific language governing permissions and limitations 00015 * under the License. 00016 * 00017 * Version: $Id: amxaux.h 4523 2011-06-21 15:03:47Z thiadmer $ 00018 */ 00019 #ifndef AMXAUX_H_INCLUDED 00020 #define AMXAUX_H_INCLUDED 00021 00022 #include "amx.h" 00023 00024 #ifdef __cplusplus 00025 extern "C" { 00026 #endif 00027 00028 /* loading and freeing programs */ 00029 size_t AMXAPI aux_ProgramSize(const char *filename); 00030 int AMXAPI aux_LoadProgram(AMX *amx, const char *filename, void *memblock); 00031 int AMXAPI aux_FreeProgram(AMX *amx); 00032 00033 /* a readable error message from an error code */ 00034 char * AMXAPI aux_StrError(int errnum); 00035 00036 enum { 00037 CODE_SECTION, 00038 DATA_SECTION, 00039 HEAP_SECTION, 00040 STACK_SECTION, 00041 /* ----- */ 00042 NUM_SECTIONS 00043 }; 00044 int AMXAPI aux_GetSection(const AMX *amx, int section, cell **start, size_t *size); 00045 00046 #ifdef __cplusplus 00047 } 00048 #endif 00049 00050 #endif /* AMXAUX_H_INCLUDED */
Generated on Sat Jul 16 2022 16:09:35 by 1.7.2