Post your longest label name ever, and we can see who has the longest. Don't be a prick and make one up, either. Here's mine:
VPutCodeContinueFromClippingLoop
Looking at Project M, it appears I have a 3-way tie for 28 chars:
ObjectCollideRightExitedTile
ObjectMoveAnyXWithCollisions
ObjectMoveAnyYWithCollisions
I'm afraid for you folks' code. Longest proper label name in LIFOS is 21 characters, but it's nice and descriptive.

Code:
_shiftUpdateAllocated
_sendBitReallyDone
_recvCReleaseAck
_CID_hasDataSeek

Not quite labels, but the assembler treats them as such (defines). Longest is 22 chars:

Code:
eRuntime_Unimplemented
LIFOS_VER_MAJOR

And while we're discussing hideous code, have some magic with macros:

Code:
;;Set string padding - use with current max string length for best results
.define SSP(len) .define STR_PADTO len+1
;;Unset string padding
.define USP() .undef STR_PADTO
;;Padded length-prefixed string- entire block is padded to [padto] bytes
.deflong PLPS(str, padto)
@   .db {2@}-{@}
@   .db str
@   .block padto-{-3@}
.enddeflong
;;Padded LP string, given current padding setting (via SSP)
.deflong PLPS(str)
 .ifndef STR_PADTO
    .warn "String padding not set- defaulting to 10!"
    PLPS(str, 10)
 .else
    PLPS(str, STR_PADTO)
 .endif
.enddeflong
Here's some of the worst offenders I found in the Doors CS source code (kudos, BranchMap!):


Code:
[33] GUISRemoveMouseEntriesFirstFound
[31] GUISRemoveMouseEntriesLoopNone
[31] GUISTextLineInClickloopIncLine
[30] GUISRemoveMouseEntriesDelLoop
[30] ParserHookHomescreenParseLoop
[29] ParserHookHomescreenFindLoop
[28] GUISTextLineInClickloopDone
[24] api_drawline_loop_inner
[24] GUISTextLineInClickloop
[23] DCSAPGetTypeProgCheck1
[23] GUIMousePutMseSaveLoop
[22] VATVAlidSkipPoundBang
[22] api_draw_square_noset
[22] GUIMouseSetupLoopMRet
Looks like KermM wins so far. That is pretty insane.
I abbreviate in label names Very Happy


monster_acquire_upper_bound_loop (from my rogue game)
became
macq_b_loop
Mapar007 wrote:
I abbreviate in label names Very Happy


monster_acquire_upper_bound_loop (from my rogue game)
became
macq_b_loop
Don't you worry that Future Mapar007 will forget by "macq" or "b" stand for? Sad Since my assembler has no problem with my long but descriptive labels, I don't either. Smile
No, because I usually describe the routine in a comment.

The short names are just for fast-typing purposes.
Mapar007 wrote:
No, because I usually describe the routine in a comment.

The short names are just for fast-typing purposes.
Gotcha, I can respect that then. Smile This topic is making me look forward to working on Doors CS 7 once I submit my thesis...
On a related note: what's VATValidSkipPoundBang? (must be the most epic label name ever)

Does it involve the '#' program in any way?
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement