[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PureC changes



Here are diffs to make MiNT 1.11H2 work with PureC.

A few comments about recent MiNT changes:

- PLEASE use function prototypes. This is absolutely essential for PureC
  to know how to pass parameters to a function. Besides, you can't pass
  a function pointer, when the function didn't have a prototype, but 
  the called function wants it.
- BTW: it seems that everybody uses gcc except me, so there's really
  no point to use old style function definitions.
- Note that it's really important to have the source ANSI clean. As you
  see, PureC detects a lot of things that gcc seems to ignore.
- PLEASE check return types. It's a really BAD thing to put the long
  return value of a function into an int, just because you think that
  it will be 16 bit anyway and you want to use it in a switch statement.
  Either change the function or put an explicit (int) before the 
  function call. This will remind you that you are converting a
  return value and that you'll perhaps lose significant digits.
- DON'T mix pointers to signed and unsigned.
- DON'T add or change OS functions without writing or updating manual
  pages.

Regarding the `ps' problem: it seems that either usrtime or systime
in the PROC structure are wrong. I don't have the time to look into
that right now.

Regarding Wolfgang's sample program to crash MultiTOS: in fact, it crashes
the machine. I hope that somebody is interested enough to run GEM
with MiNT find this problem, otherwise I can't see why `normal' users
will want to run MTOS when they can have MagiC, which is stable and
fast.






table
 !"#$%&'()*+,-./0123456789:;<=>?
@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_
begin 644 diffs.z
M'XL( *#8O"X"!;U9>W/B1A+_&SY%[Z;6)_&P)?$PC_5F,;"[5#!V ;XDE4U1z
M0AH9U8)$).%'XMQGO^Z9T0,L9[V7U+E<)=33T^K7]*]GQG8=!ZH[.#Y9NGYXy
M;,'Q\8F_MN5;L5JM)D.%V<Z#B7\+T 3=Z-1;':,.>KM=+Y;+Y?UY!ZQZNU.3x
MK._?0U6OU2NG4*9'"]Z_+\*?12C":#(>38801F;D6N!Z4;'JAKZW=CT&2A@%w
M.RL"DKZ(H@<H+=5B.1Y6Z*7PE*5;A#^*4' =4);5=T0[.X,C<W=/XRH?.RG!v
MQK?91H?2B="M><IU:[:^JMLR^/*L8CCV3VIEU!JDE5$CY4@K&I RX-49+'%Ju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J:2?&EDZ(FVO/YQ"K=%J%LNY<NI9x
M>BH'Y9=SY1A9%5$.:;FOY/"G_E4?:DVM>4"=S:Z0K&L'Y-Y@,"5ZZX ^/Q\3w
M^5#VQ05JB0/&GJ6ST<>+WNP'T!NGA_2KX60PFGS$H7VC$CV- ZK04VL>D&,]v
MZP=TJ:=V0([UU/<^FNK9/*1G]*QGDI;.,-)>6[S)E!4O!UG8,#K8)Q]F;"XKu
M)FPCTV(WQ149/=K/'XN(0S';7_!S-7XF\ML.FRJ^?\5]D8T=GQQ5^("D%20Gt
MU9.$5S:!Z1E9Y&\[Q;Z_V?@>A+NE37M [$U=%G;(X!V^\J4?FT6$C+.B_0N!s
M:.\^(,J_#M [NO'$7U'^;0#R9N\[M18_,Y!/7MPY% RN%A>7@V%O/I]R4) 'r
M"1]Z$K ?\=>GT6 PG- O6HW#"_HU[IT/Q_2C_ZDW^3@</!;A.]?!)('IY>7\q
M:CB]F,FS=*W9;([A[5MHJ8\"RU+*8^;Z#O]0F0_SQ6 T?12_IL./W8RB/Y&6p
M'T;#\6#6R7CR?O_:^'[OWO@^_^*XW=%:3SR9SXN>K.W52MZ)TT.<H%.R6%C+o
CXZ.[=$_"+VF1YLJ[$7$3P@E*YE;D\%*$1/P7GVL :!0?  ")n
 m
end


-- 
---------------------------------------------------
Julian F. Reschke, Hensenstr. 142, D-48161 Muenster
 eMail: reschke@math.uni-muenster.de jr@ms.maus.de
___________________________________________________