common: prevent buffer overflow
[supercollider.git] / include / lang / PyrFilePrim.h
blobd31d92672290699182347b2236953f65a9d60106
1 /*
2 SuperCollider real time audio synthesis system
3 Copyright (c) 2002 James McCartney. All rights reserved.
4 http://www.audiosynth.com
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 2 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program; if not, write to the Free Software
18 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 #ifndef _PYRFILEPRIM_H_
21 #define _PYRFILEPRIM_H_
23 #include "PyrObject.h"
25 struct PyrFile : public PyrObjectHdr
27 PyrSlot fileptr;
30 void initFilePrimitives();
32 long prFileDelete(VMGlobals *g, long numArgsPushed);
33 long prFileOpen(VMGlobals *g, long numArgsPushed);
34 long prFileClose(VMGlobals *g, long numArgsPushed);
35 long prFileSeek(VMGlobals *g, long numArgsPushed);
36 long prFilePos(VMGlobals *g, long numArgsPushed);
37 long prFileLength(VMGlobals *g, long numArgsPushed);
38 long prFileWrite(VMGlobals *g, long numArgsPushed);
39 long prFileReadLine(VMGlobals *g, long numArgsPushed);
41 long prFilePutRGB(VMGlobals *g, long numArgsPushed);
42 long prFilePutInt32(VMGlobals *g, long numArgsPushed);
43 long prFilePutInt16(VMGlobals *g, long numArgsPushed);
44 long prFilePutInt8(VMGlobals *g, long numArgsPushed);
45 long prFilePutChar(VMGlobals *g, long numArgsPushed);
46 long prFilePutFloat(VMGlobals *g, long numArgsPushed);
47 long prFilePutDouble(VMGlobals *g, long numArgsPushed);
49 long prFileGetRGB(VMGlobals *g, long numArgsPushed);
50 long prFileGetInt32(VMGlobals *g, long numArgsPushed);
51 long prFileGetInt16(VMGlobals *g, long numArgsPushed);
52 long prFileGetInt8(VMGlobals *g, long numArgsPushed);
53 long prFileGetChar(VMGlobals *g, long numArgsPushed);
54 long prFileGetFloat(VMGlobals *g, long numArgsPushed);
55 long prFileGetDouble(VMGlobals *g, long numArgsPushed);
57 long prFilePutString(VMGlobals *g, long numArgsPushed);
58 long prFileRead(VMGlobals *g, long numArgsPushed);
61 #endif