[Gridflow-cvs] [svn] commit: r5118 - in /trunk/src: MacErrors2.i MacErrorsCollect.rb

svn-gridflow at artengine.ca svn-gridflow at artengine.ca
Mon Mar 15 16:08:56 EDT 2010


Author: matju
Date: Mon Mar 15 16:08:55 2010
New Revision: 5118

Log:
fix string quoting, special characters, etc.

Modified:
    trunk/src/MacErrors2.i
    trunk/src/MacErrorsCollect.rb

Modified: trunk/src/MacErrors2.i
==============================================================================
--- trunk/src/MacErrors2.i (original)
+++ trunk/src/MacErrors2.i Mon Mar 15 16:08:55 2010
@@ -1,3 +1,4 @@
+// automatically made from a headerfile copyrighted by Apple.
 OSERR(-50,"paramErr","error in user parameter list")
 OSERR(-200,"noHardwareErr","Sound Manager Error Returns")
 OSERR(-201,"notEnoughHardwareErr","Sound Manager Error Returns")
@@ -151,7 +152,7 @@
 OSERR(-197,"rmvRefFailed","RmveReference failed")
 OSERR(-198,"resAttrErr","attribute inconsistent with operation")
 OSERR(-199,"mapReadErr","map inconsistent with operation")
-OSERR(-186,"CantDecompress","resource bent ("the bends") - can't decompress a compressed resource")
+OSERR(-186,"CantDecompress","resource bent (\"the bends\") - can't decompress a compressed resource")
 OSERR(-185,"badExtResource","extended resource has a bad format.")
 OSERR(-150,"cMatchErr","Color2Index failed to find an index")
 OSERR(-151,"cTempMemErr","failed to allocate memory for temporary structures")
@@ -292,7 +293,7 @@
 OSERR(-621,"notHeldErr","specified range of memory is not held")
 OSERR(-622,"cannotMakeContiguousErr","cannot make specified range contiguous")
 OSERR(-623,"notLockedErr","specified range of memory is not locked")
-OSERR(-624,"interruptsMaskedErr","don’t call with interrupts masked")
+OSERR(-624,"interruptsMaskedErr","don\342\200\231t call with interrupts masked")
 OSERR(-625,"cannotDeferErr","unable to defer additional functions")
 OSERR(-628,"vmMorePhysicalThanVirtualErr","VM could not start because there was more physical memory than virtual memory (bad setting in VM config resource)")
 OSERR(-629,"vmKernelMMUInitErr","VM could not start because VM_MMUInit kernel call failed")
@@ -430,9 +431,9 @@
 OSERR(-2203,"matrixErr","bad matrix, digitizer did nothing ")
 OSERR(-2204,"notExactMatrixErr","warning of bad matrix, digitizer did its best ")
 OSERR(-2205,"noMoreKeyColorsErr","all key indexes in use ")
-OSERR(-2206,"notExactSizeErr","Can’t do exact size requested ")
-OSERR(-2207,"badDepthErr","Can’t digitize into this depth ")
-OSERR(-2208,"noDMAErr","Can’t do DMA digitizing (i.e. can't go to requested dest ")
+OSERR(-2206,"notExactSizeErr","Can\342\200\231t do exact size requested ")
+OSERR(-2207,"badDepthErr","Can\342\200\231t digitize into this depth ")
+OSERR(-2208,"noDMAErr","Can\342\200\231t do DMA digitizing (i.e. can't go to requested dest ")
 OSERR(-2502,"tsmNotAnAppErr","not an application error ")
 OSERR(-2503,"tsmAlreadyRegisteredErr","want to register again error ")
 OSERR(-2504,"tsmNeverRegisteredErr","app never registered error (not TSM aware) ")
@@ -440,7 +441,7 @@
 OSERR(-2506,"tsmTSMDocBusyErr","document is still active ")
 OSERR(-2507,"tsmDocNotActiveErr","document is NOT active ")
 OSERR(-2508,"tsmNoOpenTSErr","no open text service ")
-OSERR(-2509,"tsmCantOpenComponentErr","can’t open the component ")
+OSERR(-2509,"tsmCantOpenComponentErr","can\342\200\231t open the component ")
 OSERR(-2510,"tsmTextServiceNotFoundErr","no text service found ")
 OSERR(-2511,"tsmDocumentOpenErr","there are open documents ")
 OSERR(-2512,"tsmUseInputWindowErr","not TSM aware because we are using input window ")
