Skip to content

Instantly share code, notes, and snippets.

#include <Types.h>
#include <Dialogs.h>
#include <Windows.h>
#include <Menus.h>
#include <TextEdit.h>
#include <Quickdraw.h>
#include <Events.h>
#include <Resources.h>
#include <Sound.h>
# Carbon Events API C++ Project for Mac OS 9
## Project Files
1. **Main.cpp** - Main application source file.
2. **HelloWorld.r** - Resource file for defining UI elements.
## Main.cpp
```cpp
./package.sh
=> Installing dependencies of tr...
=> Fetching tr...
[tr/fetch] /Users/eric/projects/github/serenity/Ports/tr/tr-6.7.tar.gz already exists
[tr/fetch] + tar -xf /Users/eric/projects/github/serenity/Ports/tr/tr-6.7.tar.gz (nocd)
[tr/fetch] + touch .tr-6.7.tar.gz_extracted
=> Patching tr...
[tr/patch_internal] + patch -p1
[tr/patch_internal] patching file Makefile
[tr/patch_internal] + touch .0001-Add-an-install-target.patch_applied
#!/usr/sgug/bin/bash
# This script should be run as your user!
# Some useful variables
build_progress_dir="/usr/people/edodd/btw/tiny_build/output/PROGRESS"
sgug_rse_srpm_archive_root="/usr/people/edodd/rpmbuild/SRPMS"
sgug_rse_git_root="/usr/people/edodd/btw/tiny_build/sgug-rse.git"
sgug_rse_srpm_output_root="/usr/people/edodd/btw/tiny_build/output/SRPMS"
sgug_rse_rpm_output_root="/usr/people/edodd/btw/tiny_build/output/RPMS"
_rpmbuild=$1
if [[ -z $_rpmbuild ]] ; then
@unxmaal
unxmaal / btw.sh
Last active January 24, 2022 13:08
#!/bin/bash
_srpms=~/rpmbuild/SRPMS
_tinybuild=~/btw/tiny_build
_gitrepo=~/sgug-rse.git
_tbgit="${_tinybuild}/sgug-rse.git"
_releasepackages="${_tbgit}/releasepackages.lst"
#setup
@unxmaal
unxmaal / gist:399a12898f62b91dc5fdf6dea1125254
Created July 10, 2021 12:54
FC31 srpms that port to IRIX with no specfile changes
2ping
9wm
AGReader
BackupPC-XS
CharLS
ColPack
ETL
ElectricFence
GeoIP-GeoLite-data
HepMC
#
# TyrQuake Makefile (tested under Linux and MinGW/Msys)
#
# By default, all executables will be built and placed in the ./bin
# subdirectory. If you want to build just one, type e.g. "make bin/tyr-quake".
#
# ============================================================================
# User configurable options here:
# ============================================================================
char skiptest[100];
sprintf(skiptest, "corestring_dom_%s", atributee->name + 2);
if (strcmp(skiptest, "corestring_dom_select")) {
outputf(outc,
"\t/* handlerfn */\n"
"\tduk_push_this(ctx);\n"
"\t/* handlerfn this */\n"
"\tduk_get_prop_string(ctx, -1, HANDLER_MAGIC);\n"
"\t/* handlerfn this handlers */\n"
static int
output_generated_attribute_user_setter(struct opctx *outc,
struct ir_entry *interfacee,
struct ir_attribute_entry *atributee)
{
UNUSED(interfacee);
if ((atributee->typev[0].name != NULL) &&
strlen(atributee->typev[0].name) >= 12 &&
strcmp(atributee->typev[0].name + strlen(atributee->typev[0].name) - 12,
TESTMENT: unchanged
LINK: nsgtk3
cc -o nsgtk3 build/IRIX64-gtk3/build_IRIX64-gtk3_messages_gresource.o build/IRIX64-gtk3/build_IRIX64-gtk3_netsurf_gresource.o build/IRIX64-gtk3/content_content.o build/IRIX64-gtk3/content_content_factory.o build/IRIX64-gtk3/content_dirlist.o build/IRIX64-gtk3/content_fetch.o build/IRIX64-gtk3/content_fetchers_about.o build/IRIX64-gtk3/content_fetchers_curl.o build/IRIX64-gtk3/content_fetchers_data.o build/IRIX64-gtk3/content_fetchers_file.o build/IRIX64-gtk3/content_fetchers_resource.o build/IRIX64-gtk3/content_fs_backing_store.o build/IRIX64-gtk3/content_handlers_css_css.o build/IRIX64-gtk3/content_handlers_css_dump.o build/IRIX64-gtk3/content_handlers_css_hints.o build/IRIX64-gtk3/content_handlers_css_internal.o build/IRIX64-gtk3/content_handlers_css_select.o build/IRIX64-gtk3/content_handlers_css_utils.o build/IRIX64-gtk3/content_handlers_html_box_construct.o build/IRIX64-gtk3/content_handlers_html_box_inspect.o build/IRIX64-gtk3/content_handlers_html_box_manipulate.o b