Mercurial > pidgin.yaz
view doc/the_penguin.txt @ 4029:31480901bf29
[gaim-migrate @ 4233]
"with the change to .60 and the new method of using perl_call
argument parsing was broken. What essentially happened is that the
previous method of pre-parsing was to generate a string in the for
'arg one','arg two','arg three' and execute the perl function via
&perlfunc(args). This would make the perl function in essense parse
the variables for us. With the introduction of perl_call, however, that
argument list was being treated as one long, singular argument.
perl_call asks for lists of pointers to character arrays that are NULL
terminated, and it passes them into the function using an internal
method.
With this said, I changed the function execute_perl from requiring
(char* function, char* args) to (char* function, char** args). It no
longer takes a single argument and inserts it into the appropriate data
type that is terminated with a NULL element, instead you now have
to pass it a pre-NULL terminated array of character pointers to
accomodate some functions wanting to give it more than one
argument. I modified the functions that use execute_perl to use this
method, and commented those lines, as well chopping the multiple
argument section into buf[0] = looking sections for clarity. Finally, I
inserted a heft comment above execute_perl to try and explain what I
did, I hope it is understandable. "
-- Eric Timme (var1ety)
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Sun, 01 Dec 2002 20:43:00 +0000 |
parents | cce40a648f7a |
children | eb63f9960d07 |
line wrap: on
line source
The Penguin by Jeramey Crawford <jacrawf@marko.net> and Rob Flynn <rob@marko.net> Once upon a term'nal dreary, while I hack'ed, weak and weary, Over many a quaint and curious volume of forgotten code-- While I nodded, nearly napping, suddenly there came a beeping, As of some one gently feeping, feeping using damn talk mode. "'Tis some hacker," I muttered, "beeping using damn talk mode-- Only this. I hate talk mode." Ah, distinctly I remember it was in the bleak semester, And college life wrought its terror as the school year became a bore. Eagerly I wished for privledges;--higher access I sought to borrow For my term'nal, unceasing sorrow--sorrow for a file called core-- For the rare and radiant files of .c the coders call the core-- Access Denied. Chown me more. "Open Source," did all mutter, when, with very little flirt and flutter, In there stepped a stately Penguin of the saintly days of yore. Quite a bit obese was he; having eaten lots of fish had he, But, by deign of Finnish programmer, he sat in the middle of my floor-- Looking upon my dusty term'nal in the middle of my floor-- Came, and sat, and nothing more. Then the tubby bird beguiling my sad code into shining, By the free and open decorum of the message that it bore, "Though thy term'nal be dusty and slow," he said, "Linux be not craven!" And thus I installed a new OS far from the proprietary shore-- The kernel code open but documentation lacking on this shore. Quoth the Penguin, "pipe grep more!" Much I marvelled this rotund fowl to hear discourse so plainly, Though its answer little meaning--little relevancy bore; For we cannot help believing that no living human being Ever yet was blessed with seeing bird in the middle of his floor-- Bird or beast sitting in the middle of his cluttered floor, With such instructions as "pipe grep more." But the Penguin, sitting lonely in that cluttered floor, spoke only Those words, as if its soul in that instruction he did outpour. Nothing more did he need utter; understood did I among that clutter-- Understood his command as I could scarcely do a few moments before-- I typed as furious as was willed me, understanding just a minute before. Again the bird said "pipe grep more!" "Amazing!" said I, "Penguin we will conquor the world if you will! By the Network that interconnects us--by that Finn we both adore-- We'll take this very world by storm!" For now grasped I what he'd meant, The thing I do while searching /usr/doc/* for that wond'rous lore-- Those compendiums of plaintext documentation and descriptive lore. Quoth the Penguin, "pipe grep more!" And the Penguin, never waddling, still is sitting, still is sitting In the middle of my room and still very cluttered floor; And his eyes have all the seeming of the free beer I am drinking And the term'nal-light o'er him glowing throws his shadows on the floor; And this OS from out the shadows that is pow'ring my term'nal on the floor Shall be dominating--"Pipe grep more!"