Changeset 3650 for trunk/src


Ignore:
Timestamp:
Jun 3, 2000, 5:50:46 AM (25 years ago)
Author:
bird
Message:

Rewrote kRx.c in assembly!

Location:
trunk/src/win32k/rexx
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/win32k/rexx/kRx.c

    r3518 r3650  
    1 /* $Id: kRx.c,v 1.1 2000-05-10 16:04:30 bird Exp $
     1/* $Id: kRx.c,v 1.2 2000-06-03 03:50:45 bird Exp $
    22 *
    33 * kRx - Small rexx script interpreter.
     4 *
     5 * Will be re-written in assembly later!!!
    46 *
    57 * Copyright (c) 2000 knut st. osmundsen (knut.stange.osmundsen@pmsc.no)
     
    1719#define INCL_DOSERRORS
    1820
     21#undef DEBUGOUT
     22
    1923/*******************************************************************************
    2024*   Internal Functions                                                         *
     
    2529#include <stdio.h>
    2630#include <string.h>
    27 #include <malloc.h>
     31/*#include <malloc.h> */
    2832
    2933/**
     
    5155    int         argi;                   /* Argument index loop variable. */
    5256    APIRET      rc;                     /* Return code from RexxStart. */
    53 
     57    ULONG       ul;                     /* Dummy used by DosWrite. */
    5458
    5559    /*
     
    6872    if (iScriptName >= argc)
    6973    {
    70         fprintf(stderr, "Invalid parameters, script filename is missing\n");
     74        DosWrite(2, "Invalid parameters, script filename is missing.\r\n", 47, &ul);
    7175        return -10000;
    7276    }
     
    120124     * Debug display result.
    121125     */
     126    #ifdef DEBUGOUT
    122127    printf(
    123128        "Interpreter rc:    %d\n"
     
    127132        sRexxRc,
    128133        rxstrRexxRc.strptr);
    129 
     134    #endif
    130135
    131136    DosFreeMem(rxstrRexxRc.strptr);     /* Release storage from RexxStart. */
  • trunk/src/win32k/rexx/makefile

    r3518 r3650  
    11##############################################################################
    2 # $Id: makefile,v 1.1 2000-05-10 16:04:31 bird Exp $
     2# $Id: makefile,v 1.2 2000-06-03 03:50:46 bird Exp $
    33#
    44# PD-Win32 API
     
    2626
    2727LD         = ilink
    28 LDFLAGS    = /nologo /NOI /A:16 /NOE /packcode /packdata /pmtype:vio /Stack:4096 \
     28LDFLAGS    = /nologo /NOI /A:16 /NOE /packcode /packdata /pmtype:vio /Stack:0x10000 \
    2929!ifdef DEBUG
    3030!ifndef NODEBUGINFO
     
    4747    @$(CXX) $(CXXFLAGS) -c -Fa$(WIN32KLIST)\$(@B).asm -Fo$(@) $<
    4848
     49.asm{$(OBJDIR)}.obj:
     50    @$(ECHO) assembling:      $<
     51    @$(AS) $(ASFLAGS) $(ADEFINES) $(AINCLUDES) $< -Fo:$@ -Fl:$(WIN32KLIST)\$(*B).lst
     52
    4953#
    5054# Visual slick edit!
     
    6468TARGET   = kRx
    6569
    66 OBJS     =  $(OBJDIR)\kRx.obj
     70OBJS     =  $(OBJDIR)\kRxa.obj
    6771
    6872
    69 all:      $(OBJDIR) $(OBJDIR)\$(TARGET).exe
     73all:        $(OBJDIR) \
     74            $(OBJDIR)\$(TARGET).exe
    7075
    7176
    7277$(OBJDIR)\$(TARGET).exe: $(OBJS) $(TARGET).def
    7378    @echo linking $@
    74     $(LD2) $(LD2FLAGS) /OUT:$@ /MAP:$*.map $** OS2386.lib $(RTLLIB) REXX.LIB
     79    -4 $(LD) $(LDFLAGS) /BASE:0x10000 /OUT:$@ /MAP:$*.map $** OS2386.lib REXX.lib
    7580    $(CP) $@ $(PDWIN32_BIN)
     81
     82$(OBJDIR)\$(TARGET)c.exe: $(OBJDIR)\kRx.obj $(TARGET).def
     83    @echo linking $@
     84    $(LD) $(LDFLAGS) /BASE:0x10000 /OUT:$@ /MAP:$*.map $** OS2386.lib REXX.lib
     85    $(CP) $@ $(PDWIN32_BIN)
     86
    7687
    7788
Note: See TracChangeset for help on using the changeset viewer.