X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fcommand%2Frpn.qh;h=ab02612ed49f8926c16fcfb28500e8ce355c2fe1;hb=ba0988ca930f50286f8cf3b6c114ebc6584964af;hp=91b1dd9b9313e8873a3efc25885fddc4c49ba203;hpb=0f6085c8ea46125d87ca81ec7f5e82f73c08f958;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/command/rpn.qh b/qcsrc/common/command/rpn.qh index 91b1dd9b9..ab02612ed 100644 --- a/qcsrc/common/command/rpn.qh +++ b/qcsrc/common/command/rpn.qh @@ -1,10 +1,78 @@ +#ifndef RPN_H +#define RPN_H + +#if defined(CSQC) + #include "../util-pre.qh" + #include "../../client/sys-pre.qh" + #include "../../dpdefs/csprogsdefs.qc" + #include "../../client/sys-post.qh" + #include "../../client/Defs.qc" + #include "../../dpdefs/keycodes.qc" + #include "../constants.qh" + #include "../stats.qh" + #include "../../warpzonelib/anglestransform.qh" + #include "../../warpzonelib/mathlib.qh" + #include "../../warpzonelib/common.qh" + #include "../../warpzonelib/client.qh" + #include "../playerstats.qh" + #include "../teams.qh" + #include "../util.qh" + #include "../nades.qh" + #include "../buffs.qh" + #include "../test.qh" + #include "../counting.qh" + #include "../weapons/weapons.qh" + #include "../mapinfo.qh" + #include "markup.qh" +#elif defined(MENUQC) + #include "../util-pre.qh" + #include "../../menu/sys-pre.qh" + #include "../../dpdefs/menudefs.qc" + #include "../../dpdefs/keycodes.qc" + #include "../../menu/sys-post.qh" + #include "../../menu/config.qh" + #include "../../warpzonelib/mathlib.qh" + #include "../util.qh" + #include "../test.qh" + #include "../../menu/oo/base.qh" + #include "../playerstats.qh" + #include "../teams.qh" + #include "../constants.qh" + #include "../mapinfo.qh" + #include "../campaign_common.qh" + #include "../weapons/weapons.qh" + #include "../counting.qh" + #include "markup.qh" +#elif defined(SVQC) + #include "../util-pre.qh" + #include "../../server/sys-pre.qh" + #include "../../dpdefs/progsdefs.qc" + #include "../../dpdefs/dpextensions.qc" + #include "../../server/sys-post.qh" + #include "../../warpzonelib/anglestransform.qh" + #include "../../warpzonelib/mathlib.qh" + #include "../../warpzonelib/common.qh" + #include "../../warpzonelib/util_server.qh" + #include "../../warpzonelib/server.qh" + #include "../constants.qh" + #include "../stats.qh" + #include "../teams.qh" + #include "../util.qh" + #include "../nades.qh" + #include "../buffs.qh" + #include "../test.qh" + #include "../counting.qh" + #include "../urllib.qh" + #include "markup.qh" +#endif // ========================================================= // Declarations for RPN command code, written by divVerent // Last updated: December 28th, 2011 // ========================================================= -#define MAX_RPN_STACK 16 -float rpn_db; -float rpn_error; -float rpn_sp; +const float MAX_RPN_STACK = 16; +int rpn_db; +int rpn_error; +int rpn_sp; string rpn_stack[MAX_RPN_STACK]; +#endif \ No newline at end of file