@@ -481,8 +482,8 @@
 OSERR(-2707,"errOSAInternalTableOverflow","Signaled when a runtime internal data structure overflows")
 OSERR(-2708,"errOSADataBlockTooLarge","Signaled when an intrinsic limitation is exceeded for the size of a value or data structure.")
 OSERR(-10003,"OSAIllegalAssign","Signaled when an object can never be set in a container")
-OSERR(-2740,"OSASyntaxError","Signaled when a syntax error occurs. (e.g. "Syntax error" or "<this> can't go after <that>")")
-OSERR(-2741,"OSASyntaxTypeError","Signaled when another form of syntax was expected. (e.g. "expected a <type> but found <this>")")
+OSERR(-2740,"OSASyntaxError","Signaled when a syntax error occurs. (e.g. \"Syntax error\" or \"<this> can't go after <that>\")")
+OSERR(-2741,"OSASyntaxTypeError","Signaled when another form of syntax was expected. (e.g. \"expected a <type> but found <this>\")")
 OSERR(-2742,"OSATokenTooLong","Signaled when a name or number is too long to be parsed")
 OSERR(-2750,"OSADuplicateParameter","Signaled when a formal parameter, local variable, or instance variable is specified more than once")
 OSERR(-2751,"OSADuplicateProperty","Signaled when a formal parameter, local variable, or instance variable is specified more than once.")
@@ -498,7 +499,7 @@
 OSERR(-2804,"cfragNoLibraryErr","The named library was not found.")
 OSERR(-2805,"cfragDupRegistrationErr","The registration name was already in use.")
 OSERR(-2806,"cfragFragmentFormatErr","A fragment's container format is unknown.")
-OSERR(-2807,"cfragUnresolvedErr","A fragment had "hard" unresolved imports.")
+OSERR(-2807,"cfragUnresolvedErr","A fragment had \"hard\" unresolved imports.")
 OSERR(-2808,"cfragNoPositionErr","The registration insertion point was not found.")
 OSERR(-2809,"cfragNoPrivateMemErr","Out of memory for internal bookkeeping.")
 OSERR(-2810,"cfragNoClientMemErr","Out of memory for fragment mapping or section instances.")
@@ -605,7 +606,7 @@
 OSERR(-3260,"kECONNREFUSEDErr","Connection refused           ")
 OSERR(-3263,"kEHOSTDOWNErr","Host is down                ")
 OSERR(-3264,"kEHOSTUNREACHErr","No route to host               ")
-OSERR(-3269,"kEPROTOErr","••• fill out missing codes •••     ")
+OSERR(-3269,"kEPROTOErr","\342\200\242\342\200\242\342\200\242 fill out missing codes \342\200\242\342\200\242\342\200\242     ")
 OSERR(-3270,"kETIMEErr","")
 OSERR(-3271,"kENOSRErr","")
 OSERR(-3272,"kEBADMSGErr","")
@@ -711,7 +712,7 @@
 OSERR(-5622,"menuItemNotFoundErr","specified menu item wasn't found")
 OSERR(-5600,"errInvalidWindowPtr","tried to pass a bad WindowRef argument")
 OSERR(-5601,"errUnsupportedWindowAttributesForClass","tried to create a window with WindowAttributes not supported by the WindowClass")
-OSERR(-5602,"errWindowDoesNotHaveProxy","tried to do something requiring a proxy to a window which doesn’t have a proxy")
+OSERR(-5602,"errWindowDoesNotHaveProxy","tried to do something requiring a proxy to a window which doesn\342\200\231t have a proxy")
 OSERR(-5605,"errUnrecognizedWindowClass","tried to create a window with a bad WindowClass")
 OSERR(-5606,"errCorruptWindowDescription","tried to load a corrupt window description (size or version fields incorrect)")
 OSERR(-5607,"errUserWantsToDragWindow","if returned from TrackWindowProxyDrag, you should call DragWindow on the window")
@@ -730,7 +731,7 @@
 OSERR(-6221,"kDMMirroringOnAlready","Returned by all calls that need mirroring to be off to do their thing.")
 OSERR(-6222,"kDMWrongNumberOfDisplays","Can only handle 2 displays for now.")
 OSERR(-6223,"kDMMirroringBlocked","DMBlockMirroring() has been called.")
-OSERR(-6224,"kDMCantBlock","Mirroring is already on, can’t Block now (call DMUnMirror() first).")
+OSERR(-6224,"kDMCantBlock","Mirroring is already on, can\342\200\231t Block now (call DMUnMirror() first).")
 OSERR(-6225,"kDMMirroringNotOn","Returned by all calls that need mirroring to be on to do their thing.")
 OSERR(-6226,"kSysSWTooOld","Missing critical pieces of System Software.")
 OSERR(-6227,"kDMSWNotInitializedErr","Required software not initialized (eg windowmanager or display mgr).")
@@ -948,14 +949,14 @@
 OSERR(-10070,"telAlreadyOpen","terminal already open ")
 OSERR(-10071,"telStillNeeded","terminal driver still needed by someone else ")
 OSERR(-10072,"telTermNotOpen","terminal not opened via TELOpenTerm ")
-OSERR(-10080,"telCANotAcceptable","CA not "acceptable" ")
-OSERR(-10081,"telCANotRejectable","CA not "rejectable" ")
-OSERR(-10082,"telCANotDeflectable","CA not "deflectable" ")
+OSERR(-10080,"telCANotAcceptable","CA not \"acceptable\" ")
+OSERR(-10081,"telCANotRejectable","CA not \"rejectable\" ")
+OSERR(-10082,"telCANotDeflectable","CA not \"deflectable\" ")
 OSERR(-10090,"telPBErr","parameter block error, bad format ")
 OSERR(-10091,"telBadFunction","bad msgCode specified ")
 OSERR(-10102,"telNoSuchTool","unable to find tool with name specified ")
 OSERR(-10103,"telUnknownErr","unable to set config ")
-OSERR(-10106,"telNoCommFolder","Communications/Extensions Æ’ not found ")
+OSERR(-10106,"telNoCommFolder","Communications/Extensions \306\222 not found ")
 OSERR(-10107,"telInitFailed","initialization failed ")
 OSERR(-10108,"telBadCodeResource","code resource not found ")
 OSERR(-10109,"telDeviceNotFound","device not found ")
@@ -1025,10 +1026,10 @@
 OSERR(-32002,"errCppbad_cast","thrown by dynamic_cast when fails with a referenced type ")
 OSERR(-32003,"errCppbad_exception","thrown when an exception doesn't match any catch ")
 OSERR(-32004,"errCppbad_typeid","thrown by typeid ")
-OSERR(-10,"dsMacsBugInstalled","say “MacsBug Installed”")
-OSERR(-11,"dsDisassemblerInstalled","say “Disassembler Installed”")
-OSERR(-13,"dsExtensionsDisabled","say “Extensions Disabled”")
-OSERR(-12,"dsHD20Installed","say “HD20 Startup”")
+OSERR(-10,"dsMacsBugInstalled","say \342\200\234MacsBug Installed\342\200\235")
+OSERR(-11,"dsDisassemblerInstalled","say \342\200\234Disassembler Installed\342\200\235")
+OSERR(-13,"dsExtensionsDisabled","say \342\200\234Extensions Disabled\342\200\235")
+OSERR(-12,"dsHD20Installed","say \342\200\234HD20 Startup\342\200\235")
 OSERR(-126,"mBarNFnd","system error code for MBDF not found")
 OSERR(-127,"fsDSIntErr","non-hardware Internal file system error")
 OSERR(-490,"userBreak","user debugger break")

Modified: trunk/src/MacErrorsCollect.rb
==============================================================================
--- trunk/src/MacErrorsCollect.rb (original)
+++ trunk/src/MacErrorsCollect.rb Mon Mar 15 16:08:55 2010
@@ -13,7 +13,7 @@
     if table[m[2]] then
       puts "#{m[2]} est en double"
     else
-      g.puts "OSERR(#{m[2]},\"#{m[1]}\",\"#{m[3]}\")"
+      g.puts "OSERR(#{m[2]},\"#{m[1]}\",#{m[3].inspect})"
       table[m[2]] = [m[1],m[3]]
     end
   end



More information about the Gridflow-cvs mailing list