import winsup-2000-02-17 snapshot

This commit is contained in:
Christopher Faylor
2000-02-17 19:38:33 +00:00
parent 369d8a8fd5
commit 1fd5e000ac
582 changed files with 146593 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
int
main (int argc, char* argv[])
{
int i;
printf ("Command line (via GetCommandLine) \"%s\"\n",
GetCommandLine());
for (i = 0; i < argc; i++)
{
printf ("Argv[%d] \"%s\"\n", i, argv[i]);
}
return 0;
}

View File

@@ -0,0 +1,11 @@
Object glob.o : glob.c ;
MainFromObjects glob.exe : glob.o ;
Main noglob.exe : noglob.c ;
LIBDIR = \\mingw32\\lib\\ ;
MainFromObjects CRTnoglob.exe : glob.o $(LIBDIR)CRT_noglob.o ;

View File

@@ -0,0 +1,22 @@
#include <stdlib.h>
#include <stdio.h>
#include <windows.h>
/* This line turns off automatic command line globbing. */
int _CRT_glob = 0;
int
main (int argc, char* argv[])
{
int i;
printf ("Command line (via GetCommandLine) \"%s\"\n",
GetCommandLine());
for (i = 0; i < argc; i++)
{
printf ("Argv[%d] \"%s\"\n", i, argv[i]);
}
return 0;
}

View File

@@ -0,0 +1,14 @@
This directory contains samples which demonstrate default (globbing on)
behavior, how to turn the globbing off with the _CRT_glob variable, and
how to turn it off with the CRT_noglob object file.
Run jam and then run glob, noglob and CRTnoglob with an argument like
*.* to see the difference.
The code in this directory is in the PUBLIC DOMAIN. It has NO WARRANTY,
including, but not restricted to, warranties of MERCHANTABILITY or
FITNESS FOR A PARTICULAR PURPOSE.
Colin Peters <colin@bird.fu.is.saga-u.ac.jp>.