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/
amxpool.h
00001 /* Simple allocation from a memory pool, with automatic release of 00002 * least-recently used blocks (LRU blocks). 00003 * 00004 * Copyright (c) ITB CompuPhase, 2007-2012 00005 * 00006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 00007 * use this file except in compliance with the License. You may obtain a copy 00008 * of the License at 00009 * 00010 * http://www.apache.org/licenses/LICENSE-2.0 00011 * 00012 * Unless required by applicable law or agreed to in writing, software 00013 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 00014 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 00015 * License for the specific language governing permissions and limitations 00016 * under the License. 00017 * 00018 * Version: $Id: amxpool.h 4731 2012-06-21 11:11:18Z thiadmer $ 00019 */ 00020 #ifndef AMXPOOL_H_INCLUDED 00021 #define AMXPOOL_H_INCLUDED 00022 00023 #ifdef __cplusplus 00024 extern "C" { 00025 #endif 00026 00027 void amx_poolinit(void *pool, unsigned size); 00028 void *amx_poolalloc(unsigned size, int index); 00029 void amx_poolfree(void *block); 00030 void *amx_poolfind(int index); 00031 int amx_poolprotect(int index); 00032 00033 #ifdef __cplusplus 00034 } 00035 #endif 00036 00037 #endif /* AMXPOOL_H_INCLUDED */
Generated on Sat Jul 16 2022 16:09:35 by 1.7.2