ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/thunks.cpp
(Generate patch)

Comparing SheepShaver/src/thunks.cpp (file contents):
Revision 1.3 by gbeauche, 2004-01-07T18:24:44Z vs.
Revision 1.4 by gbeauche, 2004-01-15T23:28:59Z

# Line 128 | Line 128 | bool ThunksInit(void)
128   #else
129   #error "FIXME: define NativeOp for your platform"
130   #endif
131 +        // FIXME: add GetResource() and friends for completeness
132          DEFINE_NATIVE_OP(NATIVE_PATCH_NAME_REGISTRY, DoPatchNameRegistry);
133          DEFINE_NATIVE_OP(NATIVE_VIDEO_INSTALL_ACCEL, VideoInstallAccel);
134          DEFINE_NATIVE_OP(NATIVE_VIDEO_VBL, VideoVBL);
# Line 150 | Line 151 | bool ThunksInit(void)
151   #undef DEFINE_NATIVE_OP
152   #endif
153  
154 <        // Initialize routine descriptors
155 <        for (int i = 0; i < NATIVE_OP_MAX; i++)
156 <                native_op[i].desc = new SheepRoutineDescriptor(0, NativeTVECT(i));
154 >        // Initialize routine descriptors (if TVECT exists)
155 >        for (int i = 0; i < NATIVE_OP_MAX; i++) {
156 >                uint32 tvect = native_op[i].tvect;
157 >                if (tvect)
158 >                        native_op[i].desc = new SheepRoutineDescriptor(0, tvect);
159 >        }
160  
161          return true;
162   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines