473,398 Members | 2,403 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

cdecl

hi,
I know that this may not be the question has to be raised in this
group. in comp.lang.c FAQ list · Question 1.21 i read about cdecl . i
am working with "turbo c" on a windows xp mechine. can any one
provide link where i can get the compatable cdecl. i tryed but i
could not found it in google search. please help me. thanks to the
group and members.
regards,
prasanth.

Jun 3 '07 #1
13 5028
shanti wrote:
Question 1.21 i read about cdecl . i
am working with "turbo c" on a windows xp mechine. can any one
provide link where i can get the compatable cdecl.
Read further in the FAQ, the information appears to remain valid.
ftp://gatekeeper.dec.com/pub/usenet/...olume14/cdecl2
Jun 3 '07 #2
Tim Prince <ti***********@sbcglobal.netwrote:
shanti wrote:
> Question 1.21 i read about cdecl . i
am working with "turbo c" on a windows xp mechine. can any one
provide link where i can get the compatable cdecl.
Read further in the FAQ, the information appears to remain valid.
ftp://gatekeeper.dec.com/pub/usenet/...olume14/cdecl2
It would be nice to see intelligent responses to questions in this group.
Perhaps someday.

For instance, besides noting that the FAQ does not address his question,
the cited URL points to a shar file.

I suppose the minor details of unpacking the file and making it usable
for OP's environment are off-topic.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Jun 4 '07 #3
In article <13*************@corp.supernews.com>,
Thomas Dickey <di****@saltmine.radix.netwrote:
>It would be nice to see intelligent responses to questions in this group.
Perhaps someday.
>For instance, besides noting that the FAQ does not address his question,
the cited URL points to a shar file.
>I suppose the minor details of unpacking the file and making it usable
for OP's environment are off-topic.
A quick Google suggests that this may be useful for unpacking:

http://gnuwin32.sourceforge.net/packages/sharutils.htm

I would be very surprised if cdecl used any non-standard C features,
so making it usable should not be a problem.

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Jun 4 '07 #4
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
I would be very surprised if cdecl used any non-standard C features,
so making it usable should not be a problem.
X MANIFEST 1 This shipping list
X cdecl.1 1
X cdecl.c 2
X cdgram.y 1
X cdlex.l 1
X makefile 1
X testset 1
X testset++ 1

hmm - "non-standard" or unusual. Since it uses lex and yacc,
that makes it the former (only in this newsgroup of course).

offhand - this isn't the first (or even second) request for this
information in this newsgroup in the past month or so.
The faq doesn't provide the information requested...

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Jun 4 '07 #5
Thomas Dickey wrote:
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
>I would be very surprised if cdecl used any non-standard C features,
so making it usable should not be a problem.

X MANIFEST 1 This shipping list
X cdecl.1 1
X cdecl.c 2
X cdgram.y 1
X cdlex.l 1
X makefile 1
X testset 1
X testset++ 1

hmm - "non-standard" or unusual. Since it uses lex and yacc,
that makes it the former (only in this newsgroup of course).

offhand - this isn't the first (or even second) request for this
information in this newsgroup in the past month or so.
The faq doesn't provide the information requested...
It took me 30 seconds with Google to find a cdecl, and another minute to
compile it on Unix.

--
clvrmnky <mailto:sp******@clevermonkey.org>

Direct replies will be blacklisted. Replace "spamtrap" with my name to
contact me directly.
Jun 4 '07 #6
Clever Monkey <sp******@clevermonkey.org.invalidwrote:
It took me 30 seconds with Google to find a cdecl, and another minute to
compile it on Unix.
yawn: if you _were_ a clever monkey, you'd have read OP's request.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Jun 4 '07 #7
shanti <pr**************@gmail.comwrote:
hi,
I know that this may not be the question has to be raised in this
group. in comp.lang.c FAQ list · Question 1.21 i read about cdecl . i
am working with "turbo c" on a windows xp mechine. can any one
provide link where i can get the compatable cdecl. i tryed but i
could not found it in google search. please help me. thanks to the
group and members.
regards,
prasanth.
actually cdecl's off-topic (mention of tools in the faq doesn't seem to
make things on-topic, accurate, or even guarantee that readers of this
newsgroup can provide useful information about them ;-).

Some people might choose to compile it (awkward if you don't have a source).
It's a useful learning exercise (but doesn't bear much on the "C" language).

Finding "cdecl" on Windows is complicated in a web-search since some
compiler headers contain a matching keyword. However, a web-search is
more reliable than asking in a newsgroup such as this.

Trying "cdecl.zip", which gives several likely hits, but it appears
they're for MS-DOS (likely to be a problem on anything newer than
the FAQ, which generally provides at best ten-year-old information).
But that's the easiest route.

I'd simply compile it if I had a use for it - requires lex and yacc.
"turbo c" should be able to build those - (flex 2.54a and yacc).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Jun 4 '07 #8
Richard Tobin <ri*****@cogsci.ed.ac.ukwrote:
I would be very surprised if cdecl used any non-standard C features,
so making it usable should not be a problem.
it uses getopt (nonstandard in this newsgroup ;-)

For OP that would be another problem, of course.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
Jun 4 '07 #9
In article <13*************@corp.supernews.com>,
Thomas Dickey <di****@saltmine.radix.netwrote:
>it uses getopt (nonstandard in this newsgroup ;-)

For OP that would be another problem, of course.
Not really. Look more closely at the code:

#ifndef NOGETOPT
extern int optind;
#else
/* This is a miniature version of getopt() which will */
/* do just barely enough for us to get by below. */
/* Options are not allowed to be bunched up together. */
/* Option arguments are not supported. */
int optind = 1;
[...]

-- Richard
--
"Consideration shall be given to the need for as many as 32 characters
in some alphabets" - X3.4, 1963.
Jun 4 '07 #10
On Mon, 04 Jun 2007 12:10:00 -0000, Thomas Dickey
<di****@saltmine.radix.netwrote:
>Tim Prince <ti***********@sbcglobal.netwrote:
>shanti wrote:
>> Question 1.21 i read about cdecl . i
am working with "turbo c" on a windows xp mechine. can any one
provide link where i can get the compatable cdecl.
Read further in the FAQ, the information appears to remain valid.
ftp://gatekeeper.dec.com/pub/usenet/...olume14/cdecl2

It would be nice to see intelligent responses to questions in this group.
Perhaps someday.

For instance, besides noting that the FAQ does not address his question,
the cited URL points to a shar file.

I suppose the minor details of unpacking the file and making it usable
for OP's environment are off-topic.
Hi Tim,

I wrote a Windows GUI front-end for cdecl back in 2001. It was
non-trivial to get the original source to compile, but I finally got
it working. The brains of this app are not of my doing, but rather of
the cdecl source code.

If anyone is interested, you can download it here:

http://www.smartcache.net/cdecl/WinCdecl.zip

This is an MFC app that should run on any version of Windows 95 or
later (even Windows Vista). Linux users should be able to run it under
Wine.

Comments, suggestions, and bug reports can be sent to
in**@smartcache.net.

Best regards
--
jay
Jun 6 '07 #11
jaysome <ja*****@hotmail.comwrites:
[...]
I wrote a Windows GUI front-end for cdecl back in 2001. It was
non-trivial to get the original source to compile, but I finally got
it working. The brains of this app are not of my doing, but rather of
the cdecl source code.

If anyone is interested, you can download it here:

http://www.smartcache.net/cdecl/WinCdecl.zip

This is an MFC app that should run on any version of Windows 95 or
later (even Windows Vista). Linux users should be able to run it under
Wine.
I just tried it. Unless I'm missing something, it implements the
equivalent of "explain" but not "declare". In other words:

