Ignore:
Timestamp:
Jul 9, 2020, 8:51:43 AM (4 years ago)
Author:
coas-nagasima
Message:

mrubyを2.1.1に更新

File:
1 edited

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/prototool/src/mrdb.h

    r321 r439  
    77#define MRDB_H
    88
    9 #include "mruby.h"
     9#include <mruby.h>
    1010
    1111#include "mrdbconf.h"
     12
     13#ifdef _MSC_VER
     14# define __func__ __FUNCTION__
     15#endif
    1216
    1317#define MAX_COMMAND_WORD (16)
     
    2024  DBGCMD_BREAK,
    2125  DBGCMD_INFO_BREAK,
     26  DBGCMD_INFO_LOCAL,
    2227  DBGCMD_WATCH,
    2328  DBGCMD_INFO_WATCH,
     
    5257  DBG_QUIT,
    5358} mrdb_exemode;
    54 
    55 #ifdef _MSC_VER
    56 # define __func__ __FUNCTION__
    57 extern long __stdcall InterlockedExchange(long *dst, long src);
    58 extern long __stdcall InterlockedCompareExchange(long *dst, long src, long cmp);
    59 #else
    60 #define InterlockedExchange(dst, src) do { *(dst) = src; } while(0)
    61 __inline__ static enum mrdb_exemode InterlockedCompareExchange(enum mrdb_exemode *dst, enum mrdb_exemode src, enum mrdb_exemode cmp) { long prev = *(dst); if (*(dst) == cmp) *(dst) = src; return prev; }
    62 #endif
    6359
    6460typedef enum mrdb_exephase {
     
    110106  struct mrb_irep *root_irep;
    111107  struct mrb_irep *irep;
    112   mrb_code *pc;
     108  const mrb_code *pc;
    113109  mrb_value *regs;
    114110
     
    117113  mrb_callinfo *prvci;
    118114
    119 #ifdef _MSC_VER
    120   long xm;
    121 #else
    122115  mrdb_exemode xm;
    123 #endif
    124116  mrdb_exephase xphase;
    125117  mrdb_brkmode bm;
     
    161153dbgcmd_state dbgcmd_break(mrb_state*, mrdb_state*);
    162154dbgcmd_state dbgcmd_info_break(mrb_state*, mrdb_state*);
     155dbgcmd_state dbgcmd_info_local(mrb_state*, mrdb_state*);
    163156dbgcmd_state dbgcmd_delete(mrb_state*, mrdb_state*);
    164157dbgcmd_state dbgcmd_enable(mrb_state*, mrdb_state*);
     
    168161dbgcmd_state dbgcmd_eval(mrb_state*, mrdb_state*);
    169162/* cmdmisc.c */
     163dbgcmd_state dbgcmd_list(mrb_state*, mrdb_state*);
    170164dbgcmd_state dbgcmd_help(mrb_state*, mrdb_state*);
    171165dbgcmd_state dbgcmd_quit(mrb_state*, mrdb_state*);
Note: See TracChangeset for help on using the changeset viewer.