% cdecl
Type `help' or `?' for help
cdeclexplain int *x
declare x as pointer to int
cdecldeclare y as pointer to char
char *y
cdecl>

Your WinCdecl handles the first, but not the second.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 6 '07 #12
jaysome wrote:
>
.... snip ...
>
I wrote a Windows GUI front-end for cdecl back in 2001. It was
non-trivial to get the original source to compile, but I finally
got it working. The brains of this app are not of my doing, but
rather of the cdecl source code.

If anyone is interested, you can download it here:

http://www.smartcache.net/cdecl/WinCdecl.zip

This is an MFC app that should run on any version of Windows 95
or later (even Windows Vista). Linux users should be able to run
it under Wine.
What is the point? You can always open a text window, even under
Vista, and just run cdecl. No clutter, or guiness, involved. IMO.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
<http://kadaitcha.cx/vista/dogsbreakfast/index.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 6 '07 #13
On Wed, 06 Jun 2007 01:41:22 -0700, Keith Thompson <ks***@mib.org>
wrote:
>jaysome <ja*****@hotmail.comwrites:
[...]
>I wrote a Windows GUI front-end for cdecl back in 2001. It was
non-trivial to get the original source to compile, but I finally got
it working. The brains of this app are not of my doing, but rather of
the cdecl source code.

If anyone is interested, you can download it here:

http://www.smartcache.net/cdecl/WinCdecl.zip

This is an MFC app that should run on any version of Windows 95 or
later (even Windows Vista). Linux users should be able to run it under
Wine.

I just tried it. Unless I'm missing something, it implements the
equivalent of "explain" but not "declare". In other words:

% cdecl
Type `help' or `?' for help
cdeclexplain int *x
declare x as pointer to int
cdecldeclare y as pointer to char
char *y
cdecl>

Your WinCdecl handles the first, but not the second.
You're right. Somehow I uploaded an old version. I found a newer
version that handles explain, declare and cast and uploaded it. I'll
talk to smartcache and see if I can upload the source as well this
weekend.

http://www.smartcache.net/cdecl/WinCdecl.zip

--
jay
Jun 8 '07 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: ThinkRS232 | last post by:
I have a Win32 DLL that has a standard _stdcall (WINAPI) exports. I am able to call these fine from C#. One call in particular however has a callback to a CDECL function. How would I set that up?...
12
by: Tor Rustad | last post by:
Did a fun project some years ago.. a cdecl, but never really tested it. Here are some test cases I just tried: cdecl> char **argv; cdecl> argv is pointer to pointer to char Looks ok cdecl>...
3
by: Boots | last post by:
Hi all I am relatively new to C# programming and have run into a problem that I believe is caused by my C# function declarations. I believe that my C# function must use a CDecl CallingConvention...
6
by: ReinhardH | last post by:
Hi, I have to use a cdecl dll (3 party dll). One of the functions needs a callback as a parameter. Unfortunately it seems that I'm not able to solve this issue. What I have done is: Declare...
6
by: James Brown [MVP] | last post by:
Hi, I am having trouble understanding how the 'const' modifier affects the 'left-right' rule when deciphering c-declarations: const int *x; // x is a pointer to a 'const int' int const *x; ...
5
by: richard.wm.jones | last post by:
I'm trying to track down the original authors of cdecl. cdecl was dropped from Fedora Core a few years ago because of licensing concerns. The original postings to comp.sources.unix (vols 6 & 14...
2
by: Udi | last post by:
Hi All, I have a C dll exporting the following: ```````````````````````````````````````````````````` typedef void (__cdecl *pCallBack)(int i); int __cdecl Foo(pCallBack pFunc); I have...
5
by: Amandil | last post by:
Hi, all. I know this is not standard C, but I see the word cdecl used as a type qualifier (?) in external declarations - including the standard headers - and I'd like to know what it means (and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.